[GIT PULL] Ceph fixes for 6.4-rc6

From: Ilya Dryomov
Date: Fri Jun 09 2023 - 12:32:01 EST


Hi Linus,

The following changes since commit 9561de3a55bed6bdd44a12820ba81ec416e705a7:

Linux 6.4-rc5 (2023-06-04 14:04:27 -0400)

are available in the Git repository at:

https://github.com/ceph/ceph-client.git tags/ceph-for-6.4-rc6

for you to fetch changes up to 409e873ea3c1fd3079909718bbeb06ac1ec7f38b:

ceph: fix use-after-free bug for inodes when flushing capsnaps (2023-06-08 08:56:25 +0200)

----------------------------------------------------------------
A fix for a potential data corruption in differential backup and
snapshot-based mirroring scenarios in RBD and a reference counting
fixup to avoid use-after-free in CephFS, all marked for stable.

----------------------------------------------------------------
Ilya Dryomov (2):
rbd: move RBD_OBJ_FLAG_COPYUP_ENABLED flag setting
rbd: get snapshot context after exclusive lock is ensured to be held

Xiubo Li (1):
ceph: fix use-after-free bug for inodes when flushing capsnaps

drivers/block/rbd.c | 62 +++++++++++++++++++++++++++++++++++++----------------
fs/ceph/caps.c | 6 ++++++
fs/ceph/snap.c | 4 +++-
3 files changed, 53 insertions(+), 19 deletions(-)