alistair23-linux/fs/autofs
Pan Bian 63ce5f552b autofs: drop dentry reference only when it is never used
autofs_expire_run() calls dput(dentry) to drop the reference count of
dentry.  However, dentry is read via autofs_dentry_ino(dentry) after
that.  This may result in a use-free-bug.  The patch drops the reference
count of dentry only when it is never used.

Link: http://lkml.kernel.org/r/154725122396.11260.16053424107144453867.stgit@pluto-themaw-net
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-02-01 15:46:24 -08:00
..
autofs_i.h autofs: add strictexpire mount option 2019-01-04 13:13:47 -08:00
dev-ioctl.c autofs: change catatonic setting to a bit flag 2019-01-04 13:13:47 -08:00
expire.c autofs: drop dentry reference only when it is never used 2019-02-01 15:46:24 -08:00
init.c autofs: improve ioctl sbi checks 2019-01-04 13:13:46 -08:00
inode.c autofs: add strictexpire mount option 2019-01-04 13:13:47 -08:00
Kconfig autofs: Fix typo s/thenew new/the new/ in AUTOFS4_FS description 2018-06-12 12:31:19 -07:00
Makefile autofs: rename 'autofs' module back to 'autofs4' 2018-07-05 11:35:04 -07:00
root.c autofs: add strictexpire mount option 2019-01-04 13:13:47 -08:00
symlink.c
waitq.c autofs: change catatonic setting to a bit flag 2019-01-04 13:13:47 -08:00