diff options
author | Oleg Nesterov <oleg@redhat.com> | 2023-11-20 16:16:49 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-10 17:21:32 -0800 |
commit | b454ec29225cda9ae85ed0a154f4228f1922c872 (patch) | |
tree | 52f79ef72a364a591ecbc3bf997b07b3754948d1 /scripts/Makefile.defconf | |
parent | 48aa137e5a9491b491ae2bea0e0a603b330e708f (diff) |
kernel/signal.c: simplify force_sig_info_to_task(), kill recalc_sigpending_and_wake()
The purpose of recalc_sigpending_and_wake() is not clear, it looks
"obviously unneeded" because we are going to send the signal which can't
be blocked or ignored.
Add the comment to explain why we can't rely on send_signal_locked() and
make this logic more simple/explicit. recalc_sigpending_and_wake() has no
other users, it can die.
In fact I think we don't even need signal_wake_up(), the target task must
be either current or a TASK_TRACED child, otherwise the usage of siglock
is not safe. But this needs another change.
Link: https://lkml.kernel.org/r/20231120151649.GA15995@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Eric Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/Makefile.defconf')
0 files changed, 0 insertions, 0 deletions