]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ceph: protect access to d_parent
authorSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:30:29 +0000 (11:30 -0700)
committerSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:30:29 +0000 (11:30 -0700)
commit5f21c96dd5c615341963036ae8f5e4f5227a818d
tree898c5781623b68527427d201e3f975827d08935c
parent48d0cbd1242aac969560ef8b90f26ee3b09a6a5c
ceph: protect access to d_parent

d_parent is protected by d_lock: use it when looking up a dentry's parent
directory inode.  Also take a reference and drop it in the caller to avoid
a use-after-free.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Reviewed-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/dir.c
fs/ceph/file.c
fs/ceph/inode.c
fs/ceph/ioctl.c
fs/ceph/super.h
fs/ceph/xattr.c