diff options
author | Piotr Zalewski <[email protected]> | 2024-09-29 14:26:45 +0000 |
---|---|---|
committer | Kent Overstreet <[email protected]> | 2024-10-09 16:42:53 -0400 |
commit | 0151d10a480da22d0c137f859645fdc79e10b551 (patch) | |
tree | a57bc930b25a5153430b54e60a39b032d766abee /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 19773ec997201a45b3a1b5f1171897cba0f30bab (diff) |
bcachefs: add check for btree id against max in try read node
Add check for read node's btree_id against BTREE_ID_NR_MAX in
try_read_btree_node to prevent triggering EBUG_ON condition in
bch2_btree_id_root[1].
[1] https://syzkaller.appspot.com/bug?extid=cf7b2215b5d70600ec00
Reported-by: [email protected]
Closes: https://syzkaller.appspot.com/bug?extid=cf7b2215b5d70600ec00
Fixes: 4409b8081d16 ("bcachefs: Repair pass for scanning for btree nodes")
Signed-off-by: Piotr Zalewski <[email protected]>
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions