Re: [PATCH bpf-next v5 01/11] bpf: Factor check_global_ret_scalar_reg() out of the global return check
Eduard Zingerman <[email protected]>
| Newsgroups | org.kernel.vger.bpf |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2026-08-13 at 13:02 -0700, Yonghong Song wrote: > check_global_subprog_return_code() verifies that a global subprogram > returns void, an arena pointer, or register R0 holding a scalar value. > Later patches in this series add 16-byte aggregate return support, whose > second half is returned in R2 and needs the same validation. > > Factor the per-register check into check_global_ret_scalar_reg(env, regno) > so that it can be reused for R2. No functional change. > > Signed-off-by: Yonghong Song <[email protected]> > --- Acked-by: Eduard Zingerman <[email protected]> ...