]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb97fbc21cbd18fb338038cfaedf87bb70dafdada
tree6a33c25dc229dd12bdce71c9056384b8a97aeb11
parent8b79cddff6987e47e53b00096a2169c663a1a9c9
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