summaryrefslogtreecommitdiffstats
path: root/kernel/signal.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2019-05-15 02:17:47 +0200
committerEric W. Biederman <ebiederm@xmission.com>2019-05-29 16:31:44 +0200
commitffafd23b2cf14093b559c3e33b427058ce8aa577 (patch)
tree2f962c9af91a66fc27eafc161cad256a408c580c /kernel/signal.c
parentsignal: Move the computation of force into send_signal and correct it. (diff)
downloadlinux-ffafd23b2cf14093b559c3e33b427058ce8aa577.tar.xz
linux-ffafd23b2cf14093b559c3e33b427058ce8aa577.zip
signal: Generate the siginfo in force_sig
In preparation for removing the special case in force_sig_info for only having a signal number generate an appropriate siginfo in force_sig the last caller of force_sig_info that does not pass a filled out siginfo. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'kernel/signal.c')
-rw-r--r--kernel/signal.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 0da35880261e..d5f9ed5da9c5 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -1605,7 +1605,15 @@ EXPORT_SYMBOL(send_sig);
void force_sig(int sig)
{
- force_sig_info(sig, SEND_SIG_PRIV, current);
+ struct kernel_siginfo info;
+
+ clear_siginfo(&info);
+ info.si_signo = sig;
+ info.si_errno = 0;
+ info.si_code = SI_KERNEL;
+ info.si_pid = 0;
+ info.si_uid = 0;
+ force_sig_info(info.si_signo, &info, current);
}
EXPORT_SYMBOL(force_sig);