]> git.baikalelectronics.ru Git - kernel.git/commit
net: filter: add slot overlapping test with fully filled M[]
authorDaniel Borkmann <dborkman@redhat.com>
Thu, 29 May 2014 08:22:48 +0000 (10:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jun 2014 05:16:57 +0000 (22:16 -0700)
commit05cd6887141de54d454b423e0fa1315f41608878
tree8c349d7ebf41449564655c48165e0d985b4c6702
parent3094678279fe5b17b01dcb83eb615b5f0dfbc3c0
net: filter: add slot overlapping test with fully filled M[]

Also add a test for the scratch memory store that first fills
all slots and then sucessively reads all of them back adding
up to A, and eventually returning A. This and the previous
M[] test with alternating fill/spill will detect possible JIT
errors on M[].

Suggested-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_bpf.c