bpf: wq: add bpf_wq_set_callback_impl
authorBenjamin Tissoires <bentiss@kernel.org>
Sat, 20 Apr 2024 09:09:13 +0000 (11:09 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 24 Apr 2024 02:46:57 +0000 (19:46 -0700)
commit81f1d7a583fa1fa14f0c4e6140d34b5e3d08d227
tree17f05f9ee42a2660f9ad0a48a2179800634fc5e9
parente3d9eac99afd94980475833479332fefd74c5c2b
bpf: wq: add bpf_wq_set_callback_impl

To support sleepable async callbacks, we need to tell push_async_cb()
whether the cb is sleepable or not.

The verifier now detects that we are in bpf_wq_set_callback_impl and
can allow a sleepable callback to happen.

Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Link: https://lore.kernel.org/r/20240420-bpf_wq-v2-13-6c986a5a741f@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf_verifier.h
kernel/bpf/helpers.c
kernel/bpf/verifier.c