summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2026-09-03 16:44:22 +0200
committerAlexei Starovoitov <ast@kernel.org>2026-09-03 09:44:51 -0700
commitd9ae3e4c7fb5bfaccc9ca295692d54130862f3b2 (patch)
treea06da3993bf507b25b450e7175acf60428e6902c /scripts/Makefile.thinlto
parent266aa4ad0b2e82397cd9045752c9bff03d98eddd (diff)
downloadlinux-d9ae3e4c7fb5bfaccc9ca295692d54130862f3b2.tar.gz
linux-d9ae3e4c7fb5bfaccc9ca295692d54130862f3b2.zip
selftests/bpf: Test direct tail calls from callbacks
tailcall_callback tests a tail call one static subprogram below a callback. That reaches the later stack-depth rejection, but it does not exercise the tail-call helper while the current frame is itself a callback. Add a callback that calls bpf_tail_call directly and expect the existing "cannot tail call within callback" diagnostic. On an affected kernel, the load instead reaches the "callback unexpected regs" verifier bug, so the expected message is absent and the test fails. The existing ordinary subprogram case remains a success control for legitimate tail calls. Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20260903144433.1716731-5-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions