Re: [PATCH net-next] udp: properly support MSG_PEEK with truncated buffers

2016-01-04 Thread David Miller
From: Eric Dumazet Date: Wed, 30 Dec 2015 08:51:12 -0500 > From: Eric Dumazet > > Backport of this upstream commit into stable kernels : > 89c22d8c3b27 ("net: Fix skb csum races when peeking") > exposed a bug in udp stack vs MSG_PEEK support, when

Re: [PATCH net-next] udp: properly support MSG_PEEK with truncated buffers

2015-12-30 Thread Herbert Xu
On Wed, Dec 30, 2015 at 08:51:12AM -0500, Eric Dumazet wrote: > From: Eric Dumazet > > Backport of this upstream commit into stable kernels : > 89c22d8c3b27 ("net: Fix skb csum races when peeking") > exposed a bug in udp stack vs MSG_PEEK support, when user provides > a

[PATCH net-next] udp: properly support MSG_PEEK with truncated buffers

2015-12-30 Thread Eric Dumazet
From: Eric Dumazet Backport of this upstream commit into stable kernels : 89c22d8c3b27 ("net: Fix skb csum races when peeking") exposed a bug in udp stack vs MSG_PEEK support, when user provides a buffer smaller than skb payload. In this case,