linux-stable/include/linux/sched
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
..
autogroup.h
clock.h
coredump.h
cpufreq.h
cputime.h
deadline.h
debug.h treewide: Convert macro and uses of __section(foo) to __section("foo") 2020-10-25 14:51:49 -07:00
hotplug.h
idle.h
init.h
isolation.h
jobctl.h
loadavg.h
mm.h include/linux/sched/mm.h: use rcu_dereference in in_vfork() 2021-03-17 17:06:34 +01:00
nohz.h
numa_balancing.h
prio.h
rt.h
sd_flags.h
signal.h x86/signal: Detect and prevent an alternate signal stack overflow 2021-07-20 16:05:50 +02:00
smt.h
stat.h
sysctl.h
task.h
task_stack.h task_stack: Fix end_of_stack() for architectures with upwards-growing stack 2021-11-18 14:04:01 +01:00
topology.h
types.h
user.h
wake_q.h
xacct.h