aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorNikita Zhandarovich <[email protected]>2024-07-24 10:51:58 -0700
committerJaegeuk Kim <[email protected]>2024-08-05 20:18:35 +0000
commit50438dbc483ca6a133d2bce9d5d6747bcee38371 (patch)
tree64b8e35b73b5cd710df9cd4dc1116b579e67e77c /tools/perf/scripts/python/stackcollapse.py
parent1cade98cf6415897bf9342ee451cc5b40b58c638 (diff)
f2fs: avoid potential int overflow in sanity_check_area_boundary()
While calculating the end addresses of main area and segment 0, u32 may be not enough to hold the result without the danger of int overflow. Just in case, play it safe and cast one of the operands to a wider type (u64). Found by Linux Verification Center (linuxtesting.org) with static analysis tool SVACE. Fixes: fd694733d523 ("f2fs: cover large section in sanity check of super") Cc: [email protected] Signed-off-by: Nikita Zhandarovich <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions