]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: Add verifier support for bpf_timer argument in kfuncs
authorMykyta Yatsenko <yatsenko@meta.com>
Sun, 1 Feb 2026 02:53:56 +0000 (18:53 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 4 Feb 2026 00:58:46 +0000 (16:58 -0800)
commit19bd300e22c2be7df838fc4ea41b4e20ccd5c20f
tree6a9d156d8760362a75fba67dfd2be747e96ddda1
parent1bfbc267ec915e58c3723a2237bf067f0c4dffa8
bpf: Add verifier support for bpf_timer argument in kfuncs

Extend the verifier to recognize struct bpf_timer as a valid kfunc
argument type. Previously, bpf_timer was only supported in BPF helpers.

This prepares for adding timer-related kfuncs in subsequent patches.

Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260201025403.66625-3-alexei.starovoitov@gmail.com
kernel/bpf/verifier.c