]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
selftests/bpf: make test_verifier run most programs
authorAlexei Starovoitov <ast@kernel.org>
Thu, 18 Jan 2018 00:52:03 +0000 (16:52 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 18 Jan 2018 21:38:22 +0000 (22:38 +0100)
commit111e6b45315c8d13658f23885b30eb9df3ea2914
tree7ca9af66f490c3d959c3c6e9042bf86b1c513563
parent61f3c964dfd287b05d7ac6660a4f4ddfef84786c
selftests/bpf: make test_verifier run most programs

to improve test coverage make test_verifier run all successfully loaded
programs on 64-byte zero initialized data.
For clsbpf and xdp it means empty 64-byte packet.
For lwt and socket_filters it's 64-byte packet where skb->data
points after L2.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_verifier.c