Re: [PATCH] riscv: Fix kfence now that the linear mapping can be backed by PUD/P4D/PGD

From: Palmer Dabbelt
Date: Thu Jun 08 2023 - 10:05:29 EST



On Tue, 06 Jun 2023 15:04:44 +0200, Alexandre Ghiti wrote:
> RISC-V Kfence implementation used to rely on the fact the linear mapping
> was backed by at most PMD hugepages, which is not true anymore since
> commit 3335068f8721 ("riscv: Use PUD/P4D/PGD pages for the linear
> mapping").
>
> Instead of splitting PUD/P4D/PGD mappings afterwards, directly map the
> kfence pool region using PTE mappings by allocating this region before
> setup_vm_final().
>
> [...]

Applied, thanks!

[1/1] riscv: Fix kfence now that the linear mapping can be backed by PUD/P4D/PGD
https://git.kernel.org/palmer/c/25abe0db9243

Best regards,
--
Palmer Dabbelt <palmer@xxxxxxxxxxxx>