bcachefs: Fix shift overflows in replicas.c
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 19 May 2024 21:28:44 +0000 (17:28 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 20 May 2024 09:37:26 +0000 (05:37 -0400)
commitbcfbaea8e547881cd2cab6e05c3cd75449128590
tree19b4421d4fdb8b9d5ff212f069161e93c3b48f83
parentf108ddd467b5cad84a6d93cdd0a251ba47ceaccb
bcachefs: Fix shift overflows in replicas.c

We can't disallow unknown data_types in verify() - we have to preserve
them unchanged for backwards compat; that means we have to add a few
more guards.

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