Re: [PATCH net-next] mptcp: fix infinite loop on recvmsg()/worker() race.

2020-10-08 Thread Jakub Kicinski
On Tue, 6 Oct 2020 08:27:34 +0200 Paolo Abeni wrote: > If recvmsg() and the workqueue race to dequeue the data > pending on some subflow, the current mapping for such > subflow covers several skbs and some of them have not > reached yet the received, either the worker or recvmsg() > can find a sub

Re: [PATCH net-next] mptcp: fix infinite loop on recvmsg()/worker() race.

2020-10-06 Thread Mat Martineau
On Tue, 6 Oct 2020, Paolo Abeni wrote: If recvmsg() and the workqueue race to dequeue the data pending on some subflow, the current mapping for such subflow covers several skbs and some of them have not reached yet the received, either the worker or recvmsg() can find a subflow with the data_ava

[PATCH net-next] mptcp: fix infinite loop on recvmsg()/worker() race.

2020-10-05 Thread Paolo Abeni
If recvmsg() and the workqueue race to dequeue the data pending on some subflow, the current mapping for such subflow covers several skbs and some of them have not reached yet the received, either the worker or recvmsg() can find a subflow with the data_avail flag set - since the current mapping is