]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
parisc: Fix __ARCH_SI_PREAMBLE_SIZE
authorHelge Deller <deller@gmx.de>
Sun, 10 Jan 2016 08:30:42 +0000 (09:30 +0100)
committerHelge Deller <deller@gmx.de>
Tue, 12 Jan 2016 21:04:09 +0000 (22:04 +0100)
On a 64bit kernel build the compiler aligns the _sifields union in the
struct siginfo_t on a 64bit address. The __ARCH_SI_PREAMBLE_SIZE define
compensates for this alignment and thus fixes the wait testcase of the
strace package.

The symptoms of a wrong __ARCH_SI_PREAMBLE_SIZE value is that
_sigchld.si_stime variable is missed to be copied and thus after a
copy_siginfo() will have uninitialized values.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org
arch/parisc/include/uapi/asm/siginfo.h

index d7034728f3778cdfef8e3b6eedcd049005d40c17..1c75565d984b489d2798a9ba38cad0e9f26a2f73 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _PARISC_SIGINFO_H
 #define _PARISC_SIGINFO_H
 
+#if defined(__LP64__)
+#define __ARCH_SI_PREAMBLE_SIZE   (4 * sizeof(int))
+#endif
+
 #include <asm-generic/siginfo.h>
 
 #undef NSIGTRAP