Netdev List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] bpf: add cg_skb_is_valid_access
@ 2018-10-17  5:56 Song Liu
  2018-10-17  5:56 ` [PATCH bpf-next 1/2] bpf: add cg_skb_is_valid_access for BPF_PROG_TYPE_CGROUP_SKB Song Liu
  2018-10-17  5:56 ` [PATCH bpf-next 2/2] bpf: add tests for direct packet access from CGROUP_SKB Song Liu
  0 siblings, 2 replies; 6+ messages in thread
From: Song Liu @ 2018-10-17  5:56 UTC (permalink / raw)
  To: netdev; +Cc: ast, daniel, kernel-team, Song Liu

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(-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-10-18  3:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-17  5:56 [PATCH bpf-next 0/2] bpf: add cg_skb_is_valid_access Song Liu
2018-10-17  5:56 ` [PATCH bpf-next 1/2] bpf: add cg_skb_is_valid_access for BPF_PROG_TYPE_CGROUP_SKB Song Liu
2018-10-17 17:26   ` Alexei Starovoitov
2018-10-17 19:02     ` Alexei Starovoitov
2018-10-17 19:07       ` Song Liu
2018-10-17  5:56 ` [PATCH bpf-next 2/2] bpf: add tests for direct packet access from CGROUP_SKB Song Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox