summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorAtul Akella <atul.akella@gmail.com>2026-10-31 21:41:30 +0530
committerMathieu Poirier <mathieu.poirier@linaro.org>2026-11-05 10:34:34 -0600
commitb16b5a4fdf7d1f4ec15a53622d9b66081325fbf9 (patch)
treee6050324d3d76224e0cd49cd3789f5e132f3edcc /scripts/Makefile.thinlto
parent8396089f91fa07dd77b580e045334e670f782ff8 (diff)
downloadlinux-next-b16b5a4fdf7d1f4ec15a53622d9b66081325fbf9.tar.gz
linux-next-b16b5a4fdf7d1f4ec15a53622d9b66081325fbf9.zip
remoteproc: core: Fix integer overflow in rproc_da_to_va() bounds check
offset is calculated as da - carveout->da and stored in a 32 bit signed int, while da and carveout->da are both u64. For a sufficiently small da, the 64bit difference is truncated into the 32 bit int, bypassing the offset < 0 underflow check with a small positive value. Additionally, offset + len > carveout->len can itself overflow when offset and len are both large, providing a second bypass. Rewrite the bounds check entirely in u64 arithmetic. Reject underflow before computing offset (da < carveout->da). Replace the addition-based overflow check with a subtraction-based one (len > carveout->len - offset) so no intermediate sum can wrap. Signed-off-by: Atul Akella <atul.akella@gmail.com> Link: https://lore.kernel.org/r/20261031161131.1647-1-atul.akella@gmail.com Fixes: 400e64df6b23 ("remoteproc: add framework for controlling remote processors") Cc: stable@vger.kernel.org Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions