bpf: add test cases for non-pointer sanitiation logic
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 1 Mar 2019 21:08:21 +0000 (22:08 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 4 Mar 2019 09:54:20 +0000 (10:54 +0100)
commit87dab7c3d54ce0f1ff6b54840bf7279d0944bc6a
treeb258cbbd469b3e94592a54c76e25ecc858dae678
parentea5bade929bf04355aeed58a3c9f5ef2c3afe2ac
bpf: add test cases for non-pointer sanitiation logic

Add two additional tests for further asserting the
BPF_ALU_NON_POINTER logic with cases that were missed
previously.

Cc: Marek Majkowski <marek@cloudflare.com>
Cc: Arthur Fabre <afabre@cloudflare.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/verifier/value_ptr_arith.c