The fix for the bug looks at the byte 4 bytes ahead (if the current position is 0x3C9, then the code would look at the byte at 0x3CD). In the squid release the byte most likely would be 0 (it could be non-zero for 4GiB+ extended attributes, which is highly unlikely). In the squid git snapshot from 24.04 release it would be the first char of a decimal representation of a number, which is either "-" (0x2D) or a number (a value from 0x30 to 0x39). This patch assumes that max_xattr_size is less than 64GiB and checks the byte against 0x10, and then uses the correct decoding order for bal_rank_mask and max_xattr_size for each situation.
Reef 18.2.4 has bal_rank_mask and then max_xattr_size in the same order as they are in the squid release. Quincy 17.2.7 has neither of the 2 fields. ** Patch added: "src/mds/MDSMap: decode max_xattr_size and bal_rank_mask in the right order" https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/2089565/+attachment/5859270/+files/MDSMap-decode-max_xattr_size-and-bal_rank_mask.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2089565 Title: MON and MDS crash upgrading CEPH on ubuntu 24.04 LTS To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/2089565/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
