Re: [PATCH bpf-next v3 00/18] Generate bpf_func_proto for kfunc
"Kumar Kartikeya Dwivedi" <[email protected]> Mon, 03 Aug 2026 00:39:13 +0200
| Newsgroups | org.kernel.vger.bpf |
|---|---|
| Message-ID | <[email protected]> |
On Sat Aug 1, 2026 at 9:46 AM CEST, Amery Hung wrote: > Hi, > > This is the second of three patch sets to unify kfunc and helper > argument verification. It: > > 1) further aligns the kfunc and helper argument checks, > 2) makes kfunc argument type classification depend solely on BTF, and > 3) generates a bpf_func_proto for each kfunc. > > With classification now a pure function of the kfunc's BTF, it is computed > once at add-call time and cached in the generated bpf_func_proto, rather > than re-derived on every verification of the call. Along the way it also > fixes a few issues. > > The next patch set will align the argument register compatibility checks > and route helper and kfunc argument verification through a single shared > function. > I adjusted the commit log for patch 15 per your correction. If there are any other changes, let's do them as follow ups or in the 3rd tranche of changes. Applied, thanks. > [...]