bpf: add is_async_callback_calling_insn() helper
authorBenjamin Tissoires <bentiss@kernel.org>
Wed, 21 Feb 2024 16:25:19 +0000 (17:25 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 23 Feb 2024 01:48:53 +0000 (17:48 -0800)
commit2ab256e93249f5ac1da665861aa0f03fb4208d9c
tree8eabe7f48f894fd2af17dadebbe9eacad98ebfa5
parentdfe6625df48ec54c6dc9b86d361f26962d09de88
bpf: add is_async_callback_calling_insn() helper

Currently we have a special case for BPF_FUNC_timer_set_callback,
let's introduce a helper we can extend for the kfunc that will come in
a later patch

Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Link: https://lore.kernel.org/r/20240221-hid-bpf-sleepable-v3-3-1fb378ca6301@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c