signal: fill in si_code in prepare_kill_siginfo()
authorOleg Nesterov <oleg@redhat.com>
Fri, 9 Feb 2024 13:06:20 +0000 (14:06 +0100)
committerChristian Brauner <brauner@kernel.org>
Sat, 10 Feb 2024 21:37:18 +0000 (22:37 +0100)
commitc044a9502649a66bf5c5e1a584cb82b2c538ae25
tree835b8025979dca1c4e12f642a20c280480abc0a7
parentf0ece18e994144b7daa025b68ead97de26a2df1f
signal: fill in si_code in prepare_kill_siginfo()

So that do_tkill() can use this helper too. This also simplifies
the next patch.

TODO: perhaps we can kill prepare_kill_siginfo() and change the
callers to use SEND_SIG_NOINFO,  but this needs some changes in
__send_signal_locked() and TP_STORE_SIGINFO().

Reviewed-by: Tycho Andersen <tandersen@netflix.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Link: https://lore.kernel.org/r/20240209130620.GA8039@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
kernel/signal.c