]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/9p: Add fid before dentry instantiation
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 25 Jul 2011 18:06:32 +0000 (18:06 +0000)
committerEric Van Hensbergen <ericvh@gmail.com>
Thu, 25 Aug 2011 14:23:28 +0000 (09:23 -0500)
commit29768aaa146d0b4803aa6cbd10e8933c8d152af6
tree2bbc6f1fa1e88a1889ae1a77f45d4e7109e49372
parentcaca9510ff4e5d842c0589110243d60927836222
fs/9p: Add fid before dentry instantiation

d_instantiate marks the dentry positive. So a parallel lookup and mkdir of
the directory can find dentry that doesn't have fid attached. This can result
in both the code path doing v9fs_fid_add which results in v9fs_dentry leak.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_inode.c
fs/9p/vfs_inode_dotl.c