]> git.itanic.dy.fi Git - linux-stable/commit
ceph: force updating the msg pointer in non-split case
authorXiubo Li <xiubli@redhat.com>
Thu, 18 May 2023 01:47:23 +0000 (09:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:36:55 +0000 (17:36 +0100)
commit317ee8c54faa0e6152d1af2826b05f407db458a2
tree6d5da68340a82f144097348679ab1a2883cb8978
parente3d1adcad5b73c7ed0c7edb35ab68abcaa45cf67
ceph: force updating the msg pointer in non-split case

commit 4cafd0400bcb6187c0d4ab4d4b0229a89ac4f8c2 upstream.

When the MClientSnap reqeust's op is not CEPH_SNAP_OP_SPLIT the
request may still contain a list of 'split_realms', and we need
to skip it anyway. Or it will be parsed as a corrupt snaptrace.

Cc: stable@vger.kernel.org
Link: https://tracker.ceph.com/issues/61200
Reported-by: Frank Schilder <frans@dtu.dk>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/snap.c