kernel-hacking-2024-linux-s.../arch/parisc
Helge Deller 9372450cc2 parisc: add kernel stack overflow check
Add the CONFIG_DEBUG_STACKOVERFLOW config option to enable checks to
detect kernel stack overflows.

Stack overflows can not be detected reliable since we do not want to
introduce too much overhead.

Instead, during irq processing in do_cpu_irq_mask() we check kernel
stack usage of the interrupted kernel process. Kernel threads can be
easily detected by checking the value of space register 7 (sr7) which
is zero when running inside the kernel.

Since THREAD_SIZE is 16k and PAGE_SIZE is 4k, reduce the alignment of
the init thread to the lower value (PAGE_SIZE) in the kernel
vmlinux.ld.S linker script.

Signed-off-by: Helge Deller <deller@gmx.de>
2013-05-07 21:34:07 +02:00
..
configs
hpux [PARISC] hpux: Remove obsolete regs parameter from do_execve() in hpux_execve() 2013-01-30 13:26:57 +11:00
include parisc: add kernel stack overflow check 2013-05-07 21:34:07 +02:00
kernel parisc: add kernel stack overflow check 2013-05-07 21:34:07 +02:00
lib parisc: Provide __ucmpdi2 to resolve undefined references in 32 bit builds. 2013-04-25 22:36:15 +02:00
math-emu parisc: avoid undefined shift in cnv_float.h 2013-01-07 23:06:22 +01:00
mm mm/parisc: use common help functions to free reserved pages 2013-04-29 15:54:30 -07:00
oprofile
defpalo.conf
install.sh
Kconfig parisc: implement atomic64_dec_if_positive() 2013-05-06 23:10:04 +02:00
Kconfig.debug parisc: add kernel stack overflow check 2013-05-07 21:34:07 +02:00
Makefile parisc: fix NATIVE set up in build 2013-05-06 23:09:33 +02:00
nm