]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Validate bch_sb.offset field
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 17 Mar 2025 17:58:51 +0000 (13:58 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 24 Mar 2025 13:50:35 +0000 (09:50 -0400)
commit92c7789a9ed892da60cb5da2bcb6278551e2eb34
treea7d8d35d53debb2a65d8b6a080e14f256efc3358
parent8bd875ae47cf9138816e97578cda017374b715b5
bcachefs: Validate bch_sb.offset field

This was missed - but it needs to be correct for the superblock recovery
tool that scans the start and end of the device for backup superblocks:
we don't want to pick up superblocks that belong to a different
partition that starts at a different offset.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/errcode.h
fs/bcachefs/super-io.c
fs/bcachefs/super-io.h