]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Ancient versions with bad bkey_formats are no longer supported
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 31 Oct 2024 06:36:21 +0000 (02:36 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 7 Nov 2024 21:48:20 +0000 (16:48 -0500)
commitd335bb3fd3a4102f325ef8a353efc3d2fb523f55
tree7d23a6db9ff915d6819e77d08ed9c223990ccc2a
parent72acab3a7c5aee76451fa6054e9608026476a971
bcachefs: Ancient versions with bad bkey_formats are no longer supported

Syzbot found an assertion pop, by generating an ancient filesystem
version with an invalid bkey_format (with fields that can overflow) as
well as packed keys that aren't representable unpacked.

This breaks key comparisons in all sorts of painful ways.

Filesystems have been automatically rewriting nodes with such invalid
formats for years; we can safely drop support for them.

Reported-by: syzbot+8a0109511de9d4b61217@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bkey.c