]> git.baikalelectronics.ru Git - kernel.git/commit
net: unix: non blocking recvmsg() should not return -EINTR
authorEric Dumazet <edumazet@google.com>
Wed, 26 Mar 2014 01:42:27 +0000 (18:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Mar 2014 21:05:40 +0000 (17:05 -0400)
commit1e652bfc0326732a0d7fc5acad772a04165ce0b6
tree26fa8bd2f7ea36df46746a2b57e48f3247733d13
parent20637056ee98fe48b527f108c190d1a900bd9755
net: unix: non blocking recvmsg() should not return -EINTR

Some applications didn't expect recvmsg() on a non blocking socket
could return -EINTR. This possibility was added as a side effect
of commit 87b25cfc1bf6bd ("net: fix multithreaded signal handling in
unix recv routines").

To hit this bug, you need to be a bit unlucky, as the u->readlock
mutex is usually held for very small periods.

Fixes: 87b25cfc1bf6bd ("net: fix multithreaded signal handling in unix recv routines")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Rainer Weikusat <rweikusat@mobileactivedefense.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c