Eric W. Biederman 4a63c1ffd3 signal: Properly deliver SIGSEGV from x86 uprobes
For userspace to tell the difference between an random signal
and an exception, the exception must include siginfo information.

Using SEND_SIG_FORCED for SIGSEGV 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(SIGSEGV, SEND_SIG_FORCE, current)
with force_sig(SIG_SEGV, current) which gets this right and is shorter
and easier to type.

Fixes: 791eca10107f ("uretprobes/x86: Hijack return address")
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2018-09-11 21:18:53 +02:00
..
2018-07-20 12:29:24 +10:00
2017-08-31 21:34:48 +02:00
2017-12-12 11:32:24 +01:00
2018-07-20 01:11:48 +02:00
2018-08-24 13:10:38 -07:00
2018-03-20 10:01:57 +01:00
2018-08-16 09:21:54 -07:00
2017-12-23 21:13:01 +01:00
2018-06-22 21:20:35 +02:00
2018-07-30 19:33:35 +02:00
2017-09-25 20:51:58 +02:00