]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:12:08 +0000 (13:12 +0100)
commit9aa0b0c14cefece078286d78b97d4c09685e372d
tree1388f1a48e80de3f318c4e835032bb2158ece3ec
parentd943b5f592767b107ba8c12a902f17431350378c
libceph: replace overzealous BUG_ON in osdmap_apply_incremental()

commit e00c3f71b5cf75681dbd74ee3f982a99cb690c2b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/osdmap.c