]> git.ipfire.org Git - thirdparty/linux.git/commit
bcachefs: Check for journal entries overruning end of sb clean section
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 17 Apr 2024 19:19:50 +0000 (15:19 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 20 Apr 2024 04:16:53 +0000 (00:16 -0400)
commitfcdbc1d7a4b638e5d5668de461f320386f3002aa
tree48c7ec295107f215e3983ace40aea1b88b2a480c
parent0389c09b2fb702ca7924ddf550ce0c8af708b8be
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>
fs/bcachefs/sb-clean.c
fs/bcachefs/sb-errors_types.h