public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5.10 0/6] bpf: selftests: fix verifier selftests
@ 2021-08-04 17:09 Ovidiu Panait
  2021-08-04 17:09 ` [PATCH 5.10 1/6] selftests/bpf: Add a test for ptr_to_map_value on stack for helper access Ovidiu Panait
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Ovidiu Panait @ 2021-08-04 17:09 UTC (permalink / raw)
  To: stable; +Cc: bpf, daniel

This patchseries fixes all failing bpf verifier selftests:

root@intel-x86-64:~# ./test_verifier
#1149/p XDP pkt read, pkt_meta' <= pkt_data, bad access 2 OK
#1150/p XDP pkt read, pkt_data <= pkt_meta', good access OK
#1151/p XDP pkt read, pkt_data <= pkt_meta', bad access 1 OK
#1152/p XDP pkt read, pkt_data <= pkt_meta', bad access 2 OK
Summary: 1691 PASSED, 0 SKIPPED, 0 FAILED


Andrei Matei (2):
  selftest/bpf: Adjust expected verifier errors
  selftest/bpf: Verifier tests for var-off access

Daniel Borkmann (3):
  bpf, selftests: Adjust few selftest result_unpriv outcomes
  bpf: Update selftests to reflect new error states
  bpf, selftests: Adjust few selftest outcomes wrt unreachable code

Yonghong Song (1):
  selftests/bpf: Add a test for ptr_to_map_value on stack for helper
    access

 .../selftests/bpf/progs/bpf_iter_task.c       |   3 +-
 tools/testing/selftests/bpf/test_verifier.c   |   2 +-
 tools/testing/selftests/bpf/verifier/and.c    |   2 +
 .../selftests/bpf/verifier/basic_stack.c      |   2 +-
 tools/testing/selftests/bpf/verifier/bounds.c |  19 ++-
 .../selftests/bpf/verifier/bounds_deduction.c |  21 ++--
 .../bpf/verifier/bounds_mix_sign_unsign.c     |  13 --
 tools/testing/selftests/bpf/verifier/calls.c  |   4 +-
 .../testing/selftests/bpf/verifier/const_or.c |   4 +-
 .../selftests/bpf/verifier/dead_code.c        |   2 +
 .../bpf/verifier/helper_access_var_len.c      |  12 +-
 .../testing/selftests/bpf/verifier/int_ptr.c  |   6 +-
 tools/testing/selftests/bpf/verifier/jmp32.c  |  22 ++++
 tools/testing/selftests/bpf/verifier/jset.c   |  10 +-
 .../testing/selftests/bpf/verifier/map_ptr.c  |   4 +-
 .../selftests/bpf/verifier/raw_stack.c        |  10 +-
 .../selftests/bpf/verifier/stack_ptr.c        |  22 ++--
 tools/testing/selftests/bpf/verifier/unpriv.c |   9 +-
 .../selftests/bpf/verifier/value_ptr_arith.c  |  17 +--
 .../testing/selftests/bpf/verifier/var_off.c  | 115 ++++++++++++++++--
 20 files changed, 208 insertions(+), 91 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2021-08-06  8:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-04 17:09 [PATCH 5.10 0/6] bpf: selftests: fix verifier selftests Ovidiu Panait
2021-08-04 17:09 ` [PATCH 5.10 1/6] selftests/bpf: Add a test for ptr_to_map_value on stack for helper access Ovidiu Panait
2021-08-04 17:09 ` [PATCH 5.10 2/6] selftest/bpf: Adjust expected verifier errors Ovidiu Panait
2021-08-04 17:09 ` [PATCH 5.10 3/6] bpf, selftests: Adjust few selftest result_unpriv outcomes Ovidiu Panait
2021-08-04 17:09 ` [PATCH 5.10 4/6] bpf: Update selftests to reflect new error states Ovidiu Panait
2021-08-04 17:09 ` [PATCH 5.10 5/6] bpf, selftests: Adjust few selftest outcomes wrt unreachable code Ovidiu Panait
2021-08-04 17:09 ` [PATCH 5.10 6/6] selftest/bpf: Verifier tests for var-off access Ovidiu Panait
2021-08-06  8:04 ` [PATCH 5.10 0/6] bpf: selftests: fix verifier selftests Greg KH

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