linux-stable/fs/ceph
Xiubo Li 850bb48189 ceph: switch to corrected encoding of max_xattr_size in mdsmap
[ Upstream commit 51d31149a8 ]

The addition of bal_rank_mask with encoding version 17 was merged
into ceph.git in Oct 2022 and made it into v18.2.0 release normally.
A few months later, the much delayed addition of max_xattr_size got
merged, also with encoding version 17, placed before bal_rank_mask
in the encoding -- but it didn't make v18.2.0 release.

The way this ended up being resolved on the MDS side is that
bal_rank_mask will continue to be encoded in version 17 while
max_xattr_size is now encoded in version 18.  This does mean that
older kernels will misdecode version 17, but this is also true for
v18.2.0 and v18.2.1 clients in userspace.

The best we can do is backport this adjustment -- see ceph.git
commit 78abfeaff27fee343fb664db633de5b221699a73 for details.

[ idryomov: changelog ]

Cc: stable@vger.kernel.org
Link: https://tracker.ceph.com/issues/64440
Fixes: d93231a6bc ("ceph: prevent a client from exceeding the MDS maximum xattr size")
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-15 10:48:13 -04:00
..
Kconfig
Makefile
acl.c
addr.c ceph: fix blindly expanding the readahead windows 2023-07-23 13:49:41 +02:00
cache.c mm, netfs, fscache: stop read optimisation when folio removed from pagecache 2024-01-10 17:10:31 +01:00
cache.h
caps.c ceph: prevent use-after-free in encode_cap_msg() 2024-02-23 09:12:46 +01:00
ceph_frag.c
debugfs.c
dir.c
export.c
file.c ceph: fix type promotion bug on 32bit systems 2023-10-19 23:08:57 +02:00
inode.c ceph: fix incorrect revoked caps assert in ceph_fill_file_size() 2023-10-19 23:08:56 +02:00
io.c
io.h
ioctl.c
ioctl.h
locks.c
mds_client.c ceph: reinitialize mds feature bit even when session in open 2024-02-05 20:12:59 +00:00
mds_client.h ceph: drop messages from MDS when unmounting 2023-10-06 14:56:50 +02:00
mdsmap.c ceph: switch to corrected encoding of max_xattr_size in mdsmap 2024-03-15 10:48:13 -04:00
metric.c ceph: never send metrics if disable_send_metrics is set 2023-08-03 10:24:16 +02:00
metric.h
quota.c ceph: fix invalid pointer access if get_quota_realm return ERR_PTR 2024-02-05 20:12:59 +00:00
snap.c ceph: drop messages from MDS when unmounting 2023-10-06 14:56:50 +02:00
strings.c
super.c ceph: drop messages from MDS when unmounting 2023-10-06 14:56:50 +02:00
super.h ceph: drop messages from MDS when unmounting 2023-10-06 14:56:50 +02:00
util.c
xattr.c