Skip to content
Commit d64ff0d2 authored by Edward Adam Davis's avatar Edward Adam Davis Committed by Dave Kleikamp
Browse files

jfs: check if leafidx greater than num leaves per dmap tree



syzbot report a out of bounds in dbSplit, it because dmt_leafidx greater
than num leaves per dmap tree, add a checking for dmt_leafidx in dbFindLeaf.

Shaggy:
Modified sanity check to apply to control pages as well as leaf pages.

Reported-and-tested-by: default avatar <syzbot+dca05492eff41f604890@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=dca05492eff41f604890


Signed-off-by: default avatarEdward Adam Davis <eadavis@qq.com>
Signed-off-by: default avatarDave Kleikamp <dave.kleikamp@oracle.com>
parent d6c1b359
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment