kernel-ark/arch/ppc64
Paul Mackerras 9747dd6fa9 [PATCH] ppc64: fix 32-bit signal frame back link
When the kernel creates a signal frame on the user stack, it puts the
old stack pointer value at the beginning so that the signal frame is
linked into the chain of stack frames like any other frame.
Unfortunately, for 32-bit processes we are writing the old stack
pointer as a 64-bit value rather than a 32-bit value, and the process
sees that as a null pointer, since it only looks at the first 32 bits,
which are zero since ppc is bigendian and the stack pointer is below
4GB.  This bug is in SLES9 and RHEL4 too, hence the ccs.

This patch fixes the bug by making the signal code write the old stack
pointer as a u32 instead of an unsigned long.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-04-30 10:01:40 -07:00
..
boot Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
configs Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kernel [PATCH] ppc64: fix 32-bit signal frame back link 2005-04-30 10:01:40 -07:00
lib Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mm [PATCH] freepgt: hugetlb area is clean 2005-04-19 13:29:18 -07:00
oprofile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xmon [PATCH] ppc-opc NULL noise removal 2005-04-26 07:43:41 -07:00
defconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig [PATCH] ppc64: remove -fno-omit-frame-pointer 2005-04-16 15:24:37 -07:00
Kconfig.debug Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00