diff options
| author | Ivan Stepchenko <[email protected]> | 2025-06-19 14:53:13 +0000 |
|---|---|---|
| committer | Miquel Raynal <[email protected]> | 2025-06-19 17:14:46 +0000 |
| commit | 9358bdb9f9f54d94ceafc650deffefd737d19fdd (patch) | |
| tree | ca6c3a8cb2de86dff56b442ac8c6529bdac919d3 /tools/perf/scripts/python/flamegraph.py | |
| parent | mtd: nftl: reduce stack usage in NFTL_movebuf() (diff) | |
| download | kernel-9358bdb9f9f54d94ceafc650deffefd737d19fdd.tar.gz kernel-9358bdb9f9f54d94ceafc650deffefd737d19fdd.zip | |
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 <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
