selftests/bpf: add test for bogus operations on pointers
authorEdward Cree <ecree@solarflare.com>
Mon, 7 Aug 2017 14:28:45 +0000 (15:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Aug 2017 00:51:35 +0000 (17:51 -0700)
commitc2c3e11712e23d430a49e1247a8ec211740c2254
tree81f9c4cd0679b9fed83cbee35a30fb2f1aec9040
parent715dddb5e640bd24ce46dc7885c9657038ad1e23
selftests/bpf: add test for bogus operations on pointers

Tests non-add/sub operations (AND, LSH) on pointers decaying them to
 unknown scalars.
Also tests that a pkt_ptr add which could potentially overflow is rejected
 (find_good_pkt_pointers ignores it and doesn't give us any reg->range).

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/test_align.c