]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bpf/verifier: reject BPF_ALU64|BPF_END
authorEdward Cree <ecree@solarflare.com>
Fri, 15 Sep 2017 13:37:38 +0000 (14:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Oct 2017 09:56:03 +0000 (11:56 +0200)
commit4dfd8d60544612978293dce358d040f71a3209cd
tree0ec1da789e742a9c4258e81ec2425d94320039bc
parent250e0f0406e4650133e54a915cf64b7670073576
bpf/verifier: reject BPF_ALU64|BPF_END

[ Upstream commit e67b8a685c7c984e834e3181ef4619cd7025a136 ]

Neither ___bpf_prog_run nor the JITs accept it.
Also adds a new test case.

Fixes: 17a5267067f3 ("bpf: verifier (add verifier core)")
Signed-off-by: Edward Cree <ecree@solarflare.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/bpf/verifier.c
tools/testing/selftests/bpf/test_verifier.c