]> www.infradead.org Git - users/dwmw2/linux.git/commit
bcachefs: Allow for unknown key types in backpointers fsck
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 11 Nov 2024 04:28:33 +0000 (23:28 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 11 Nov 2024 05:37:19 +0000 (00:37 -0500)
commit2642084f26b5a5e9353fa530efb30f49e752185d
tree248e9f1f4c535c3a3598d60d270289199ff230d1
parent0b6ec0c5ac6c9e80a6157cbc5631802c81a674d7
bcachefs: Allow for unknown key types in backpointers fsck

We can't assume that btrees only contain keys of a given type - even if
they only have a single key type listed in the allowed key types for
that btree; this is a forwards compatibility issue.

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