Thread (11 messages) 11 messages, 7 authors, 2026-02-23

Re: Re: Re: [PATCH bpf-next v2 0/2] bpf: Add multi-level pointer parameter

From: Slava Imameev <hidden>
Date: 2026-02-23 09:46:11
Also in: bpf, linux-kselftest, lkml

On Wed, 18 Feb 2026 19:15:47 Alexei Starovoitov
[off-list ref] wrote
so I suggest treating 'void **' as a scalar as Eduard suggested.
This particular sb_eat_lsm_opts() hook
doesn't have a useful type behind it anyway.
I'm less certain about 'char **'. If we make it scalar too
it will be harder to make it a pointer to nul terminated string later.
So I would do 'void **' -> scalar for now only.
I changed to scalar in v3, keeping broader scope for pointer types.

We encountered double pointers of various types that required
workarounds, such as:

int __posix_acl_chmod(struct posix_acl **acl, gfp_t gfp, umode_t mode)

Adding support for void** alone doesn't address the broader issue
with other double pointer types.

When annotated array support (including char**) is added in the
future, it should remain compatible with the scalar approach for
legacy (unannotated) parameters. Unannotated parameters will
continue using scalar handling.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help