mbox series

[bpf-next,0/2] bpf: add cg_skb_is_valid_access

Message ID 20181017055606.353449-1-songliubraving@fb.com
Headers show
Series bpf: add cg_skb_is_valid_access | expand

Message

Song Liu Oct. 17, 2018, 5:56 a.m. UTC
This set enables BPF program of type BPF_PROG_TYPE_CGROUP_SKB to access
__skb_buff->len/data/data_end directly.

Song Liu (2):
  bpf: add cg_skb_is_valid_access for BPF_PROG_TYPE_CGROUP_SKB
  bpf: add tests for direct packet access from CGROUP_SKB

 kernel/bpf/cgroup.c                         |  4 +++
 net/core/filter.c                           | 26 +++++++++++++++++-
 tools/testing/selftests/bpf/test_verifier.c | 30 +++++++++++++++++++++
 3 files changed, 59 insertions(+), 1 deletion(-)

--
2.17.1