Thread (2 messages) 2 messages, 2 authors, 2018-03-02

Re: [PATCH net-next] socket: skip checking sk_err for recvmmsg(MSG_ERRQUEUE)

From: David Miller <davem@davemloft.net>
Date: 2018-03-02 02:28:46

From: Soheil Hassas Yeganeh <redacted>
Date: Tue, 27 Feb 2018 18:22:40 -0500
From: Soheil Hassas Yeganeh <redacted>

recvmmsg does not call ___sys_recvmsg when sk_err is set.
That is fine for normal reads but, for MSG_ERRQUEUE, recvmmsg
should always call ___sys_recvmsg regardless of sk->sk_err to
be able to clear error queue. Otherwise, users are not able to
drain the error queue using recvmmsg.

Signed-off-by: Soheil Hassas Yeganeh <redacted>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Applied, thank you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help