signal: Remove the signal number and task parameters from force_sig_info
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 15 May 2019 15:11:09 +0000 (10:11 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 29 May 2019 14:31:44 +0000 (09:31 -0500)
commita89e9b8abf82725e4ac96100e07c8104dbe8a240
treea25fe1216ab1148b3991afc738c237716e1440c3
parent59c0e696a6c0fe6a8d718a43aecd72347db6a7f0
signal: Remove the signal number and task parameters from force_sig_info

force_sig_info always delivers to the current task and the signal
parameter always matches info.si_signo.  So remove those parameters to
make it a simpler less error prone interface, and to make it clear
that none of the callers are doing anything clever.

This guarantees that force_sig_info will not grow any new buggy
callers that attempt to call force_sig on a non-current task, or that
pass an signal number that does not match info.si_signo.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
include/linux/ptrace.h
include/linux/sched/signal.h
kernel/seccomp.c
kernel/signal.c