aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorIan Kent <raven@themaw.net>2012-12-14 10:23:29 +0800
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-13 19:13:25 -0800
commit0259cb02c4004d3088b0999799f8f5c8801f6b97 (patch)
treeb93489768a12a36fbb2ec33d1e04742f84238d9e /drivers
parentautofs4 - dont clear DCACHE_NEED_AUTOMOUNT on rootless mount (diff)
downloadlinux-dev-0259cb02c4004d3088b0999799f8f5c8801f6b97.tar.xz
linux-dev-0259cb02c4004d3088b0999799f8f5c8801f6b97.zip
autofs4 - use simple_empty() for empty directory check
For direct (and offset) mounts, if an automounted mount is manually umounted the trigger mount dentry can appear non-empty causing it to not trigger mounts. This can also happen if there is a file handle leak in a user space automounting application. This happens because, when a ioctl control file handle is opened on the mount, a cursor dentry is created which causes list_empty() to see the dentry as non-empty. Since there is a case where listing the directory of these dentrys is needed, the use of dcache_dir_*() functions for .open() and .release() is needed. Consequently simple_empty() must be used instead of list_empty() when checking for an empty directory. Signed-off-by: Ian Kent <raven@themaw.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions