Re: [PATCH net] udp: fix linear skb reception with PEEK_OFF

2017-08-14 Thread David Miller
From: Paolo Abeni Date: Mon, 14 Aug 2017 21:31:38 +0200 > From: Al Viro > > copy_linear_skb() is broken; both of its callers actually > expect 'len' to be the amount we are trying to copy, > not the offset of the end. > Fix it keeping the meanings of arguments in sync with what the > callers (b

Re: [PATCH net] udp: fix linear skb reception with PEEK_OFF

2017-08-14 Thread Eric Dumazet
On Mon, 2017-08-14 at 21:31 +0200, Paolo Abeni wrote: > From: Al Viro > > copy_linear_skb() is broken; both of its callers actually > expect 'len' to be the amount we are trying to copy, > not the offset of the end. > Fix it keeping the meanings of arguments in sync with what the > callers (both

[PATCH net] udp: fix linear skb reception with PEEK_OFF

2017-08-14 Thread Paolo Abeni
From: Al Viro copy_linear_skb() is broken; both of its callers actually expect 'len' to be the amount we are trying to copy, not the offset of the end. Fix it keeping the meanings of arguments in sync with what the callers (both of them) expect. Also restore a saner behavior on EFAULT (i.e. prese