diff options
author | Pei Li <[email protected]> | 2024-06-25 11:41:29 -0700 |
---|---|---|
committer | Kent Overstreet <[email protected]> | 2024-06-25 17:53:31 -0400 |
commit | 472237b69d071c877e97bf0bc3eab1be865fad29 (patch) | |
tree | d523573327871abeda20e0455ca1703a7c016f15 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 211c581de28e7741898720b5f74da4e62f37f972 (diff) |
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: [email protected]
Closes: https://syzkaller.appspot.com/bug?extid=835d255ad6bc7f29ee12
Signed-off-by: Pei Li <[email protected]>
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions