Commit c214006
jfs: upper bound check of tree index in dbAllocAG
When computing the tree index in dbAllocAG, we never check if we are
out of bounds realative to the size of the stree.
This could happen in a scenario where the filesystem metadata are
corrupted.
Reported-by: [email protected]
Closes: https://syzkaller.appspot.com/bug?extid=cffd18309153948f3c3e
Tested-by: [email protected]
Signed-off-by: Arnaud Lecomte <[email protected]>
Signed-off-by: Dave Kleikamp <[email protected]>1 parent bc9ff19 commit c214006
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1389 | 1389 | | |
1390 | 1390 | | |
1391 | 1391 | | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
1392 | 1398 | | |
1393 | 1399 | | |
1394 | 1400 | | |
| |||
0 commit comments