OSDN Git Service

signal: Add FPE_FLTUNK si_code for undiagnosable fp exceptions
authorDave Martin <Dave.Martin@arm.com>
Thu, 1 Mar 2018 17:44:06 +0000 (17:44 +0000)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 15 Mar 2018 21:04:25 +0000 (16:04 -0500)
commit266da65e9156d93e1126e185259a4aae68188d0e
tree0591d9cd021e9693a5bbf56e914ea140ea2be091
parentf6a015498dcaee72f80283cb7873d88deb07129c
signal: Add FPE_FLTUNK si_code for undiagnosable fp exceptions

Some architectures cannot always report accurately what kind of
floating-point exception triggered a floating-point exception trap.

This can occur with fp exceptions occurring on lanes in a vector
instruction on arm64 for example.

Rather than have every architecture come up with its own way of
describing such a condition, this patch adds a common FPE_FLTUNK
si_code value to report that an fp exception caused a trap but we
cannot be certain which kind of fp exception it was.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
arch/x86/kernel/signal_compat.c
include/uapi/asm-generic/siginfo.h