]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cifs: Do not lookup hashed negative dentry in cifs_atomic_open
authorSachin Prabhu <sprabhu@redhat.com>
Mon, 5 Nov 2012 11:39:32 +0000 (11:39 +0000)
committerJeff Layton <jlayton@redhat.com>
Mon, 5 Nov 2012 11:45:54 +0000 (06:45 -0500)
commit3798f47aa276b332c30da499cb4df4577e2f8872
treeedec5d4cdab0891ac1b40b64e6265faf680641ea
parent36960e440ccf94349c09fb944930d3bfe4bc473f
cifs: Do not lookup hashed negative dentry in cifs_atomic_open

We do not need to lookup a hashed negative directory since we have
already revalidated it before and have found it to be fine.

This also prevents a crash in cifs_lookup() when it attempts to rehash
the already hashed negative lookup dentry.

The patch has been tested using the reproducer at
https://bugzilla.redhat.com/show_bug.cgi?id=867344#c28

Cc: <stable@kernel.org> # 3.6.x
Reported-by: Vit Zahradka <vit.zahradka@tiscali.cz>
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
fs/cifs/dir.c