Re: [PATCH net-next] bpf, events: fix offset in skb copy handler

2016-07-25 Thread David Miller
From: Daniel Borkmann Date: Fri, 22 Jul 2016 01:19:42 +0200 > This patch fixes the __output_custom() routine we currently use with > bpf_skb_copy(). I missed that when len is larger than the size of the > current handle, we can issue multiple invocations of copy_func, and > __output_custom() adva

[PATCH net-next] bpf, events: fix offset in skb copy handler

2016-07-21 Thread Daniel Borkmann
This patch fixes the __output_custom() routine we currently use with bpf_skb_copy(). I missed that when len is larger than the size of the current handle, we can issue multiple invocations of copy_func, and __output_custom() advances destination but also source buffer by the written amount of bytes