[PATCH] iommu/riscv: Remove overflows on the invalidation path

patchwork-bot+linux-riscv at kernel.org patchwork-bot+linux-riscv at kernel.org
Wed Apr 29 20:25:04 PDT 2026


Hello:

This patch was applied to riscv/linux.git (fixes)
by Joerg Roedel <joerg.roedel at amd.com>:

On Fri, 27 Mar 2026 12:22:10 -0300 you wrote:
> Since RISC-V supports a sign extended page table it should support
> a gather->end of ULONG_MAX, but if this happens it will infinite loop
> because of the overflow.
> 
> Also avoid overflow computing the length by moving the +1 to the other
> side of the <
> 
> [...]

Here is the summary with links:
  - iommu/riscv: Remove overflows on the invalidation path
    https://git.kernel.org/riscv/c/40a13b499579

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





More information about the linux-riscv mailing list