Re: [PATCH bpf-next] bpf: fix virtio-net's length calc for XDP_PASS

2018-04-23 Thread Daniel Borkmann
On 04/23/2018 08:33 AM, Jason Wang wrote: > On 2018年04月23日 12:16, Nikita V. Shirokov wrote: >> In commit 6870de435b90 ("bpf: make virtio compatible w/ >> bpf_xdp_adjust_tail") i didn't account for vi->hdr_len during new >> packet's length calculation after bpf_prog_run in receive_mergeable. >> beca

Re: [PATCH bpf-next] bpf: fix virtio-net's length calc for XDP_PASS

2018-04-22 Thread Jason Wang
On 2018年04月23日 12:16, Nikita V. Shirokov wrote: In commit 6870de435b90 ("bpf: make virtio compatible w/ bpf_xdp_adjust_tail") i didn't account for vi->hdr_len during new packet's length calculation after bpf_prog_run in receive_mergeable. because of this all packets, if they were passed to the

[PATCH bpf-next] bpf: fix virtio-net's length calc for XDP_PASS

2018-04-22 Thread Nikita V. Shirokov
In commit 6870de435b90 ("bpf: make virtio compatible w/ bpf_xdp_adjust_tail") i didn't account for vi->hdr_len during new packet's length calculation after bpf_prog_run in receive_mergeable. because of this all packets, if they were passed to the kernel, were truncated by 12 bytes. Fixes:6870d