[PATCH bpf-next v3 0/3] Fixes for tailcall with subprog and callback

From: Pu Lehui

Date: Thu Jul 16 2026 - 08:00:16 EST


From: Pu Lehui <pulehui@xxxxxxxxxx>

This series fix two issues related to tailcall:

patch 1: Fix tail_call_reachable state leak across call branches.
patch 2: Reject callback subprogs invoke tailcall.
patch 3: testcases for patch 1 and 2.

v3:
- Fix tail_call_reachable state leak across call branches. (Sashiko)
- Add testcase for the above issue.

v2:
https://lore.kernel.org/bpf/20260714024459.420075-1-pulehui@xxxxxxxxxxxxxxx
- Remove redantant testcase.
- Add ACK tag by Eduard.

v1:
https://lore.kernel.org/bpf/20260711104727.4023420-1-pulehui@xxxxxxxxxxxxxxx

Pu Lehui (3):
bpf: Sync tail_call_reachable with callee state on entry
bpf: Reject callback subprogs invoke tailcall
selftests/bpf: Add testcases for callback with tailcall

kernel/bpf/verifier.c | 12 +--
.../selftests/bpf/prog_tests/tailcalls.c | 7 ++
.../selftests/bpf/progs/tailcall_callback.c | 81 +++++++++++++++++++
3 files changed, 92 insertions(+), 8 deletions(-)
create mode 100644 tools/testing/selftests/bpf/progs/tailcall_callback.c

--
2.34.1