[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-mips-cvs
Subject:    MIPS: Provide correct siginfo_t.si_stime
From:       linux-mips () linux-mips ! org
Date:       2015-03-11 11:49:05
Message-ID: S27013353AbbCKLtHpqh2i/20150311114907Z+2839 () eddie ! linux-mips ! org
[Download RAW message or body]

Author: Petr Malat <oss@malat.biz> Fri Dec 12 15:28:01 2014 +0100
Comitter: Ralf Baechle <ralf@linux-mips.org> Tue Feb 17 16:55:16 2015 +0100
Commit: 93385222e21079cb470cbe356c192a49a935c83d
Gitweb: http://git.linux-mips.org/g/ralf/linux/93385222e210
Branch: linux-3.18-stable

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>
(cherry picked from commit cd9380ee6c2a518b52b0f6810619ebdc1aadac7b)

---

 arch/mips/include/asm/siginfo.h      |   29 -----------------------------
 arch/mips/include/uapi/asm/siginfo.h |   11 +++--------
 2 files changed, 3 insertions(+), 37 deletions(-)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic