Helge Deller
50a2d1229b
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-18 14:04:01 +01:00
..
2021-10-20 11:45:04 +02:00
2021-09-15 09:50:26 +02:00
2021-11-18 14:04:01 +01:00
2021-08-26 08:35:42 -04:00
2021-09-08 08:49:01 +02:00
2021-09-18 13:40:13 +02:00
2021-11-06 14:10:09 +01:00
2021-11-18 14:03:57 +01:00
2021-09-03 10:09:31 +02:00
2021-11-02 19:48:21 +01:00
2021-09-26 14:08:59 +02:00
2021-09-30 10:11:07 +02:00
2021-11-18 14:03:49 +01:00
2021-09-08 08:49:00 +02:00
2021-08-18 08:59:17 +02:00
2021-10-27 09:56:51 +02:00
2021-09-15 09:50:37 +02:00
2021-09-18 13:40:21 +02:00
2021-11-18 14:03:42 +01:00
2021-09-08 08:49:01 +02:00
2021-09-08 08:48:59 +02:00
2021-09-15 09:50:25 +02:00
2021-09-18 13:40:36 +02:00
2021-09-18 13:40:36 +02:00
2021-08-18 08:59:13 +02:00
2021-09-18 13:40:14 +02:00
2021-08-18 08:59:15 +02:00
2021-11-18 14:03:56 +01:00
2021-11-18 14:03:37 +01:00
2021-09-30 10:11:04 +02:00
2021-09-15 09:50:41 +02:00
2021-09-15 09:50:41 +02:00
2021-09-15 09:50:41 +02:00
2021-11-18 14:03:36 +01:00
2021-11-18 14:03:36 +01:00
2021-10-09 14:40:56 +02:00
2021-08-26 08:35:57 -04:00
2021-09-22 12:27:59 +02:00
2021-08-15 14:00:25 +02:00
2021-08-18 08:59:17 +02:00
2021-09-03 10:09:31 +02:00
2021-09-03 10:09:21 +02:00
2021-09-22 12:28:00 +02:00
2021-09-22 12:28:04 +02:00
2021-10-17 10:43:33 +02:00
2021-09-03 10:09:28 +02:00
2021-09-18 13:40:19 +02:00
2021-10-17 10:43:33 +02:00
2021-11-18 14:03:36 +01:00
2021-09-22 12:27:58 +02:00
2021-09-03 10:09:30 +02:00
2021-09-03 10:09:30 +02:00
2021-09-03 10:09:25 +02:00
2021-08-15 14:00:24 +02:00
2021-09-26 14:08:59 +02:00
2021-09-16 12:51:23 +02:00
2021-09-08 08:49:00 +02:00
2021-08-26 08:35:41 -04:00