]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Provide correct siginfo_t.si_stime
authorPetr Malat <oss@malat.biz>
Fri, 12 Dec 2014 14:28:01 +0000 (15:28 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 19 Feb 2015 12:47:46 +0000 (13:47 +0100)
commitf1e1ff231a760bc39aad5f127c595f11f8c786d4
tree66b586be917aeb42bf14fc6423f7412afbcfdb5d
parent7a2c9095c462ddca77bc5cc1070aeaf946a193a7
MIPS: Provide correct siginfo_t.si_stime

Provide correct siginfo_t.si_stime on MIPS64

Bug description:
MIPS version of copy_siginfo() is not aware of alignment on platforms with
64-bit long integers, which leads to an incorrect si_stime passed to signal
handlers, because the last element (si_stime) of _sifields._sigchld is not
copied. If _MIPS_SZLONG is 64, then the _sifields starts at the offset of
4 * sizeof(int).

Patch description:
Use the generic copy_siginfo, which doesn't have this problem.

Signed-off-by: Petr Malat <oss@malat.biz>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8671/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/siginfo.h [deleted file]
arch/mips/include/uapi/asm/siginfo.h