[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200814.141239.1395631815275609574.davem@davemloft.net>
Date: Fri, 14 Aug 2020 14:12:39 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: fw@...len.de
Cc: netdev@...r.kernel.org, mathew.j.martineau@...ux.intel.com,
matthieu.baerts@...sares.net, mptcp@...ts.01.org
Subject: Re: [PATCH net] mptcp: sendmsg: reset iter on error
From: Florian Westphal <fw@...len.de>
Date: Fri, 14 Aug 2020 15:56:34 +0200
> Once we've copied data from the iterator we need to revert in case we
> end up not sending any data.
>
> This bug doesn't trigger with normal 'poll' based tests, because
> we only feed a small chunk of data to kernel after poll indicated
> POLLOUT. With blocking IO and large writes this triggers. Receiver
> ends up with less data than it should get.
>
> Fixes: 72511aab95c94d ("mptcp: avoid blocking in tcp_sendpages")
> Signed-off-by: Florian Westphal <fw@...len.de>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists