]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Allow verifier to fixup kernel module kfuncs
authorAmery Hung <ameryhung@gmail.com>
Wed, 3 Dec 2025 23:37:43 +0000 (15:37 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Sat, 6 Dec 2025 00:17:57 +0000 (16:17 -0800)
commit1588c81b9f215170bd596984691eda2f05a84a1f
tree41f7f3bb404141b480941b02f5c4a057f48bfebb
parent81f88f6ab674973d361b6d176aa4d3ebd32253ab
bpf: Allow verifier to fixup kernel module kfuncs

Allow verifier to fixup kfuncs in kernel module to support kfuncs with
__prog arguments. Currently, special kfuncs and kfuncs with __prog
arguments are kernel kfuncs. Allowing kernel module kfuncs should not
affect existing kfunc fixup as kernel module kfuncs have BTF IDs greater
than kernel kfuncs' BTF IDs.

Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20251203233748.668365-2-ameryhung@gmail.com
kernel/bpf/verifier.c