aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/rbtree.py
diff options
context:
space:
mode:
authorLi Nan <[email protected]>2023-05-15 21:48:05 +0800
committerSong Liu <[email protected]>2023-06-13 15:13:20 -0700
commit301867b1c16805aebbc306aafa6ecdc68b73c7e5 (patch)
tree851e4e5454f9942f1ae5f8c1bd32788cab1ee24e /scripts/gdb/linux/rbtree.py
parent3de13550a20fd570441c0f854abe58c6cc46c0bc (diff)
md/raid10: check slab-out-of-bounds in md_bitmap_get_counter
If we write a large number to md/bitmap_set_bits, md_bitmap_checkpage() will return -EINVAL because 'page >= bitmap->pages', but the return value was not checked immediately in md_bitmap_get_counter() in order to set *blocks value and slab-out-of-bounds occurs. Move check of 'page >= bitmap->pages' to md_bitmap_get_counter() and return directly if true. Fixes: ef4256733506 ("md/bitmap: optimise scanning of empty bitmaps.") Signed-off-by: Li Nan <[email protected]> Reviewed-by: Yu Kuai <[email protected]> Signed-off-by: Song Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/rbtree.py')
0 files changed, 0 insertions, 0 deletions