Skip to content

ceph: minor fixes and encrypted snapshot names

Luís Henriques ceph-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ceph: fix error path in ceph_readdir()fs/ceph/dir.c+0 -12 replies
2/3ceph: fix use-after-free in ceph_readdirfs/ceph/dir.c+1 -03 replies
3/3ceph: add support for encrypted snapshot namesfs/ceph/dir.c fs/ceph/inode.c+22 -03 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: minor fixes and encrypted snapshot names

Hi!

I'm sending another iteration of the encrypted snapshot names patch. This patch assumes PR#45224 [1] to be merged as it adds support for the alternate names.

Two notes:

1. Patch 0001 is just a small fix from another fscrypt patch. It's probably better to simply squash it.

2. I'm not sure how easy it is to hit the UAF fixed by patch 0002. I can reproduce it easily by commenting the code that adds the DCACHE_NOKEY_NAME flag in patch 0003.

Any comments are welcome (including for the PR mentioned above, of course).

[1] https://github.com/ceph/ceph/pull/45224

Luís Henriques (3):
ceph: fix error path in ceph_readdir()
ceph: fix use-after-free in ceph_readdir
ceph: add support for encrypted snapshot names

 fs/ceph/dir.c   | 11 ++++++++++-
 fs/ceph/inode.c | 13 +++++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)