Re: [PATCH net 1/3] unix/dgram: peek beyond 0-sized skbs

2013-04-26 Thread Benjamin Poirier
On 2013/04/25 11:48, Eric Dumazet wrote: > On Thu, 2013-04-25 at 09:47 -0400, Benjamin Poirier wrote: > > "77c1090 net: fix infinite loop in __skb_recv_datagram()" (v3.8) introduced > > a > > regression: > > After that commit, recv can no longer peek beyond a 0-sized skb in the > > queue. > > __s

Re: [PATCH net 1/3] unix/dgram: peek beyond 0-sized skbs

2013-04-25 Thread Eric Dumazet
On Thu, 2013-04-25 at 09:47 -0400, Benjamin Poirier wrote: > "77c1090 net: fix infinite loop in __skb_recv_datagram()" (v3.8) introduced a > regression: > After that commit, recv can no longer peek beyond a 0-sized skb in the queue. > __skb_recv_datagram() instead stops at the first skb with len ==

[PATCH net 1/3] unix/dgram: peek beyond 0-sized skbs

2013-04-25 Thread Benjamin Poirier
"77c1090 net: fix infinite loop in __skb_recv_datagram()" (v3.8) introduced a regression: After that commit, recv can no longer peek beyond a 0-sized skb in the queue. __skb_recv_datagram() instead stops at the first skb with len == 0 and results in the system call failing with -EFAULT via skb_copy