Kinglong Mee
3967cf7e6a
nfsd: map the ENOKEY to nfserr_perm for avoiding warning
commit c952cd4e949ab3d07287efc2e80246e03727d15d upstream.
Now that Ext4 and f2fs filesystems support encrypted directories and
files, attempts to access those files may return ENOKEY, resulting in
the following WARNING.
Map ENOKEY to nfserr_perm instead of nfserr_io.
[ 1295.411759] ------------[ cut here ]------------
[ 1295.411787] WARNING: CPU: 0 PID: 12786 at fs/nfsd/nfsproc.c:796 nfserrno+0x74/0x80 [nfsd]
[ 1295.411806] nfsd: non-standard errno: -126
[ 1295.411816] Modules linked in: nfsd nfs_acl auth_rpcgss nfsv4 nfs lockd fscache tun bridge stp llc fuse ip_set nfnetlink vmw_vsock_vmci_transport vsock snd_seq_midi snd_seq_midi_event coretemp crct10dif_pclmul crc32_generic crc32_pclmul snd_ens1371 gameport ghash_clmulni_intel snd_ac97_codec f2fs intel_rapl_perf ac97_bus snd_seq ppdev snd_pcm snd_rawmidi snd_timer vmw_balloon snd_seq_device snd joydev soundcore parport_pc parport nfit acpi_cpufreq tpm_tis vmw_vmci tpm_tis_core tpm shpchp i2c_piix4 grace sunrpc xfs libcrc32c vmwgfx drm_kms_helper ttm drm crc32c_intel e1000 mptspi scsi_transport_spi serio_raw mptscsih mptbase ata_generic pata_acpi fjes [last unloaded: nfs_acl]
[ 1295.412522] CPU: 0 PID: 12786 Comm: nfsd Tainted: G W 4.11.0-rc1+ #521
[ 1295.412959] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 07/02/2015
[ 1295.413814] Call Trace:
[ 1295.414252] dump_stack+0x63/0x86
[ 1295.414666] __warn+0xcb/0xf0
[ 1295.415087] warn_slowpath_fmt+0x5f/0x80
[ 1295.415502] ? put_filp+0x42/0x50
[ 1295.415927] nfserrno+0x74/0x80 [nfsd]
[ 1295.416339] nfsd_open+0xd7/0x180 [nfsd]
[ 1295.416746] nfs4_get_vfs_file+0x367/0x3c0 [nfsd]
[ 1295.417182] ? security_inode_permission+0x41/0x60
[ 1295.417591] nfsd4_process_open2+0x9b2/0x1200 [nfsd]
[ 1295.418007] nfsd4_open+0x481/0x790 [nfsd]
[ 1295.418409] nfsd4_proc_compound+0x395/0x680 [nfsd]
[ 1295.418812] nfsd_dispatch+0xb8/0x1f0 [nfsd]
[ 1295.419233] svc_process_common+0x4d9/0x830 [sunrpc]
[ 1295.419631] svc_process+0xfe/0x1b0 [sunrpc]
[ 1295.420033] nfsd+0xe9/0x150 [nfsd]
[ 1295.420420] kthread+0x101/0x140
[ 1295.420802] ? nfsd_destroy+0x60/0x60 [nfsd]
[ 1295.421199] ? kthread_park+0x90/0x90
[ 1295.421598] ret_from_fork+0x2c/0x40
[ 1295.421996] ---[ end trace 0d5a969cd7852e1f ]---
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
2017-04-08 09:30:33 +02:00 |
| .. |
|
9p
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
adfs
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
affs
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
afs
|
fs: Better permission checking for submounts
|
2017-03-15 10:02:44 +08:00 |
|
autofs4
|
fs: Better permission checking for submounts
|
2017-03-15 10:02:44 +08:00 |
|
befs
|
befs fixes for 4.9-rc1
|
2016-10-15 12:09:13 -07:00 |
|
bfs
|
Merge remote-tracking branch 'ovl/rename2' into for-linus
|
2016-10-10 23:02:51 -04:00 |
|
btrfs
|
btrfs: fix btrfs_compat_ioctl failures on non-compat ioctls
|
2017-02-14 15:25:40 -08:00 |
|
cachefiles
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
ceph
|
ceph: remove req from unsafe list when unregistering it
|
2017-03-15 10:02:45 +08:00 |
|
cifs
|
fs: Better permission checking for submounts
|
2017-03-15 10:02:44 +08:00 |
|
coda
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
configfs
|
Merge remote-tracking branch 'ovl/rename2' into for-linus
|
2016-10-10 23:02:51 -04:00 |
|
cramfs
|
|
|
|
crypto
|
fscrypt: remove broken support for detecting keyring key revocation
|
2017-03-31 10:31:46 +02:00 |
|
debugfs
|
fs: Better permission checking for submounts
|
2017-03-15 10:02:44 +08:00 |
|
devpts
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
dlm
|
dlm: free workqueues after the connections
|
2016-10-10 09:54:00 -05:00 |
|
ecryptfs
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
efivarfs
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
efs
|
|
|
|
exofs
|
fs: exofs: print a hex number after a 0x prefix
|
2016-10-27 18:43:43 -07:00 |
|
exportfs
|
exportfs: be careful to only return expected errors.
|
2016-10-06 09:07:44 -04:00 |
|
ext2
|
ext2: avoid bogus -Wmaybe-uninitialized warning
|
2016-10-18 11:29:35 +02:00 |
|
ext4
|
ext4: lock the xattr block before checksuming it
|
2017-03-30 09:41:25 +02:00 |
|
f2fs
|
f2fs: avoid to issue redundant discard commands
|
2017-03-12 06:41:51 +01:00 |
|
fat
|
fat: fix using uninitialized fields of fat_inode/fsinfo_inode
|
2017-03-15 10:02:52 +08:00 |
|
freevxfs
|
|
|
|
fscache
|
Merge branch 'd_real' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs into work.misc
|
2016-06-30 23:34:49 -04:00 |
|
fuse
|
fuse: add missing FR_FORCE
|
2017-03-12 06:41:47 +01:00 |
|
gfs2
|
gfs2: Avoid alignment hole in struct lm_lockname
|
2017-03-26 13:05:58 +02:00 |
|
hfs
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
hfsplus
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
hostfs
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
hpfs
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
hugetlbfs
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
isofs
|
isofs: add KERN_CONT to printing of ER records
|
2016-11-30 10:41:26 -08:00 |
|
jbd2
|
jbd2: don't leak memory if setting up journal fails
|
2017-03-30 09:41:27 +02:00 |
|
jffs2
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
jfs
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
kernfs
|
kernfs: Add noop_fsync to supported kernfs_file_fops
|
2016-10-27 17:47:11 +02:00 |
|
lockd
|
treewide: remove redundant #include <linux/kconfig.h>
|
2016-10-11 15:06:33 -07:00 |
|
logfs
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
minix
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
ncpfs
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
nfs
|
NFSv4.1 fix infinite loop on IO BAD_STATEID error
|
2017-04-08 09:30:33 +02:00 |
|
nfs_common
|
|
|
|
nfsd
|
nfsd: map the ENOKEY to nfserr_perm for avoiding warning
|
2017-04-08 09:30:33 +02:00 |
|
nilfs2
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
nls
|
|
|
|
notify
|
fsnotify: Fix possible use-after-free in inode iteration on umount
|
2017-01-09 08:32:22 +01:00 |
|
ntfs
|
fs: remove the never implemented aio_fsync file operation
|
2016-10-30 13:09:42 -04:00 |
|
ocfs2
|
ocfs2: fix crash caused by stale lvb with fsdlm plugin
|
2017-01-19 20:17:59 +01:00 |
|
omfs
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
openpromfs
|
fs: Replace CURRENT_TIME with current_time() for inode timestamps
|
2016-09-27 21:06:21 -04:00 |
|
orangefs
|
orangefs: Use RCU for destroy_inode
|
2017-03-15 10:02:44 +08:00 |
|
overlayfs
|
ovl: fix d_real() for stacked fs
|
2016-11-29 10:20:24 +01:00 |
|
proc
|
sysctl: Drop reference added by grab_header in proc_sys_readdir
|
2017-01-19 20:18:04 +01:00 |
|
pstore
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
qnx4
|
|
|
|
qnx6
|
|
|
|
quota
|
quota: fill in Q_XGETQSTAT inode information for inactive quotas
|
2016-08-15 17:43:31 +02:00 |
|
ramfs
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
reiserfs
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
romfs
|
|
|
|
squashfs
|
vfs: Remove {get,set,remove}xattr inode operations
|
2016-10-07 21:48:36 -04:00 |
|
sysfs
|
Merge branch 'for-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
|
2016-10-14 12:18:50 -07:00 |
|
sysv
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
tracefs
|
fs: Replace CURRENT_TIME with current_time() for inode timestamps
|
2016-09-27 21:06:21 -04:00 |
|
ubifs
|
ubifs: Fix journal replay wrt. xattr nodes
|
2017-01-26 08:24:40 +01:00 |
|
udf
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
ufs
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
xfs
|
xfs: try any AG when allocating the first btree block when reflinking
|
2017-04-08 09:30:32 +02:00 |
|
aio.c
|
aio: fix freeze protection of aio writes
|
2016-10-30 13:09:42 -04:00 |
|
anon_inodes.c
|
|
|
|
attr.c
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
bad_inode.c
|
bad_inode: add missing i_op initializers
|
2017-01-09 08:32:24 +01:00 |
|
binfmt_aout.c
|
|
|
|
binfmt_elf.c
|
x86/coredump: Use pr_reg size, rather that TIF_IA32 flag
|
2016-09-14 21:28:10 +02:00 |
|
binfmt_elf_fdpic.c
|
elf_fdpic_transfer_args_to_stack(): make it generic
|
2016-07-25 16:51:49 +10:00 |
|
binfmt_em86.c
|
fs/binfmt_em86.c: fix incompatible pointer type
|
2016-08-02 19:35:15 -04:00 |
|
binfmt_flat.c
|
binfmt_flat: allow compressed flat binary format to work on MMU systems
|
2016-07-28 13:29:12 +10:00 |
|
binfmt_misc.c
|
fs: Replace current_fs_time() with current_time()
|
2016-09-27 21:06:22 -04:00 |
|
binfmt_script.c
|
|
|
|
block_dev.c
|
block: protect iterate_bdevs() against concurrent close
|
2017-01-09 08:32:21 +01:00 |
|
buffer.c
|
fs: use mapping_set_error instead of opencoded set_bit
|
2016-10-11 15:06:33 -07:00 |
|
char_dev.c
|
dax: define a unified inode/address_space for device-dax mappings
|
2016-08-23 22:58:51 -07:00 |
|
compat.c
|
compat: remove compat_printk()
|
2016-09-27 21:20:53 -04:00 |
|
compat_binfmt_elf.c
|
|
|
|
compat_ioctl.c
|
fs: compat_ioctl: add pretimeout functions for watchdogs
|
2016-09-24 09:27:18 +02:00 |
|
coredump.c
|
coredump: fix unfreezable coredumping task
|
2016-11-11 08:12:37 -08:00 |
|
dax.c
|
fs: break out of iomap_file_buffered_write on fatal signals
|
2017-02-09 08:08:31 +01:00 |
|
dcache.c
|
mnt: Protect the mountpoint hashtable with mount_lock
|
2017-01-19 20:18:03 +01:00 |
|
dcookies.c
|
|
|
|
direct-io.c
|
consistent treatment of EFAULT on O_DIRECT read/write
|
2016-10-03 20:38:55 -04:00 |
|
drop_caches.c
|
|
|
|
eventfd.c
|
|
|
|
eventpoll.c
|
|
|
|
exec.c
|
ptrace: Capture the ptracer's creds not PT_PTRACE_CAP
|
2017-01-06 10:40:13 +01:00 |
|
fcntl.c
|
|
|
|
fhandle.c
|
|
|
|
file.c
|
fs/file: more unsigned file descriptors
|
2016-09-27 18:47:38 -04:00 |
|
file_table.c
|
|
|
|
filesystems.c
|
|
|
|
fs-writeback.c
|
mm, writeback: flush plugged IO in wakeup_flusher_threads()
|
2016-08-09 19:58:06 -06:00 |
|
fs_pin.c
|
|
|
|
fs_struct.c
|
|
|
|
inode.c
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
internal.h
|
Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 13:04:49 -07:00 |
|
ioctl.c
|
vfs: cap dedupe request structure size at PAGE_SIZE
|
2016-09-15 13:29:52 -07:00 |
|
iomap.c
|
fs: break out of iomap_file_buffered_write on fatal signals
|
2017-02-09 08:08:31 +01:00 |
|
Kconfig
|
mm/hugetlb: introduce ARCH_HAS_GIGANTIC_PAGE
|
2016-10-07 18:46:29 -07:00 |
|
Kconfig.binfmt
|
ARM: 8594/1: enable binfmt_flat on systems with an MMU
|
2016-08-12 16:47:05 +01:00 |
|
libfs.c
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
locks.c
|
locking, fs/locks: Add missing file_sem locks
|
2016-10-18 12:21:28 +02:00 |
|
Makefile
|
|
|
|
mbcache.c
|
mbcache: fix to detect failure of register_shrinker
|
2016-08-31 11:44:36 -04:00 |
|
mount.h
|
mnt: Tuck mounts under others instead of creating shadow/side mounts.
|
2017-03-15 10:02:43 +08:00 |
|
mpage.c
|
block/mm: make bdev_ops->rw_page() take a bool for read/write
|
2016-08-07 14:41:02 -06:00 |
|
namei.c
|
fs: Better permission checking for submounts
|
2017-03-15 10:02:44 +08:00 |
|
namespace.c
|
fs: Better permission checking for submounts
|
2017-03-15 10:02:44 +08:00 |
|
no-block.c
|
|
|
|
nsfs.c
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-10-10 20:16:43 -07:00 |
|
open.c
|
xfs: reflink update for 4.9-rc1
|
2016-10-13 20:28:22 -07:00 |
|
pipe.c
|
pipe: cap initial pipe capacity according to pipe-max-size limit
|
2016-10-11 15:06:32 -07:00 |
|
pnode.c
|
mnt: Tuck mounts under others instead of creating shadow/side mounts.
|
2017-03-15 10:02:43 +08:00 |
|
pnode.h
|
mnt: Tuck mounts under others instead of creating shadow/side mounts.
|
2017-03-15 10:02:43 +08:00 |
|
posix_acl.c
|
tmpfs: clear S_ISGID when setting posix ACLs
|
2017-01-26 08:24:37 +01:00 |
|
proc_namespace.c
|
|
|
|
read_write.c
|
iov_iter: kernel-doc import_iovec() and rw_copy_check_uvector()
|
2016-10-14 20:00:34 -04:00 |
|
readdir.c
|
|
|
|
select.c
|
fs/select: add vmalloc fallback for select(2)
|
2016-10-11 15:06:30 -07:00 |
|
seq_file.c
|
seq/proc: modify seq_put_decimal_[u]ll to take a const char *, not char
|
2016-10-07 18:46:30 -07:00 |
|
signalfd.c
|
|
|
|
splice.c
|
vfs: fix uninitialized flags in splice_to_pipe()
|
2017-02-23 17:44:35 +01:00 |
|
stack.c
|
|
|
|
stat.c
|
|
|
|
statfs.c
|
|
|
|
super.c
|
fs: Better permission checking for submounts
|
2017-03-15 10:02:44 +08:00 |
|
sync.c
|
|
|
|
timerfd.c
|
|
|
|
userfaultfd.c
|
mm: introduce fault_env
|
2016-07-26 16:19:19 -07:00 |
|
utimes.c
|
Merge remote-tracking branch 'jk/vfs' into work.misc
|
2016-10-08 11:06:08 -04:00 |
|
xattr.c
|
xattr: Fix setting security xattrs on sockfs
|
2016-11-17 00:00:23 -05:00 |