Files
twx-linux/include/linux
Helge Deller a9a411adca task_stack: Fix end_of_stack() for architectures with upwards-growing stack
[ Upstream commit 9cc2fa4f4a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-17 09:48:33 +01:00
..
2021-01-30 13:54:11 +01:00
2021-05-19 10:08:30 +02:00
2021-03-04 10:26:29 +01:00
2021-02-07 15:35:49 +01:00
2021-11-17 09:48:17 +01:00
2021-06-30 08:47:51 -04:00
2021-09-03 10:08:12 +02:00
2021-03-07 12:20:49 +01:00
2020-12-11 13:23:28 +01:00
2021-08-26 08:36:16 -04:00
2021-06-10 13:37:14 +02:00