Searched hist:"9 cc2fa4f" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/include/linux/sched/ |
H A D | task_stack.h | 9cc2fa4f Mon Oct 04 17:05:43 CDT 2021 Helge Deller <deller@gmx.de> task_stack: Fix end_of_stack() for architectures with upwards-growing stack
The function end_of_stack() returns a pointer to the last entry of a stack. For architectures like parisc where the stack grows upwards return the pointer to the highest address in the stack.
Without this change I faced a crash on parisc, because the stackleak functionality wrote STACKLEAK_POISON to the lowest address and thus overwrote the first 4 bytes of the task_struct which included the TIF_FLAGS.
Signed-off-by: Helge Deller <deller@gmx.de>
|