Re: [PATCH bpf 1/5] bpf, s390x: do not reload skb pointers in non-skb context

2018-01-09 Thread Michael Holzheu
Am Thu, 14 Dec 2017 21:07:23 +0100 schrieb Daniel Borkmann : > The assumption of unconditionally reloading skb pointers on > BPF helper calls where bpf_helper_changes_pkt_data() holds > true is wrong. There can be different contexts where the > BPF helper would enforce a reload such as in case of

[PATCH bpf 1/5] bpf, s390x: do not reload skb pointers in non-skb context

2017-12-14 Thread Daniel Borkmann
The assumption of unconditionally reloading skb pointers on BPF helper calls where bpf_helper_changes_pkt_data() holds true is wrong. There can be different contexts where the BPF helper would enforce a reload such as in case of XDP. Here, we do have a struct xdp_buff instead of struct sk_buff as c