WSL2-Linux-Kernel/tools/testing/selftests/bpf
Daniel Borkmann 0eb6984f70 bpf, test_verifier: fix a test case error result on unprivileged
Running ./test_verifier as unprivileged lets 1 out of 98 tests fail:

  [...]
  #71 unpriv: check that printk is disallowed FAIL
  Unexpected error message!
  0: (7a) *(u64 *)(r10 -8) = 0
  1: (bf) r1 = r10
  2: (07) r1 += -8
  3: (b7) r2 = 8
  4: (bf) r3 = r1
  5: (85) call bpf_trace_printk#6
  unknown func bpf_trace_printk#6
  [...]

The test case is correct, just that the error outcome changed with
ebb676daa1 ("bpf: Print function name in addition to function id").
Same as with e00c7b216f ("bpf: fix multiple issues in selftest suite
and samples") issue 2), so just fix up the function name.

Fixes: ebb676daa1 ("bpf: Print function name in addition to function id")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-17 10:51:31 -05:00
..
.gitignore bpf: Preserve const register type on const OR alu ops 2016-12-05 13:40:05 -05:00
Makefile bpf: Add tests for the LRU bpf_htab 2016-11-15 11:50:43 -05:00
bpf_sys.h bpf: add initial suite for selftests 2016-10-18 11:35:55 -04:00
bpf_util.h bpf: fix multiple issues in selftest suite and samples 2016-11-27 20:38:47 -05:00
config bpf: add initial suite for selftests 2016-10-18 11:35:55 -04:00
test_kmod.sh bpf: add initial suite for selftests 2016-10-18 11:35:55 -04:00
test_lru_map.c bpf: fix multiple issues in selftest suite and samples 2016-11-27 20:38:47 -05:00
test_maps.c bpf: fix multiple issues in selftest suite and samples 2016-11-27 20:38:47 -05:00
test_verifier.c bpf, test_verifier: fix a test case error result on unprivileged 2016-12-17 10:51:31 -05:00