Skip to content

Fix tail call counting with bpf2bpf

Jakub Sitnicki bpf netdev 2 versions – Applied

Status from this message: This series was applied to bpf/bpf.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesApplied 2/2
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- switch from __attibute__((always_unused)) to unused to avoid CI failures.

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf, x86: Fix tail call count offset calculation on bpf2bpf callarch/x86/net/bpf_jit_comp.c+2 -10 repliesApplied
2/2selftests/bpf: Test tail call counting with bpf2bpf and data on stacktools/testing/selftests/bpf/prog_tests/tailcalls.c tools/testing/selftests/bpf/progs/tailcall_bpf2bpf6.c+97 -00 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMaciej Fijalkowski
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH bpf-next v2 0/2] Fix tail call counting with bpf2bpf

Please see patch 1 for the explanation of the problem. Patch 2 adds a test so that we don't regress.

v1 -> v2:
- switch from __attibute__((always_unused)) to unused to avoid CI failures.

Jakub Sitnicki (2):
bpf, x86: Fix tail call count offset calculation on bpf2bpf call selftests/bpf: Test tail call counting with bpf2bpf and data on stack

 arch/x86/net/bpf_jit_comp.c                   |  3 +-
 .../selftests/bpf/prog_tests/tailcalls.c      | 55 +++++++++++++++++++
 .../selftests/bpf/progs/tailcall_bpf2bpf6.c   | 42 ++++++++++++++
 3 files changed, 99 insertions(+), 1 deletion(-)
 create mode 100644 tools/testing/selftests/bpf/progs/tailcall_bpf2bpf6.c
Signature · 1 line
2.35.3