aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2018-04-13 17:19:02 +0300
committerDavid S. Miller <davem@davemloft.net>2018-06-05 11:29:42 -0700
commit1c1ff29da6c86864e73b05d4301a2df1d161f2da (patch)
treebd4a878092d4bc73d6502a1506bb07c2c81e60ed /tools/testing/selftests
parentMerge branch 'adi-driver' (diff)
downloadlinux-dev-1c1ff29da6c86864e73b05d4301a2df1d161f2da.tar.xz
linux-dev-1c1ff29da6c86864e73b05d4301a2df1d161f2da.zip
sparc: fix compat siginfo ABI regression
Starting with commit v4.14-rc1~60^2^2~1, a SIGFPE signal sent via kill results to wrong values in si_pid and si_uid fields of compat siginfo_t. This happens due to FPE_FIXME being defined to 0 for sparc, and at the same time siginfo_layout() introduced by the same commit returns SIL_FAULT for SIGFPE if si_code == SI_USER and FPE_FIXME is defined to 0. Fix this regression by removing FPE_FIXME macro and changing all its users to assign FPE_FLTUNK to si_code instead of FPE_FIXME. Note that FPE_FLTUNK is a new macro introduced by commit 266da65e9156d93e1126e185259a4aae68188d0e. Tested with commit v4.16-11958-g16e205cf42da. This bug was found by strace test suite. Link: https://github.com/strace/strace/issues/21 Fixes: cc731525f26a ("signal: Remove kernel interal si_code magic") Thanks-to: Anatoly Pugachev <matorola@gmail.com> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests')
0 files changed, 0 insertions, 0 deletions