]> git.baikalelectronics.ru Git - kernel.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>
Tue, 6 Sep 2011 13:17:14 +0000 (08:17 -0500)
commitd447b23e4accc75c1f66baa0db8024956496860d
treeeb61016b762edb343051e5724527eb1484555085
parent9c49dba8bf2dad48f21d7bb90f0bc66a79c94b77
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