linux/arch/um/include
Johannes Berg ef4459a6da um: allocate a guard page to helper threads
We've been running into stack overflows in helper threads
corrupting memory (e.g. because somebody put printf() or
os_info() there), so to avoid those causing hard-to-debug
issues later on, allocate a guard page for helper thread
stacks and mark it read-only.

Unfortunately, the crash dump at that point is useless as
the stack tracer will try to backtrace the *kernel* thread,
not the helper thread, but at least we don't survive to a
random issue caused by corruption.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2020-12-13 22:38:06 +01:00
..
asm um: support some of ARCH_HAS_SET_MEMORY 2020-12-13 22:38:06 +01:00
linux um: Simplify os_idle_sleep() and sleep longer 2020-12-13 22:22:37 +01:00
shared um: allocate a guard page to helper threads 2020-12-13 22:38:06 +01:00