Skip to content

bpf, verifier: Correct tail_call_reachable for bpf prog

Leon Hwang bpf 2 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied 2/2
  2. v11 patch 2 repliesSuperseded

Changes in v2 from the cover letter

* Address comment from Yonghong:
* Remove unnecessary tail call detection in x86 jit.

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf, verifier: Correct tail_call_reachable for bpf progkernel/bpf/verifier.c+3 -10 repliesApplied
2/2bpf, x64: Remove tail call detectionarch/x86/net/bpf_jit_comp.c+2 -90 repliesApplied

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEduard Zingerman
SeriesA-b
1/2
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 v2 bpf-next 0/2] bpf, verifier: Correct tail_call_reachable for bpf prog

It's confusing to inspect 'prog->aux->tail_call_reachable' with drgn[0], when bpf prog has tail call but 'tail_call_reachable' is false.

This patch corrects 'tail_call_reachable' when bpf prog has tail call.

Therefore, it's unnecessary to detect tail call in x86 jit. Let's remove it.

Changes:
v1 -> v2:
* Address comment from Yonghong:
* Remove unnecessary tail call detection in x86 jit.

---

Links:
[0] https://github.com/osandov/drgn

Leon Hwang (2):
bpf, verifier: Correct tail_call_reachable for bpf prog bpf, x64: Remove tail call detection

 arch/x86/net/bpf_jit_comp.c | 11 ++---------
 kernel/bpf/verifier.c       |  4 +++-
 2 files changed, 5 insertions(+), 10 deletions(-)

base-commit: 2c6987105026a4395935a3db665c54eb1bafe782

Signature · 1 line
2.44.0