aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorAnant Thazhemadam <[email protected]>2020-10-14 22:01:09 +0530
committerAndreas Gruenbacher <[email protected]>2020-10-15 14:29:03 +0200
commit0ddc5154b24c96f20e94d653b0a814438de6032b (patch)
treeb8cab8d0cfce3bfe02f8cf87304ef2a255ae6f20 /tools/perf/util/scripting-engines/trace-event-python.c
parentc2a04b02c060c4858762edce4674d5cba3e5a96f (diff)
gfs2: add validation checks for size of superblock
In gfs2_check_sb(), no validation checks are performed with regards to the size of the superblock. syzkaller detected a slab-out-of-bounds bug that was primarily caused because the block size for a superblock was set to zero. A valid size for a superblock is a power of 2 between 512 and PAGE_SIZE. Performing validation checks and ensuring that the size of the superblock is valid fixes this bug. Reported-by: [email protected] Tested-by: [email protected] Suggested-by: Andrew Price <[email protected]> Signed-off-by: Anant Thazhemadam <[email protected]> [Minor code reordering.] Signed-off-by: Andreas Gruenbacher <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions