Re: [PATCH bpf-next v6 04/17] bpf: Prepare verifier logs for upcoming kfunc stack arguments

Yonghong Song
2026-04-21T16:37:23Z

On 4/21/26 8:46 AM, Alexei Starovoitov wrote:
> On Tue Apr 21, 2026 at 8:41 AM PDT, Yonghong Song wrote:
>>> it does:
>>>
>>> +static u32 make_argno(u32 arg_idx)
>>> +{
>>> + if (arg_idx < MAX_BPF_FUNC_REG_ARGS)
>>> + return BPF_REG_1 + arg_idx;
>>>
>>> so for argno == 0 it returns 1 and that's my objection.
>>> Make argno starting at 1.
>> Okay. Will do.
> To move things forward please resend the first 6 patches only.
> So we can make sure that they're in a good shape and land them first.

Good point. Will do.