[PATCH] riscv: Fix hugetlb retrieval of number of ptes in case of !present pte

patchwork-bot+linux-riscv at kernel.org patchwork-bot+linux-riscv at kernel.org
Thu Apr 3 09:20:40 PDT 2025


Hello:

This patch was applied to riscv/linux.git (for-next)
by Alexandre Ghiti <alexghiti at rivosinc.com>:

On Mon, 17 Mar 2025 08:25:51 +0100 you wrote:
> Ryan sent a fix [1] for arm64 that applies to riscv too: in some hugetlb
> functions, we must not use the pte value to get the size of a mapping
> because the pte may not be present.
> 
> So use the already present size parameter for huge_pte_clear() and the
> newly introduced size parameter for huge_ptep_get_and_clear(). And make
> sure to gather A/D bits only on present ptes.
> 
> [...]

Here is the summary with links:
  - riscv: Fix hugetlb retrieval of number of ptes in case of !present pte
    https://git.kernel.org/riscv/c/83d78ac677b9

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