signal/x86/traps: Use force_sig instead of open coding it.
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 8 Aug 2017 15:55:19 +0000 (10:55 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 21 Sep 2018 12:47:01 +0000 (14:47 +0200)
The function "force_sig(sig, tsk)" is equivalent to "
force_sig_info(sig, SEND_SIG_PRIV, tsk)".  Using the siginfo variants can
be error prone so use the simpler old fashioned force_sig variant,
and with luck the force_sig_info variant can go away.

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
arch/x86/kernel/traps.c

index 2d44e63cb583f5b8e4a95534cb67047a04668843..1fa69bf27f4f8bf425c2dc3d0f0052a2ea0218e8 100644 (file)
@@ -581,7 +581,7 @@ do_general_protection(struct pt_regs *regs, long error_code)
 
        show_signal(tsk, SIGSEGV, "", desc, regs, error_code);
 
-       force_sig_info(SIGSEGV, SEND_SIG_PRIV, tsk);
+       force_sig(SIGSEGV, tsk);
 }
 NOKPROBE_SYMBOL(do_general_protection);