Skip to contentSkip to conversation

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

PATCH In review Alex Elder 3 participants 3 messages Dec 22, 2011

lore
Share & tools
lore

Alex Elder

author
#0 lore raw

cover 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

#1 lore raw
Quoted 9 lines · Alex Elder

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().

I pushed the first two to for-linus, and squashed the third into the patch it fixed. Posting the series here. Josh, can you schedule a regression suite run on that branch?

We should definitely replace the d_find_any_alias() stuff with an export from the VFS during the next window...

Thanks!
sage

#2 lore raw
Quoted 11 lines · Sage Weil
Quoted 9 lines · Alex Elder

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().

Quoted 3 lines

I pushed the first two to for-linus, and squashed the third into the patch it fixed.  Posting the series here.  Josh, can you schedule a regression suite run on that branch?

He's out of town until the middle of next week; don't count on him getting testing done before the next release!
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html