diff options
| author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-07-15 11:00:49 +0200 |
|---|---|---|
| committer | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-07-15 11:00:49 +0200 |
| commit | c314bcaa9d5dc34b0c643eac85f675fb8c8bfbaa (patch) | |
| tree | d9a3c37a7724f049ca4815d1fc993293c510fc26 /tools/include | |
| parent | f68df52fbad0928f4686f734827e5fb6b20386ad (diff) | |
| parent | bf9c1b911f4db6fa5fe088c32f1de7ee1650eee9 (diff) | |
Merge branch 'unify-helper-and-kfunc-call_arg_meta'
Amery Hung says:
====================
Unify helper and kfunc call_arg_meta
Hi all,
I am working toward unifying helper and kfunc handling in the verifier.
Historically, kfunc verification was mostly done separately from helper.
This causes code/logic duplication and may introduce subtle bugs as the
same checks are implemnented differently.
To address this, I plan to unify function call verification, which will
operate on a common function call descriptor bpf_func_proto.
As the first step, this patchset merges bpf_{kfunc_}call_arg_meta of
kfunc and helepr. The structure is used as a scratch pad for different
helper/kfunc verification mechanisms. The previous object tracking
refactor patchset has unified some of them. This patch handles the rest
and finally merge the two different structures.
The next step will be generating bpf_func_proto for kfunc before the
main verification loop and align kfunc and helper argument types.
Then hopefully helper and kfunc can go throguh the same call verification
path.
Changelog
v1 -> v2
- Fix patch 2: ARG_PTR_TO_MAP_VALUE | MEM_UNINIT should also accept raw
mode
- Add patch 3: making check_func_arg() less verbose
- Add patch 5: a selftest testing a preexisting OOB access bug when
0 is passed to a kfunc's {rdwr,rdonly}_buf_size argument
- Add patch 6: dropping pkt_access from bpf_call_arg_meta
====================
Link: https://patch.msgid.link/20260715064047.1793790-1-ameryhung@gmail.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'tools/include')
0 files changed, 0 insertions, 0 deletions
