netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2 v3] Improve error handling of verifier tests
@ 2020-12-04 18:18 Florian Lehner
  2020-12-04 18:18 ` [PATCH 1/2] selftests/bpf: Print reason when a tester could not run a program Florian Lehner
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Florian Lehner @ 2020-12-04 18:18 UTC (permalink / raw)
  To: bpf; +Cc: netdev, ast, daniel, andrii, john.fastabend, Florian Lehner

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(-)

-- 
2.28.0


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH 0/2 v2] Improve error handling of verifier tests
@ 2020-12-02 19:45 Florian Lehner
  2020-12-02 19:45 ` [PATCH 1/2] selftests/bpf: Print reason when a tester could not run a program Florian Lehner
  0 siblings, 1 reply; 5+ messages in thread
From: Florian Lehner @ 2020-12-02 19:45 UTC (permalink / raw)
  To: bpf
  Cc: netdev, ast, daniel, andrii, john.fastabend, Florian Lehner,
	Krzesimir Nowak

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.

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 | 30 ++++++++++++++++-----
 1 file changed, 24 insertions(+), 6 deletions(-)

--
2.28.0


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

end of thread, other threads:[~2020-12-04 20:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-04 18:18 [PATCH 0/2 v3] Improve error handling of verifier tests Florian Lehner
2020-12-04 18:18 ` [PATCH 1/2] selftests/bpf: Print reason when a tester could not run a program Florian Lehner
2020-12-04 18:18 ` [PATCH 2/2] selftests/bpf: Avoid errno clobbering Florian Lehner
2020-12-04 20:30 ` [PATCH 0/2 v3] Improve error handling of verifier tests patchwork-bot+netdevbpf
  -- strict thread matches above, loose matches on Subject: below --
2020-12-02 19:45 [PATCH 0/2 v2] " Florian Lehner
2020-12-02 19:45 ` [PATCH 1/2] selftests/bpf: Print reason when a tester could not run a program Florian Lehner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).