xfrm: espintcp: read the socket error queue for MSG_ERRQUEUE
An ESP-in-TCP socket can have a TX timestamp queued and report POLLERR,
but recvmsg(MSG_ERRQUEUE) returns EAGAIN because espintcp_recvmsg()
reads the IKE queue instead. If an IKE message is pending, the same call
consumes that message as though it were an error-queue result.
Handle MSG_ERRQUEUE through inet_recv_error() before reading the IKE
queue. This exposes queued error metadata and leaves IKE messages for
normal receive calls.
Fixes: e27cca96cd68 ("xfrm: add espintcp (RFC 8229)")
Signed-off-by: Baek Kyu, Kim <pocj8ur4in@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
1 file changed