]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tcp: restore fastopen with no data in SYN packet
authorEric Dumazet <edumazet@google.com>
Wed, 16 Dec 2015 21:53:10 +0000 (13:53 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 5 Feb 2016 03:33:31 +0000 (19:33 -0800)
commit9774ab714449f141fb4984c7eb5e90951aca0750
treed235ecdefddd88d7ccf59e2c404eb4608efb65b4
parent194f548a9f339708c7406cb878551691d2eff865
tcp: restore fastopen with no data in SYN packet

Orabug: 22623888

[ Upstream commit 07e100f984975cb0417a7d5e626d0409efbad478 ]

Yuchung tracked a regression caused by commit 57be5bdad759 ("ip: convert
tcp_sendmsg() to iov_iter primitives") for TCP Fast Open.

Some Fast Open users do not actually add any data in the SYN packet.

Fixes: 57be5bdad759 ("ip: convert tcp_sendmsg() to iov_iter primitives")
Reported-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 04f694ddd4f44f3174e59777bb94a85263741376)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
net/ipv4/tcp_output.c