Re: [PATCH bpf-next v5 12/16] bpf: Enable stack argument support for x86_64

bot+bpf-ci
2026-04-17T04:30:14Z

[-- Attachment #1: Type: text/plain, Size: 1140 bytes --]

commit 96653dbc686aeae7abf4f70b15720267e083674d
Author: Yonghong Song <yonghong.song@linux.dev>

bpf: Enable stack argument support for x86_64

Add stack argument support for x86_64.

This commit fixes a bug but lacks a Fixes: tag. The commit adds JIT
capability checks (bpf_jit_supports_stack_args) before allowing stack
arguments, which was missing when stack argument support was originally
introduced.

Commit 212295359353 added code in btf.c that unconditionally set
incoming_stack_arg_depth when nargs > MAX_BPF_FUNC_REG_ARGS without
checking if the JIT actually supports stack arguments. Similarly, commit
173008b815e6 extended this to kfuncs in verifier.c without JIT capability
checks. This could lead to programs with stack arguments being incorrectly
accepted on architectures that don't support them.

Suggested: Fixes: 21229535935384 ("bpf: Support stack arguments for bpf functions")

---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md

CI run summary: https://github.com/kernel-patches/bpf/actions/runs/24546989054