Skip to content

ceph: fix a few problems in ceph_dir_*_complete()

Alex Elder ceph-devel 1 version In review

Get series with b4
b4 am 1324576249.3957.105.camel@doink

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ceph: check for null dentry in ceph_dir_set_complete()fs/ceph/dir.c+7 -50 replies
2/3ceph: take inode lock when finding an inode aliasfs/ceph/dir.c+15 -30 replies
3/3ceph: take a reference to the dentry in d_find_any_alias()fs/ceph/dir.c+25 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] ceph: fix a few problems in ceph_dir_*_complete()

This series fixes a possible null pointer dereference in ceph_dir_set_complete().

It also fixes the ceph-private implementation of __d_find_any_alias() so it takes a reference to the returned dentry. In addition, getting that reference to the dentry requires the Linux inode lock, so ensure that is taken by (duplicating and) using the locking form of that function, d_find_any_alias().

-Alex