]> www.infradead.org Git - users/dwmw2/linux.git/commit
bcachefs: Fix journal_entry_dev_usage_to_text() overrun
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 11 Nov 2024 21:01:38 +0000 (16:01 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 12 Nov 2024 08:46:57 +0000 (03:46 -0500)
commit657d4282d8c4ac2349472529c9a6f20c503d1aee
tree5142a09be19631b05a90abd15daaf490673c3678
parent2642084f26b5a5e9353fa530efb30f49e752185d
bcachefs: Fix journal_entry_dev_usage_to_text() overrun

If the jset_entry_dev_usage is malformed, and too small, our nr_entries
calculation will be incorrect - just bail out.

Reported-by: syzbot+05d7520be047c9be86e0@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal_io.c