mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH bpf-next v3 0/3] Fixes for tailcall with subprog and callback
@ 2026-07-16 12:01 Pu Lehui
  2026-07-16 12:01 ` [PATCH bpf-next v3 1/3] bpf: Sync tail_call_reachable with callee state on entry Pu Lehui
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Pu Lehui @ 2026-07-16 12:01 UTC (permalink / raw)
  To: bpf, linux-kernel, Eduard Zingerman, Björn Töpel,
	Daniel Borkmann
  Cc: Alexei Starovoitov, Andrii Nakryiko, Kumar Kartikeya Dwivedi,
	Yonghong Song, Martin KaFai Lau, Song Liu, Jiri Olsa,
	Emil Tsalapatis, Pu Lehui, Pu Lehui

From: Pu Lehui <pulehui@huawei.com>

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@huaweicloud.com
- Remove redantant testcase.
- Add ACK tag by Eduard.

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

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-07-17  0:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-16 12:01 [PATCH bpf-next v3 0/3] Fixes for tailcall with subprog and callback Pu Lehui
2026-07-16 12:01 ` [PATCH bpf-next v3 1/3] bpf: Sync tail_call_reachable with callee state on entry Pu Lehui
2026-07-16 12:01 ` [PATCH bpf-next v3 2/3] bpf: Reject callback subprogs invoke tailcall Pu Lehui
2026-07-16 12:01 ` [PATCH bpf-next v3 3/3] selftests/bpf: Add testcases for callback with tailcall Pu Lehui
2026-07-17  0:50 ` [PATCH bpf-next v3 0/3] Fixes for tailcall with subprog and callback patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome