]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add BPF_LD_IMM64 to the line_info test
authorMartin KaFai Lau <kafai@fb.com>
Wed, 19 Dec 2018 21:01:02 +0000 (13:01 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Dec 2018 23:42:55 +0000 (15:42 -0800)
commit1da27548b7039b6bde709347a72a4d9eefca2da9
treef01ea2389b6aa147392474e43e2d3860235b872b
parent716a757c4417b966f2facf268e4a9d1c3b855ba5
bpf: Add BPF_LD_IMM64 to the line_info test

This patch adds a BPF_LD_IMM64 case to the line_info test
to ensure the kernel rejects linfo_info.insn_off pointing
to the 2nd 8 bytes of the BPF_LD_IMM64.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_btf.c