]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: Refactor record_call_access() to extract per-arg logic
authorYonghong Song <yonghong.song@linux.dev>
Wed, 13 May 2026 04:50:30 +0000 (21:50 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 13 May 2026 16:27:30 +0000 (09:27 -0700)
commit84dd7df76efef9fecb6f3e0defe2ea3ad89cd3cb
treec23152cbd204a1d9e9463bd69b6ffe3f25cab548
parent0a0fdc64b68c28dab40f9deb0cffdf544e04b0ba
bpf: Refactor record_call_access() to extract per-arg logic

Extract the per-argument FP-derived pointer handling from
record_call_access() into a new record_arg_access() helper.

The existing loop body — checking arg_is_fp, querying stack access
bytes, and calling record_stack_access/record_imprecise — will be
reused for stack argument slots in the next patch. Factoring it out
now avoids duplicating the logic.

No functional change.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20260513045030.2388067-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/liveness.c