]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: mark invalid_btree_id autofix
authorBharadwaj Raju <bharadwaj.raju777@gmail.com>
Fri, 27 Jun 2025 16:41:29 +0000 (22:11 +0530)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 27 Jun 2025 16:47:07 +0000 (12:47 -0400)
commit96de8f85203147e3d1e646da891307fa3e462c32
tree4b07a38700f556376e1e13af2fbded61e79e467b
parentef6fac0f9e5d0695cee1d820c727fe753eca52d5
bcachefs: mark invalid_btree_id autofix

Checking for invalid IDs was introduced in 9e7cfb35e266 ("bcachefs: Check for invalid btree IDs")
to prevent an invalid shift later, but since 141526548052 ("bcachefs: Bad btree roots are now autofix")
which made btree_root_bkey_invalid autofix, the fsck_err_on call didn't
do anything.

We can mark this err type (invalid_btree_id) autofix as well, so it gets
handled.

Reported-by: syzbot+029d1989099aa5ae3e89@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=029d1989099aa5ae3e89
Fixes: 141526548052 ("bcachefs: Bad btree roots are now autofix")
Signed-off-by: Bharadwaj Raju <bharadwaj.raju777@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/sb-errors_format.h