mbox series

[v2,0/4] ceph: dentry->d_name handing fixes

Message ID 20190417183959.11296-1-jlayton@kernel.org (mailing list archive)
Headers show
Series ceph: dentry->d_name handing fixes | expand

Message

Jeff Layton April 17, 2019, 6:39 p.m. UTC
I've sent variants of a couple of these patches individually, but needed
to respin at least one of them, and found a couple of other similar bugs
in other places.

The first two patches in this series should fix the oops that Ben
England hit while testing. The next fixes another, similar bug when
calculating the dentry hash. The final one fixes a problem that Zheng
pointed out.

I've marked the first 3 for stable, but I'm not sure whether the 4th
needs to go there as of yet.

Jeff Layton (4):
  ceph: always clone dentry name when building MDS request
  ceph: use pathlen values returned by set_request_path_attr
  ceph: ensure d_name stability in ceph_dentry_hash
  ceph: handle the case where a dentry has been renamed on outstanding
    req

 fs/ceph/dir.c        |  6 +++++-
 fs/ceph/inode.c      | 17 ++++++++++++++++-
 fs/ceph/mds_client.c | 44 ++++++++++++++++++++++++++++++++++----------
 3 files changed, 55 insertions(+), 12 deletions(-)