]> git.ipfire.org Git - thirdparty/linux.git/commit
libceph: replace overzealous BUG_ON in osdmap_apply_incremental()
authorIlya Dryomov <idryomov@gmail.com>
Mon, 15 Dec 2025 10:53:31 +0000 (11:53 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 5 Jan 2026 12:28:26 +0000 (13:28 +0100)
commite00c3f71b5cf75681dbd74ee3f982a99cb690c2b
tree3543274b6ef14bb7d6afa6b868e9a55153fd202f
parent818156caffbf55cb4d368f9c3cac64e458fb49c9
libceph: replace overzealous BUG_ON in osdmap_apply_incremental()

If the osdmap is (maliciously) corrupted such that the incremental
osdmap epoch is different from what is expected, there is no need to
BUG.  Instead, just declare the incremental osdmap to be invalid.

Cc: stable@vger.kernel.org
Reported-by: ziming zhang <ezrakiez@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/osdmap.c