summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorIvan Stepchenko <sid@itb.spb.ru>2025-06-19 17:53:13 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2025-06-19 19:14:46 +0200
commit9358bdb9f9f54d94ceafc650deffefd737d19fdd (patch)
treeca6c3a8cb2de86dff56b442ac8c6529bdac919d3 /tools/perf/scripts/python/intel-pt-events.py
parentd22d5f47ecb2c4e140c0ee52204f4dd8fd0e85eb (diff)
mtd: fix possible integer overflow in erase_xfer()
The expression '1 << EraseUnitSize' is evaluated in int, which causes a negative result when shifting by 31 - the upper bound of the valid range [10, 31], enforced by scan_header(). This leads to incorrect extension when storing the result in 'erase->len' (uint64_t), producing a large unexpected value. Found by Linux Verification Center (linuxtesting.org) with Svace. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Ivan Stepchenko <sid@itb.spb.ru> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions