Skip to content

Commit 93731ef

Browse files
borkmannAlexei Starovoitov
authored and
Alexei Starovoitov
committed
bpf: migrate ebpf ld_abs/ld_ind tests to test_verifier
Remove all eBPF tests involving LD_ABS/LD_IND from test_bpf.ko. Reason is that the eBPF tests from test_bpf module do not go via BPF verifier and therefore any instruction rewrites from verifier cannot take place. Therefore, move them into test_verifier which runs out of user space, so that verfier can rewrite LD_ABS/LD_IND internally in upcoming patches. It will have the same effect since runtime tests are also performed from there. This also allows to finally unexport bpf_skb_vlan_{push,pop}_proto and keep it internal to core kernel. Additionally, also add further cBPF LD_ABS/LD_IND test coverage into test_bpf.ko suite. Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent b390134 commit 93731ef

File tree

4 files changed

+619
-225
lines changed

4 files changed

+619
-225
lines changed

include/linux/bpf.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,8 +714,6 @@ extern const struct bpf_func_proto bpf_ktime_get_ns_proto;
714714
extern const struct bpf_func_proto bpf_get_current_pid_tgid_proto;
715715
extern const struct bpf_func_proto bpf_get_current_uid_gid_proto;
716716
extern const struct bpf_func_proto bpf_get_current_comm_proto;
717-
extern const struct bpf_func_proto bpf_skb_vlan_push_proto;
718-
extern const struct bpf_func_proto bpf_skb_vlan_pop_proto;
719717
extern const struct bpf_func_proto bpf_get_stackid_proto;
720718
extern const struct bpf_func_proto bpf_get_stack_proto;
721719
extern const struct bpf_func_proto bpf_sock_map_update_proto;

0 commit comments

Comments
 (0)