summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorWeiming Shi <bestswngs@gmail.com>2026-10-25 18:52:50 -0700
committerAlexei Starovoitov <ast@kernel.org>2026-10-26 04:16:05 +0000
commit195a3519ff27bff5575e05b5086e38ee92715776 (patch)
tree06cb9a01ff58c1f51231dabaa6c58cd81af38c88 /include/linux/timerqueue.h
parent90aedf8854c05713c02b381c41c59081b5cedbcc (diff)
selftests/bpf: Test missing and callback stack arguments
Exercise the path where a static seven-argument subprogram has unreliable BTF and is called through a bridge with only one initialized outgoing stack argument. The callee expects two stack arguments, but the unreliable-BTF path skips check_outgoing_stack_args(). Expect the verifier to reject the second r11 load at offset 16. Also exercise synchronous and asynchronous callbacks whose BTF prototypes declare a sixth argument. Initialize the outgoing slot at each helper call site so the programs reach the callback-specific rejection. Keep a valid six-argument direct call in each program so bpf_fixup_call_args() records the stack-argument requirement and cannot become an unrelated rejection fallback. The fix also rejects the existing uninitialized-stack-argument test before the later unreadable-register check. Update that test's expected diagnostic accordingly. Signed-off-by: Weiming Shi <bestswngs@gmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/20261026015250.1674676-2-bestswngs@gmail.com
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions