lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK6E8=edMkhMCu1o9OSWqUQnE3PDw6Ev=YHBHC-HhuLWRHhe7Q@mail.gmail.com>
Date:	Tue, 8 Jul 2014 10:33:46 -0700
From:	Yuchung Cheng <ycheng@...gle.com>
To:	David Miller <davem@...emloft.net>
Cc:	Neal Cardwell <ncardwell@...gle.com>,
	netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH net] tcp: fix false undo corner cases

On Mon, Jul 7, 2014 at 9:41 PM, David Miller <davem@...emloft.net> wrote:
> From: Yuchung Cheng <ycheng@...gle.com>
> Date: Wed,  2 Jul 2014 12:07:16 -0700
>
>> The undo code assumes that, upon entering loss recovery, TCP
>> 1) always retransmit something
>> 2) the retransmission never fails locally (e.g., qdisc drop)
>>
>> so undo_marker is set in tcp_enter_recovery() and undo_retrans is
>> incremented only when tcp_retransmit_skb() is successful.
>>
>> When the assumption is broken because TCP's cwnd is too small to
>> retransmit or the retransmit fails locally. The next (DUP)ACK
>> would incorrectly revert the cwnd and the congestion state in
>> tcp_try_undo_dsack() or tcp_may_undo(). Subsequent (DUP)ACKs
>> may enter the recovery state. The sender repeatedly enter and
>> (incorrectly) exit recovery states if the retransmits continue to
>> fail locally while receiving (DUP)ACKs.
>>
>> The fix is to initialize undo_retrans to -1 and start counting on
>> the first retransmission. Always increment undo_retrans even if the
>> retransmissions fail locally because they couldn't cause DSACKs to
>> undo the cwnd reduction.
>>
>> Signed-off-by: Yuchung Cheng <ycheng@...gle.com>
>> Signed-off-by: Neal Cardwell <ncardwell@...gle.com>
>
> Applied, thanks.
>
> Do you guys think this is -stable material?
Yes this bugfix fits -stable. Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ