Puranjay Mohan 6280cf718d bpf: Implement bpf_send_signal_task() kfunc
Implement bpf_send_signal_task kfunc that is similar to
bpf_send_signal_thread and bpf_send_signal helpers  but can be used to
send signals to other threads and processes. It also supports sending a
cookie with the signal similar to sigqueue().

If the receiving process establishes a handler for the signal using the
SA_SIGINFO flag to sigaction(), then it can obtain this cookie via the
si_value field of the siginfo_t structure passed as the second argument
to the handler.

Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241016084136.10305-2-puranjay@kernel.org
2024-10-21 15:02:49 -07:00
..
2024-06-18 17:19:46 +02:00
2024-08-30 08:55:26 -07:00
2024-08-30 08:55:26 -07:00
2024-10-03 17:47:35 -07:00
2024-07-09 17:01:46 +02:00
2023-12-06 17:17:20 -08:00
2024-10-14 18:33:04 -07:00
2022-05-10 11:20:45 -07:00
2024-10-14 18:33:04 -07:00
2024-08-30 08:55:26 -07:00
2024-08-30 08:57:47 -07:00
2023-10-23 15:01:53 -07:00