Re: [PATCH] riscv: Sync efi page table's kernel mappings before switching

From: Palmer Dabbelt
Date: Mon Nov 28 2022 - 19:40:46 EST


On Mon, 21 Nov 2022 14:33:03 +0100, Alexandre Ghiti wrote:
> The EFI page table is initially created as a copy of the kernel page table.
> With VMAP_STACK enabled, kernel stacks are allocated in the vmalloc area:
> if the stack is allocated in a new PGD (one that was not present at the
> moment of the efi page table creation or not synced in a previous vmalloc
> fault), the kernel will take a trap when switching to the efi page table
> when the vmalloc kernel stack is accessed, resulting in a kernel panic.
>
> [...]

Applied, thanks!

[1/1] riscv: Sync efi page table's kernel mappings before switching
https://git.kernel.org/palmer/c/3f105a742725

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