Re: [PATCH v2 00/13] Dynamic Kernel Stacks
From: Dave Hansen
Date: Mon Apr 27 2026 - 12:34:45 EST
On 4/25/26 02:19, H. Peter Anvin wrote:
> It is worth noting that this was one of the VERY early design decisions that
> has shaped Linux from the beginning:
>
> - No swapping of kernel memory
> - Kernel stacks are statically allocated
...
One other bit to add here: In the past, kernel faults on kernel memory
have been allowed, like to populate vmalloc() page table entries into
the parts of the page tables that are not shared across processes. Even
*that* turned out to be too much of a pain even though it didn't involve
allocation, and the kernel has been moving away from that.