Use a virtually-mapped stack
configname: CONFIG_VMAP_STACK
Linux Kernel Configuration
└─>General architecture-dependent options
└─>Use a virtually-mapped stack
In linux kernel since version 3.10 (release Date: 2013-06-30)
Enable this if you want the use virtually-mapped kernel stacks
with guard pages. This causes kernel stack overflows to be
caught immediately rather than causing difficult-to-diagnose
corruption.
To use this with KASAN, the architecture must support backing
virtual mappings with real shadow memory, and KASAN_VMALLOC must
be enabled.
with guard pages. This causes kernel stack overflows to be
caught immediately rather than causing difficult-to-diagnose
corruption.
To use this with KASAN, the architecture must support backing
virtual mappings with real shadow memory, and KASAN_VMALLOC must
be enabled.