Re: [PATCH v4 1/1] mm/rmap: fix potential out-of-bounds page table access during batched unmap
From: patchwork-bot+linux-riscv
Date: Wed Jul 16 2025 - 11:23:32 EST
Hello:
This patch was applied to riscv/linux.git (fixes)
by Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>:
On Tue, 1 Jul 2025 22:31:00 +0800 you wrote:
> From: Lance Yang <lance.yang@xxxxxxxxx>
>
> As pointed out by David[1], the batched unmap logic in try_to_unmap_one()
> may read past the end of a PTE table when a large folio's PTE mappings
> are not fully contained within a single page table.
>
> While this scenario might be rare, an issue triggerable from userspace must
> be fixed regardless of its likelihood. This patch fixes the out-of-bounds
> access by refactoring the logic into a new helper, folio_unmap_pte_batch().
>
> [...]
Here is the summary with links:
- [v4,1/1] mm/rmap: fix potential out-of-bounds page table access during batched unmap
https://git.kernel.org/riscv/c/ddd05742b45b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html