[PATCH] riscv: Fix kfence now that the linear mapping can be backed by PUD/P4D/PGD
Palmer Dabbelt
palmer at rivosinc.com
Thu Jun 8 07:04:55 PDT 2023
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 at rivosinc.com>
More information about the linux-riscv
mailing list