summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2019-02-01 14:21:26 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2019-02-01 15:46:24 -0800
commit63ce5f552beb9bdb41546b3a26c4374758b21815 (patch)
tree318f69dfe1f4e61e6f5fc4d5c634389f1167289e /include/net
parentc27d82f52f75fc9d8d9d40d120d2a96fdeeada5e (diff)
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>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions