]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit8cb48fe169dd682b6c29a3b7ef18333e4f577890
tree66b586be917aeb42bf14fc6423f7412afbcfdb5d
parent32098ec7bcba492f28451d2701ca4e26f2cc1c6e
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