bpf: Add struct_ops context information to struct bpf_prog_aux
authorJuntong Deng <juntong.deng@outlook.com>
Wed, 19 Mar 2025 21:53:48 +0000 (14:53 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 20 Mar 2025 23:54:41 +0000 (16:54 -0700)
commit51d65049cd7e22a4d9ab8f2acb018a147f7f5146
tree0e1cc5b6880aa6fdfdf49c482999c2a444fd428d
parente16e64f9e076635df554f46e3ecdfbdd2f3867b2
bpf: Add struct_ops context information to struct bpf_prog_aux

This patch adds struct_ops context information to struct bpf_prog_aux.

This context information will be used in the kfunc filter.

Currently the added context information includes struct_ops member
offset and a pointer to struct bpf_struct_ops.

Signed-off-by: Juntong Deng <juntong.deng@outlook.com>
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20250319215358.2287371-2-ameryhung@gmail.com
include/linux/bpf.h
kernel/bpf/verifier.c