Skip to content

Improve error handling of verifier tests

Florian Lehner bpf netdev 3 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesApplied 2/2
  2. v22 patches 1 replySuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Add explicit fallthrough

Patches in v3 All 2 applied

#Subject and filesSizeRepliesApplied
1/2selftests/bpf: Print reason when a tester could not run a programtools/testing/selftests/bpf/test_verifier.c+3 -10 repliesApplied
2/2selftests/bpf: Avoid errno clobberingtools/testing/selftests/bpf/test_verifier.c+22 -50 repliesApplied

Reviews trailers per patch

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

PatchAndrii Nakryiko
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 v3 thread

Cover letter [PATCH 0/2 v3] Improve error handling of verifier tests

These patches improve the error handling for verifier tests. With "Test the 32bit narrow read" Krzesimir Nowak provided these patches first, but they were never merged.
The improved error handling helps to implement and test BPF program types that are not supported yet.

v3:
- Add explicit fallthrough

v2:
- Add unpriv check in error validation

Florian Lehner (2):
selftests/bpf: Print reason when a tester could not run a program selftests/bpf: Avoid errno clobbering

 tools/testing/selftests/bpf/test_verifier.c | 31 +++++++++++++++++----
 1 file changed, 25 insertions(+), 6 deletions(-)
Signature · 1 line
2.28.0