linux-stable/fs
Linus Torvalds f5b7769eb0 Revert "debugfs: inode: debugfs_create_dir uses mode permission from parent"
This reverts commit 95cde3c599.

The commit had good intentions, but it breaks kvm-tool and qemu-kvm.

With it in place, "lkvm run" just fails with

  Error: KVM_CREATE_VM ioctl
  Warning: Failed init: kvm__init

which isn't a wonderful error message, but bisection pinpointed the
problematic commit.

The problem is almost certainly due to the special kvm debugfs entries
created dynamically by kvm under /sys/kernel/debug/kvm/.  See
kvm_create_vm_debugfs()

Bisected-and-reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Wanpeng Li <kernellwp@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-06-12 20:52:16 -07:00
..
9p treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
adfs treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
affs
afs treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
autofs autofs: Fix typo s/thenew new/the new/ in AUTOFS4_FS description 2018-06-12 12:31:19 -07:00
befs
bfs
btrfs treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
cachefiles
ceph treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
cifs treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
coda
configfs
cramfs
crypto f2fs-for-4.18-rc1 2018-06-11 10:16:13 -07:00
debugfs Revert "debugfs: inode: debugfs_create_dir uses mode permission from parent" 2018-06-12 20:52:16 -07:00
devpts
dlm treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
ecryptfs
efivarfs
efs
exofs treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
exportfs
ext2 treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
ext4 treewide: kvmalloc() -> kvmalloc_array() 2018-06-12 16:19:22 -07:00
f2fs treewide: Use array_size in f2fs_kvzalloc() 2018-06-12 16:19:22 -07:00
fat treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
freevxfs
fscache
fuse treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
gfs2 treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
hfs
hfsplus
hostfs
hpfs treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
hugetlbfs
isofs
jbd2 treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
jffs2 treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
jfs treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
kernfs
lockd
minix
nfs - Error path bug fix for overflow tests (Dan) 2018-06-12 18:28:00 -07:00
nfs_common
nfsd - Error path bug fix for overflow tests (Dan) 2018-06-12 18:28:00 -07:00
nilfs2
nls
notify
ntfs treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
ocfs2 treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
omfs
openpromfs
orangefs
overlayfs treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
proc treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
pstore
qnx4
qnx6
quota
ramfs
reiserfs treewide: Use array_size() in vzalloc() 2018-06-12 16:19:22 -07:00
romfs
squashfs
sysfs
sysv
tracefs
ubifs treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
udf treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
ufs treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
xfs Changes since last update: 2018-06-12 15:49:00 -07:00
aio.c
anon_inodes.c
attr.c
bad_inode.c
binfmt_aout.c
binfmt_elf.c treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
binfmt_elf_fdpic.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
binfmt_em86.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
block_dev.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
buffer.c
char_dev.c
compat.c
compat_binfmt_elf.c
compat_ioctl.c
coredump.c
d_path.c
dax.c libnvdimm for 4.18 2018-06-08 17:21:52 -07:00
dcache.c
dcookies.c
direct-io.c
drop_caches.c
eventfd.c
eventpoll.c
exec.c Merge branch 'core-rseq-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-06-10 10:17:09 -07:00
fcntl.c
fhandle.c
file.c
file_table.c
filesystems.c
fs-writeback.c
fs_pin.c
fs_struct.c
inode.c
internal.h
ioctl.c
iomap.c Changes since last update: 2018-06-12 15:49:00 -07:00
Kconfig autofs: remove left-over autofs4 stubs 2018-06-11 08:22:34 -07:00
Kconfig.binfmt
libfs.c
locks.c
Makefile autofs: remove left-over autofs4 stubs 2018-06-11 08:22:34 -07:00
mbcache.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
mount.h
mpage.c
namei.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
namespace.c
no-block.c
nsfs.c
open.c
pipe.c
pnode.c
pnode.h
posix_acl.c
proc_namespace.c
read_write.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
readdir.c
select.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
seq_file.c
signalfd.c
splice.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
stack.c
stat.c
statfs.c
super.c
sync.c
timerfd.c
userfaultfd.c
utimes.c
xattr.c