bcachefs: Check for subvolues with bogus snapshot/inode fields
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 20 May 2024 05:11:20 +0000 (01:11 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 20 May 2024 09:37:26 +0000 (05:37 -0400)
commit765b8cb8acabdff9261a11b80c87496717f67824
treef0400aabc86b8274c754afd1d80157340342d93b
parent6b74fdcc8e25323cd256a573186f9c6c6c2410c0
bcachefs: Check for subvolues with bogus snapshot/inode fields

This fixes an assertion pop in btree_iter.c that checks for forgetting
to pass a snapshot ID when iterating over snapshots btrees.

Reported-by: syzbot+0dfe05235e38653e2aee@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/sb-errors_types.h
fs/bcachefs/subvolume.c