summaryrefslogtreecommitdiffstats
path: root/mm/nommu.c
diff options
context:
space:
mode:
authorJeff Mahoney2007-04-12 08:28:46 +0200
committerLinus Torvalds2007-04-13 00:31:42 +0200
commitc3724b129b5a1a1789a2dc5348685a236ae02479 (patch)
treed664a2d672b62c9bde71992cdd8e1b7904f5e3d0 /mm/nommu.c
parent[PATCH] reiserfs: fix key decrementing (diff)
downloadkernel-qcow2-linux-c3724b129b5a1a1789a2dc5348685a236ae02479.tar.gz
kernel-qcow2-linux-c3724b129b5a1a1789a2dc5348685a236ae02479.tar.xz
kernel-qcow2-linux-c3724b129b5a1a1789a2dc5348685a236ae02479.zip
[PATCH] autofs4: fix race in unhashed dentry code
Commit f50b6f8691cae2e0064c499dd3ef3f31142987f0 introduced a race in autofs4 between autofs_lookup_unhashed() and autofs_dentry_release(). autofs_dentry_release() ends up clearing the ->dentry and ->inode members of autofs_info before removing it from the rehash list. The list is protected by the rehash lock in both functions, but since autofs_dentry_release() starts tearing the autofs_info struct down before removing it from the list, autofs_lookup_unhashed() can get a autofs_info with a NULL dentry. This patch moves the clearing of ->dentry and ->inode after the removal from the rehash list. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Acked-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 'mm/nommu.c')
0 files changed, 0 insertions, 0 deletions