diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2019-05-23 10:17:27 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2019-05-27 09:36:28 -0500 |
commit | 3cf5d076fb4d48979f382bc9452765bf8b79e740 (patch) | |
tree | 935f7af65a7a7f1ba514f1da5b207e2dc298eaca /kernel/events | |
parent | cb44c9a0ab21a9ae4dfcabac1ed8e38aa872d1af (diff) | |
download | linux-3cf5d076fb4d48979f382bc9452765bf8b79e740.tar.gz linux-3cf5d076fb4d48979f382bc9452765bf8b79e740.tar.bz2 linux-3cf5d076fb4d48979f382bc9452765bf8b79e740.zip |
signal: Remove task parameter from force_sig
All of the remaining callers pass current into force_sig so
remove the task parameter to make this obvious and to make
misuse more difficult in the future.
This also makes it clear force_sig passes current into force_sig_info.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'kernel/events')
-rw-r--r-- | kernel/events/uprobes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c index 78f61bfc6b79..359122185cfb 100644 --- a/kernel/events/uprobes.c +++ b/kernel/events/uprobes.c @@ -2112,7 +2112,7 @@ static void handle_trampoline(struct pt_regs *regs) sigill: uprobe_warn(current, "handle uretprobe, sending SIGILL."); - force_sig(SIGILL, current); + force_sig(SIGILL); } @@ -2228,7 +2228,7 @@ static void handle_singlestep(struct uprobe_task *utask, struct pt_regs *regs) if (unlikely(err)) { uprobe_warn(current, "execute the probed insn, sending SIGILL."); - force_sig(SIGILL, current); + force_sig(SIGILL); } } |