aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorDongliang Mu <[email protected]>2022-10-18 08:48:07 -0500
committerDave Kleikamp <[email protected]>2022-10-18 08:49:42 -0500
commit898f706695682b9954f280d95e49fa86ffa55d08 (patch)
treeabd223efffb99bcf200b2fafa0a9282fe34f51c8 /scripts/generate_rust_analyzer.py
parentbbb8ceb5e2421184db9560e9d2cfaf858e1db616 (diff)
fs: jfs: fix shift-out-of-bounds in dbAllocAG
Syzbot found a crash : UBSAN: shift-out-of-bounds in dbAllocAG. The underlying bug is the missing check of bmp->db_agl2size. The field can be greater than 64 and trigger the shift-out-of-bounds. Fix this bug by adding a check of bmp->db_agl2size in dbMount since this field is used in many following functions. The upper bound for this field is L2MAXL2SIZE - L2MAXAG, thanks for the help of Dave Kleikamp. Note that, for maintenance, I reorganized error handling code of dbMount. Reported-by: [email protected] Signed-off-by: Dongliang Mu <[email protected]> Signed-off-by: Dave Kleikamp <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions