[PATCH net] af_unix: don't append consumed skbs to sk_receive_queue

2015-11-16 Thread Hannes Frederic Sowa
In case multiple writes to a unix stream socket race we could end up in a situation where we pre-allocate a new skb for use in unix_stream_sendpage but have to free it again in the locked section because another skb has been appended meanwhile, which we must use. Accidentally we didn't clear the

Re: [PATCH net] af_unix: don't append consumed skbs to sk_receive_queue

2015-11-16 Thread Eric Dumazet
On Mon, 2015-11-16 at 16:25 +0100, Hannes Frederic Sowa wrote: > In case multiple writes to a unix stream socket race we could end up in a > situation where we pre-allocate a new skb for use in unix_stream_sendpage > but have to free it again in the locked section because another skb > has been

Re: [PATCH net] af_unix: don't append consumed skbs to sk_receive_queue

2015-11-16 Thread David Miller
From: Hannes Frederic Sowa Date: Mon, 16 Nov 2015 16:25:56 +0100 > In case multiple writes to a unix stream socket race we could end up in a > situation where we pre-allocate a new skb for use in unix_stream_sendpage > but have to free it again in the locked section