aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorIvan Stepchenko <[email protected]>2025-06-19 14:53:13 +0000
committerMiquel Raynal <[email protected]>2025-06-19 17:14:46 +0000
commit9358bdb9f9f54d94ceafc650deffefd737d19fdd (patch)
treeca6c3a8cb2de86dff56b442ac8c6529bdac919d3 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentmtd: nftl: reduce stack usage in NFTL_movebuf() (diff)
downloadkernel-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 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions