Re: [PATH 02/02] af_unix: fix unix_dgram_recvmsg entry locking

2015-12-06 Thread David Miller
From: Rainer Weikusat Date: Sun, 06 Dec 2015 21:11:38 + > The current unix_dgram_recvsmg code acquires the u->readlock mutex in > order to protect access to the peek offset prior to calling > __skb_recv_datagram for actually receiving data. This implies that a > blocking reader will go to sle

[PATH 02/02] af_unix: fix unix_dgram_recvmsg entry locking

2015-12-06 Thread Rainer Weikusat
The current unix_dgram_recvsmg code acquires the u->readlock mutex in order to protect access to the peek offset prior to calling __skb_recv_datagram for actually receiving data. This implies that a blocking reader will go to sleep with this mutex held if there's presently no data to return to user