mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
ARM: fix kill( ,SIGFPE) breakage
Commit7771c66457
("signal/arm: Document conflicts with SI_USER and SIGFPE") broke the siginfo structure for userspace triggered signals, causing the strace testsuite to regress. Fix this by eliminating the FPE_FIXME definition (which is at the root of the breakage) and use FPE_FLTINV instead for the case where the hardware appears to be reporting nonsense. Fixes:7771c66457
("signal/arm: Document conflicts with SI_USER and SIGFPE") Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
This commit is contained in:
parent
0d73c3f8e7
commit
92d44a42af
2 changed files with 1 additions and 14 deletions
|
@ -1,13 +0,0 @@
|
||||||
#ifndef __ASM_SIGINFO_H
|
|
||||||
#define __ASM_SIGINFO_H
|
|
||||||
|
|
||||||
#include <asm-generic/siginfo.h>
|
|
||||||
|
|
||||||
/*
|
|
||||||
* SIGFPE si_codes
|
|
||||||
*/
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
#define FPE_FIXME 0 /* Broken dup of SI_USER */
|
|
||||||
#endif /* __KERNEL__ */
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -257,7 +257,7 @@ static void vfp_raise_exceptions(u32 exceptions, u32 inst, u32 fpscr, struct pt_
|
||||||
|
|
||||||
if (exceptions == VFP_EXCEPTION_ERROR) {
|
if (exceptions == VFP_EXCEPTION_ERROR) {
|
||||||
vfp_panic("unhandled bounce", inst);
|
vfp_panic("unhandled bounce", inst);
|
||||||
vfp_raise_sigfpe(FPE_FIXME, regs);
|
vfp_raise_sigfpe(FPE_FLTINV, regs);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue