diff options
author | Dmitry Safonov <0x7f454c46@gmail.com> | 2016-10-19 23:53:08 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-10-20 13:05:15 +0200 |
commit | ed1e7db33c3354e4f8b594738c5e793690213b43 (patch) | |
tree | 9edadd4ce7f425bb89bb1715cb887289ff75ebaf /arch/frv | |
parent | x86/platform/UV: Fix support for EFI_OLD_MEMMAP after BIOS callback updates (diff) | |
download | linux-ed1e7db33c3354e4f8b594738c5e793690213b43.tar.xz linux-ed1e7db33c3354e4f8b594738c5e793690213b43.zip |
x86/signal: Remove bogus user_64bit_mode() check from sigaction_compat_abi()
The recent introduction of SA_X32/IA32 sa_flags added a check for
user_64bit_mode() into sigaction_compat_abi(). user_64bit_mode() is true
for native 64-bit processes and x32 processes.
Due to that the function returns w/o setting the SA_X32_ABI flag for X32
processes. In consequence the kernel attempts to deliver the signal to the
X32 process in native 64-bit mode causing the process to segfault.
Remove the check, so the actual check for X32 mode which sets the ABI flag
can be reached. There is no side effect for native 64-bit mode.
[ tglx: Rewrote changelog ]
Fixes: 6846351052e6 ("x86/signal: Add SA_{X32,IA32}_ABI sa_flags")
Reported-by: Mikulas Patocka <mpatocka@redhat.com>
Tested-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com>
Cc: Dmitry Safonov <dsafonov@virtuozzo.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: linux-mm@kvack.org
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Pavel Emelyanov <xemul@virtuozzo.com>
Link: http://lkml.kernel.org/r/CAJwJo6Z8ZWPqNfT6t-i8GW1MKxQrKDUagQqnZ%2B0%2B697%3DMyVeGg@mail.gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/frv')
0 files changed, 0 insertions, 0 deletions