]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commite30f5640e32455e02ba08983ebe0b46054f1f6f0
treef01ea2389b6aa147392474e43e2d3860235b872b
parentfdbaa0beb78b7c8847e261fe2c32816e9d1c54cc
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