Re: [PATCH] riscv: Fix hugetlb retrieval of number of ptes in case of !present pte
From: patchwork-bot+linux-riscv
Date: Thu Apr 03 2025 - 12:21:44 EST
Hello:
This patch was applied to riscv/linux.git (for-next)
by Alexandre Ghiti <alexghiti@xxxxxxxxxxxx>:
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