OSDN Git Service

bpf: add couple of test cases for div/mod by zero
authorDaniel Borkmann <daniel@iogearbox.net>
Sat, 20 Jan 2018 00:24:32 +0000 (01:24 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 20 Jan 2018 02:37:00 +0000 (18:37 -0800)
commit87c1793b1b7f34915e9e64cdb503efb281c769a7
treec9abdd574414dbb1e54c712a3d95340058ea6998
parentfcd1c9177195489c40198d2769649439dd88505b
bpf: add couple of test cases for div/mod by zero

Add couple of missing test cases for eBPF div/mod by zero to the
new test_verifier prog runtime feature. Also one for an empty prog
and only exit.

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