New: Router causes TCP retransmits for windows hosts after "ip_forward: fix inverted local_df test"
Subsystems (3)
Begin forwarded message:
Date: Thu, 10 Jul 2014 06:20:14 -0700
From: "[email protected]" <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Bug 79891] New: Router causes TCP retransmits for windows hosts after "ip_forward: fix inverted local_df test"
https://bugzilla.kernel.org/show_bug.cgi?id=79891
Bug ID: 79891
Summary: Router causes TCP retransmits for windows hosts after
"ip_forward: fix inverted local_df test"
Product: Networking
Version: 2.5
Kernel Version: 3.2.60
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: IPV4
Assignee: [email protected]
Reporter: [email protected]
Regression: NoCreated attachment 142651
--> https://bugzilla.kernel.org/attachment.cgi?id=142651&action=edit
TCP retransmissions from a windows host
After upgrading a router to Linux 3.2.60 most windows machines behind it started experiencing connection stalls. Downgrade to 3.2.59 resolved the problem. Using git bisect I pinpointed it to "59d9f389df3cdf72833d5ee17c3fe959b6bdc792 is the first bad commit", which entered the kernel from here
http://marc.info/?l=linux-netdev&m=139949081418806&w=2
No connection problems for Linux hosts at all – only windows. Please, find attached tcpdump packet capture demonstrating the bad behaviour.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
Quoted 8 lines · Stephen Hemminger
After upgrading a router to Linux 3.2.60 most windows machines behind it started experiencing connection stalls. Downgrade to 3.2.59 resolved the problem. Using git bisect I pinpointed it to "
59d9f389df3cdf72833d5ee17c3fe959b6bdc792is the first bad commit", which entered the kernel from here
http://marc.info/?l=linux-netdev&m=139949081418806&w=2
This commit should have been reverted for older kernels like 3.2.y.
Quoted 11 lines · Cong Wang
Quoted 8 lines · Stephen Hemminger
After upgrading a router to Linux 3.2.60 most windows machines behind it started experiencing connection stalls. Downgrade to 3.2.59 resolved the problem. Using git bisect I pinpointed it to "
59d9f389df3cdf72833d5ee17c3fe959b6bdc792is the first bad commit", which entered the kernel from here
http://marc.info/?l=linux-netdev&m=139949081418806&w=2
Quoted 1 line
This commit should have been reverted for older kernels like 3.2.y.
Really? We already had fe6cc55f3a9 ("net: ip, ipv6: handle gso skbs in forwarding path") backported in 3.2.57.
Ben.
Signature · 2 lines
Ben Hutchings To err is human; to really foul things up requires a computer.
Quoted 12 lines · Ben Hutchings
Quoted 11 lines · Cong Wang
Quoted 8 lines · Stephen Hemminger
After upgrading a router to Linux 3.2.60 most windows machines behind it started experiencing connection stalls. Downgrade to 3.2.59 resolved the problem. Using git bisect I pinpointed it to "
59d9f389df3cdf72833d5ee17c3fe959b6bdc792is the first bad commit", which entered the kernel from here
http://marc.info/?l=linux-netdev&m=139949081418806&w=2
Quoted 4 lines
Quoted 1 line
This commit should have been reverted for older kernels like 3.2.y.
Really? We already had
fe6cc55f3a9("net: ip, ipv6: handle gso skbs in forwarding path") backported in 3.2.57.
I haven't read the code, but according to a previous discussion it sounds like that should be reverted:
Quoted 15 lines · Cong Wang
Quoted 14 lines · Ben Hutchings
Quoted 12 lines · Cong Wang
Quoted 8 lines · Stephen Hemminger
After upgrading a router to Linux 3.2.60 most windows machines behind it started experiencing connection stalls. Downgrade to 3.2.59 resolved the problem. Using git bisect I pinpointed it to "
59d9f389df3cdf72833d5ee17c3fe959b6bdc792is the first bad commit", which entered the kernel from here
http://marc.info/?l=linux-netdev&m=139949081418806&w=2This commit should have been reverted for older kernels like 3.2.y.
Quoted 7 lines
Quoted 2 lines
Really? We already had
fe6cc55f3a9("net: ip, ipv6: handle gso skbs in forwarding path") backported in 3.2.57.I haven't read the code, but according to a previous discussion it sounds like that should be reverted:
My reading of that is we need 895162b1101b ("netfilter: ipv4: defrag:
set local_df flag on defragmented skb") in 3.2.y and 3.4.y. But there seem to be many other places that local_df should be set, that have only recently been fixed. So maybe reverting is the safer option.
Ben.
Signature · 2 lines
Ben Hutchings To err is human; to really foul things up requires a computer.
David Miller
maintainerFrom: Ben Hutchings <[email protected]>
Date: Fri, 11 Jul 2014 20:01:12 +0100
Quoted 22 lines · Cong Wang
Quoted 21 lines · Ben Hutchings
Quoted 12 lines · Cong Wang
Quoted 11 lines
Quoted 8 lines · Stephen Hemminger
After upgrading a router to Linux 3.2.60 most windows machines behind it started experiencing connection stalls. Downgrade to 3.2.59 resolved the problem. Using git bisect I pinpointed it to "
59d9f389df3cdf72833d5ee17c3fe959b6bdc792is the first bad commit", which entered the kernel from here
http://marc.info/?l=linux-netdev&m=139949081418806&w=2Quoted 4 lines
Quoted 1 line
This commit should have been reverted for older kernels like 3.2.y.
Really? We already had
fe6cc55f3a9("net: ip, ipv6: handle gso skbs in forwarding path") backported in 3.2.57.I haven't read the code, but according to a previous discussion it sounds like that should be reverted:
Quoted 6 lines
Quoted 1 line
My reading of that is we need
895162b1101b("netfilter: ipv4: defrag:
setlocal_dfflag on defragmented skb") in 3.2.y and 3.4.y. But there seem to be many other places thatlocal_dfshould be set, that have only recently been fixed. So maybe reverting is the safer option.
Reverting is indeed probably safer.
Quoted 4 lines · David Miller
From: Ben Hutchings <[email protected]>
Date: Fri, 11 Jul 2014 20:01:12 +0100Quoted 1 line · Cong Wang
[..]
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
This commit should have been reverted for older kernels like 3.2.y.
Really? We already had
fe6cc55f3a9("net: ip, ipv6: handle gso skbs in forwarding path") backported in 3.2.57.I haven't read the code, but according to a previous discussion it sounds like that should be reverted:
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
My reading of that is we need
895162b1101b("netfilter: ipv4: defrag:
setlocal_dfflag on defragmented skb") in 3.2.y and 3.4.y. But there seem to be many other places thatlocal_dfshould be set, that have only recently been fixed. So maybe reverting is the safer option.Reverting is indeed probably safer.
Right, I agree. Reverting is safer.
IMO there are two possible options for 3.2 / 3.4:
1. Revert fe6cc55f3a9 ("net: ip, ipv6: handle gso skbs in forwarding path")
2. Backport 21d1196a3 ("ipv4: set transport header earlier") to 3.2/3.4 -stable
[ The problem is that transport header is not yet set in 3.2/3.4 in forward
path so skb_gso_network_seglen() returns bogus length ]
There is a 3rd alternative (i mention this for completeness only). You could sort-of 'soft-revert' to the old behaviour to not care about GRO packets in the forward path. The minium change is:
net/ipv4/ip_forward.c +1 -1
@@ -50,7 +50,7 @@ static bool ip_exceeds_mtu(const struct sk_buff *skb, unsigned int mtu)if (skb->len <= mtu)return false; -if (skb_is_gso (skb) &&skb_gso_network_seglen (skb) <= mtu) +if (skb_is_gso (skb))return false;return true;
net/ipv6/ip6_output.c +1 -1
@@ -354,7 +354,7 @@ static bool ip6_pkt_too_big(const struct sk_buff *skb, unsigned int mtu)if (skb->ignore_df)return false; -if (skb_is_gso (skb) &&skb_gso_network_seglen (skb) <= mtu) +if (skb_is_gso (skb))return false;return true;
Dave/Greg, if this is what you prefer just let me know and I can submit such patch for 3.2 and 3.4 stable series.
I wonder if this is the same bug being discussed in the Debian bug tracker: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754294