aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2018-04-15 10:53:50 -0400
committerEric W. Biederman <ebiederm@xmission.com>2018-04-17 18:41:50 -0400
commit5278c0e8146a77249372295b9cf5b9fcb24492a8 (patch)
tree02609d23e8c5a77bea5d4d268019190e90a28496 /arch/alpha
parent60cc43fc888428bb2f18f08997432d426a243338 (diff)
signal/alpha: Document a conflict with SI_USER for SIGFPE
Setting si_code to 0 is the same as setting si_code to SI_USER. This is the same si_code as SI_USER. Posix and common sense requires that SI_USER not be a signal specific si_code. As such this use of 0 for the si_code is a pretty horribly broken ABI. Cc: Helge Deller <deller@gmx.de> Cc: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Matt Turner <mattst88@gmail.com> Cc: linux-alpha@vger.kernel.org History Tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git Ref: 0a635c7a84cf ("Fill in siginfo_t.") Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'arch/alpha')
-rw-r--r--arch/alpha/kernel/osf_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c
index 89faa6f4de47..2e02aef5a334 100644
--- a/arch/alpha/kernel/osf_sys.c
+++ b/arch/alpha/kernel/osf_sys.c
@@ -872,7 +872,7 @@ SYSCALL_DEFINE5(osf_setsysinfo, unsigned long, op, void __user *, buffer,
872 fex = (exc >> IEEE_STATUS_TO_EXCSUM_SHIFT) & swcr; 872 fex = (exc >> IEEE_STATUS_TO_EXCSUM_SHIFT) & swcr;
873 if (fex) { 873 if (fex) {
874 siginfo_t info; 874 siginfo_t info;
875 int si_code = 0; 875 int si_code = FPE_FIXME;
876 876
877 if (fex & IEEE_TRAP_ENABLE_DNO) si_code = FPE_FLTUND; 877 if (fex & IEEE_TRAP_ENABLE_DNO) si_code = FPE_FLTUND;
878 if (fex & IEEE_TRAP_ENABLE_INE) si_code = FPE_FLTRES; 878 if (fex & IEEE_TRAP_ENABLE_INE) si_code = FPE_FLTRES;