linux_dsm_epyc7002/arch/x86_64/ia32
Roland McGrath 0928d6ef7f [PATCH] x86_64: never block forced SIGSEGV
This is the x86_64 version of the signal fix I just posted for i386.

This problem was first noticed on PPC and has already been fixed there.
But the exact same issue applies to other platforms in the same way.  The
signal blocking for sa_mask and the handled signal takes place after the
handler setup.  When the stack is bogus, the handler setup forces a
SIGSEGV.  But then this will be blocked, and returning to user mode will
fault again and iterate.  This patch fixes the problem by checking whether
signal handler setup failed, and not doing the signal-blocking if so.  This
copies what was done in the ppc code.  I think all architectures' signal
handler setup code follows this pattern and needs the change.

Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-23 09:45:13 -07:00
..
fpu32.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ia32_aout.c [PATCH] Avoiding mmap fragmentation 2005-06-21 18:46:16 -07:00
ia32_binfmt.c [PATCH] x86_64: TASK_SIZE fixes for compatibility mode processes 2005-06-21 18:46:12 -07:00
ia32_ioctl.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ia32_signal.c [PATCH] x86_64: never block forced SIGSEGV 2005-06-23 09:45:13 -07:00
ia32entry.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipc32.c 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
ptrace32.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sys_ia32.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
syscall32.c [PATCH] x86_64: Use a VMA for the 32bit vsyscall 2005-04-16 15:24:55 -07:00
tls32.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vsyscall-sigreturn.S [PATCH] x86-64: i386 vDSO: add PT_NOTE segment 2005-04-16 15:24:50 -07:00
vsyscall-syscall.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vsyscall-sysenter.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vsyscall.lds [PATCH] x86_64: fix PT_NOTE addition to IA32 vDSO 2005-04-28 22:47:29 -07:00