Re: [PATCH net] mptcp: fix races between shutdown and recvmsg

2020-06-10 Thread David Miller
From: Paolo Abeni Date: Wed, 10 Jun 2020 10:47:41 +0200 > The msk sk_shutdown flag is set by a workqueue, possibly > introducing some delay in user-space notification. If the last > subflow carries some data with the fin packet, the user space > can wake-up before RCV_SHUTDOWN is set. If it execu

Re: [MPTCP] [PATCH net] mptcp: fix races between shutdown and recvmsg

2020-06-10 Thread Matthieu Baerts
Hi Paolo, On 10/06/2020 10:47, Paolo Abeni wrote: The msk sk_shutdown flag is set by a workqueue, possibly introducing some delay in user-space notification. If the last subflow carries some data with the fin packet, the user space can wake-up before RCV_SHUTDOWN is set. If it executes unblockin

[PATCH net] mptcp: fix races between shutdown and recvmsg

2020-06-10 Thread Paolo Abeni
The msk sk_shutdown flag is set by a workqueue, possibly introducing some delay in user-space notification. If the last subflow carries some data with the fin packet, the user space can wake-up before RCV_SHUTDOWN is set. If it executes unblocking recvmsg(), it may return with an error instead of e