diff options
author | 2024-04-17 15:19:50 -0400 | |
---|---|---|
committer | 2024-04-20 00:16:53 -0400 | |
commit | fcdbc1d7a4b638e5d5668de461f320386f3002aa (patch) | |
tree | 48c7ec295107f215e3983ace40aea1b88b2a480c /fs/bcachefs/sb-errors_types.h | |
parent | bcachefs: Fix bio alloc in check_extent_checksum() (diff) | |
download | linux-fcdbc1d7a4b638e5d5668de461f320386f3002aa.tar.gz linux-fcdbc1d7a4b638e5d5668de461f320386f3002aa.tar.bz2 linux-fcdbc1d7a4b638e5d5668de461f320386f3002aa.zip |
bcachefs: Check for journal entries overruning end of sb clean section
Fix a missing bounds check in superblock validation.
Note that we don't yet have repair code for this case - repair code for
individual items is generally low priority, since the whole superblock
is checksummed, validated prior to write, and we have backups.
Reported-by: lei lu <llfamsec@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sb-errors_types.h')
-rw-r--r-- | fs/bcachefs/sb-errors_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/sb-errors_types.h b/fs/bcachefs/sb-errors_types.h index 4ca6e7b0d8aa..06c7a644f4a4 100644 --- a/fs/bcachefs/sb-errors_types.h +++ b/fs/bcachefs/sb-errors_types.h @@ -271,7 +271,8 @@ x(btree_root_unreadable_and_scan_found_nothing, 263) \ x(snapshot_node_missing, 264) \ x(dup_backpointer_to_bad_csum_extent, 265) \ - x(btree_bitmap_not_marked, 266) + x(btree_bitmap_not_marked, 266) \ + x(sb_clean_entry_overrun, 267) enum bch_sb_error_id { #define x(t, n) BCH_FSCK_ERR_##t = n, |