Loading
bcachefs: fix shift oob in alloc_lru_idx_fragmentation
The size of a.data_type is set abnormally large, causing shift-out-of-bounds. To fix this, we need to add validation on a.data_type in alloc_lru_idx_fragmentation(). Reported-by:<syzbot+7f45fa9805c40db3f108@syzkaller.appspotmail.com> Fixes: 260af156 ("bcachefs: Kill alloc_v4.fragmentation_lru") Signed-off-by:
Jeongjun Park <aha310510@gmail.com> Signed-off-by:
Kent Overstreet <kent.overstreet@linux.dev>