Re: [PATCH net] mptcp: fix bogus sendmsg() return code under pressure

2020-08-03 Thread David Miller
From: Paolo Abeni Date: Mon, 3 Aug 2020 18:40:39 +0200 > In case of memory pressure, mptcp_sendmsg() may call > sk_stream_wait_memory() after succesfully xmitting some > bytes. If the latter fails we currently return to the > user-space the error code, ignoring the succeful xmit. > > Address th

[PATCH net] mptcp: fix bogus sendmsg() return code under pressure

2020-08-03 Thread Paolo Abeni
In case of memory pressure, mptcp_sendmsg() may call sk_stream_wait_memory() after succesfully xmitting some bytes. If the latter fails we currently return to the user-space the error code, ignoring the succeful xmit. Address the issue always checking for the xmitted bytes before mptcp_sendmsg() c