Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc: clear floating point exception flag on SIGFPE signal

Clear the floating point exception flag before returning to
user space. This is needed, else the libc trampoline handler
may hit the same SIGFPE again while building up a trampoline
to a signal handler.

Fixes debian bug #559406.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>

authored by

Helge Deller and committed by
Kyle McMartin
550f0d92 d24944d9

+1
+1
arch/parisc/math-emu/decode_exc.c
··· 342 342 return SIGNALCODE(SIGFPE, FPE_FLTINV); 343 343 case DIVISIONBYZEROEXCEPTION: 344 344 update_trap_counts(Fpu_register, aflags, bflags, trap_counts); 345 + Clear_excp_register(exception_index); 345 346 return SIGNALCODE(SIGFPE, FPE_FLTDIV); 346 347 case INEXACTEXCEPTION: 347 348 update_trap_counts(Fpu_register, aflags, bflags, trap_counts);