linux/fs/bcachefs
Pei Li 472237b69d bcachefs: Fix shift-out-of-bounds in bch2_blacklist_entries_gc
This series fix the shift-out-of-bounds issue in
bch2_blacklist_entries_gc().

Instead of passing 0 to eytzinger0_first() when iterating the entries,
we explicitly check 0 and initialize i to be 0.

syzbot has tested the proposed patch and the reproducer did not trigger
any issue:

Reported-and-tested-by: syzbot+835d255ad6bc7f29ee12@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=835d255ad6bc7f29ee12
Signed-off-by: Pei Li <peili.dev@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-06-25 17:53:31 -04:00
..
2024-05-08 17:29:23 -04:00
2024-03-13 21:22:26 -04:00
2024-06-19 18:27:23 -04:00
2024-06-19 18:27:23 -04:00
2024-03-13 18:39:12 -04:00
2024-01-01 11:46:52 -05:00
2024-01-21 13:27:10 -05:00
2024-01-21 13:27:11 -05:00
2024-06-20 09:13:09 -04:00
2024-06-20 09:13:09 -04:00
2024-01-21 13:27:11 -05:00
2024-04-08 22:56:37 -04:00
2024-03-13 18:39:12 -04:00
2024-01-21 13:27:10 -05:00
2024-06-05 10:44:08 -04:00
2024-06-20 09:13:09 -04:00
2024-05-22 19:54:03 -04:00
2024-05-08 17:29:17 -04:00
2024-01-21 13:27:10 -05:00
2024-01-21 13:27:11 -05:00
2024-05-08 17:29:19 -04:00
2024-06-23 00:57:21 -04:00
2024-01-01 11:47:40 -05:00
2024-01-21 13:27:10 -05:00
2024-05-08 17:29:19 -04:00
2024-01-21 13:27:10 -05:00