bpf: fix stack_depth usage by test_bpf.ko
authorAlexei Starovoitov <ast@fb.com>
Tue, 30 May 2017 20:31:32 +0000 (13:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2017 23:29:48 +0000 (19:29 -0400)
commit105c03614bff2de60adf338e3ee90652b65c2d05
tree6a33c25dc229dd12bdce71c9056384b8a97aeb11
parent50bbfed96766acb8b9e1b299e3daae5187c3eb5a
bpf: fix stack_depth usage by test_bpf.ko

test_bpf.ko doesn't call verifier before selecting interpreter or JITing,
hence the tests need to manually specify the amount of stack they consume.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_bpf.c