https://github.com/torvalds/linux
Revision e75b23f9e323b1e0759619c39d5a9f7a3a5d9d2c authored by J. Bruce Fields on 19 July 2016, 21:33:04 UTC, committed by J. Bruce Fields on 04 August 2016, 21:11:48 UTC
Create and other nfsd ops generally assume we can call lookup_one_len on
inodes with S_IFDIR set.  Al says that this assumption isn't true in
general, though it should be for the filesystem objects nfsd sees.

Add a check just to make sure our assumption isn't violated.

Remove a couple checks for i_op->lookup in create code.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
1 parent 12391d0
History
Tip revision: e75b23f9e323b1e0759619c39d5a9f7a3a5d9d2c authored by J. Bruce Fields on 19 July 2016, 21:33:04 UTC
nfsd: check d_can_lookup in fh_verify of directories
Tip revision: e75b23f
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 6.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 95.5 KB
Kbuild -rw-r--r-- 2.8 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 353.7 KB
Makefile -rw-r--r-- 56.0 KB
README -rw-r--r-- 18.1 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top