android_kernel_samsung_a7y1.../kernel/events
Eric W. Biederman e6fef35dd8 signal: Properly deliver SIGILL from uprobes
[ Upstream commit 55a3235fc71bf34303e34a95eeee235b2d2a35dd ]

For userspace to tell the difference between a random signal and an
exception, the exception must include siginfo information.

Using SEND_SIG_FORCED for SIGILL is thus wrong, and it will result
in userspace seeing si_code == SI_USER (like a random signal) instead
of si_code == SI_KERNEL or a more specific si_code as all exceptions
deliver.

Therefore replace force_sig_info(SIGILL, SEND_SIG_FORCE, current)
with force_sig(SIG_ILL, current) which gets this right and is
shorter and easier to type.

Fixes: 014940bad8e4 ("uprobes/x86: Send SIGILL if arch_uprobe_post_xol() fails")
Fixes: 0b5256c7f173 ("uprobes: Send SIGILL if handle_trampoline() fails")
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 12:27:23 +02:00
..
callchain.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
core.c perf/core: Fix creating kernel counters for PMUs that override event->cpu 2020-04-06 20:39:21 +02:00
hw_breakpoint.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
internal.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ring_buffer.c perf/ring_buffer: Add ordering to rb->nest increment 2020-04-06 19:03:54 +02:00
uprobes.c signal: Properly deliver SIGILL from uprobes 2020-04-07 12:27:23 +02:00