]> www.infradead.org Git - nvme.git/commit
bcachefs: Fix missing bounds checks in bch2_alloc_read()
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 12 Oct 2024 19:49:23 +0000 (15:49 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 13 Oct 2024 21:55:33 +0000 (17:55 -0400)
commita319aeaebb6c7d8e68125943d454031b27d6b3ef
treecb472de5b7f3e29f2ed06ef4a5ddc38d8487c878
parent573ddcdc56077615f8db045cd06b44dd8fc01f4b
bcachefs: Fix missing bounds checks in bch2_alloc_read()

We were checking that the alloc key was for a valid device, but not a
valid bucket.

This is the upgrade path from versions prior to bcachefs being mainlined.

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