[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200803.181512.1195418774947073734.davem@davemloft.net>
Date: Mon, 03 Aug 2020 18:15:12 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: pabeni@...hat.com
Cc: netdev@...r.kernel.org, mptcp@...ts.01.org
Subject: Re: [PATCH net] mptcp: fix bogus sendmsg() return code under
pressure
From: Paolo Abeni <pabeni@...hat.com>
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 the issue always checking for the xmitted bytes
> before mptcp_sendmsg() completes.
>
> Fixes: f296234c98a8 ("mptcp: Add handling of incoming MP_JOIN requests")
> Reviewed-by: Matthieu Baerts <matthieu.baerts@...sares.net>
> Signed-off-by: Paolo Abeni <pabeni@...hat.com>
Applied and queued up for v5.7+ -stable, thank you.
Powered by blists - more mailing lists