Re: [PATCH bpf v4 1/4] bpf: simplify sanitize_err() signature

From: Shung-Hsi Yu

Date: Thu Jul 30 2026 - 04:23:01 EST


On Wed, Jul 29, 2026 at 03:18:27PM +0000, Yiyang Chen via B4 Relay wrote:
> From: Eduard Zingerman <eddyz87@xxxxxxxxx>
>
> The sanitize_err() function is called when:
> - ptr += scalar
> - scalar += ptr
> - scalar += scalar
> ALU operations are processed.
>
> This commit drops offset and pointer registers parameters from its
> signature to simplify the follow-up changes for 'scalar += ptr' case.
> regs[src].type is safe to access, as it is not mutated by the callers.
>
> Signed-off-by: Eduard Zingerman <eddyz87@xxxxxxxxx>
> Signed-off-by: Yiyang Chen <chenyy23@xxxxxxxxxxxxxxxxxxxxx>

Acked-by: Shung-Hsi Yu <shung-hsi.yu@xxxxxxxx>