]> 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)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 18 May 2023 09:15:28 +0000 (11:15 +0200)
commit4cafd0400bcb6187c0d4ab4d4b0229a89ac4f8c2
treef675340e3ee43084a7eda4e04a6f08491000194e
parent9aaa7eb018661b2da221362d9bacb096bd596f52
ceph: force updating the msg pointer in non-split case

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>
fs/ceph/snap.c