Searched hist:"2 cb494a36c98279c5c6ce8e99cf9776f15449ade" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/net/bpf/ |
H A D | test_run.c | diff 2cb494a36c98279c5c6ce8e99cf9776f15449ade Fri Oct 19 11:57:58 CDT 2018 Song Liu <songliubraving@fb.com> bpf: add tests for direct packet access from CGROUP_SKB
Tests are added to make sure CGROUP_SKB cannot access: tc_classid, data_meta, flow_keys
and can read and write: mark, prority, and cb[0-4]
and can read other fields.
To make selftest with skb->sk work, a dummy sk is added in bpf_prog_test_run_skb().
Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_verifier.c | diff 2cb494a36c98279c5c6ce8e99cf9776f15449ade Fri Oct 19 11:57:58 CDT 2018 Song Liu <songliubraving@fb.com> bpf: add tests for direct packet access from CGROUP_SKB
Tests are added to make sure CGROUP_SKB cannot access: tc_classid, data_meta, flow_keys
and can read and write: mark, prority, and cb[0-4]
and can read other fields.
To make selftest with skb->sk work, a dummy sk is added in bpf_prog_test_run_skb().
Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
|