]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv4: disable SMC TCP option with SYN Cookies
authorHans Wippel <hwippel@linux.vnet.ibm.com>
Fri, 23 Mar 2018 10:05:45 +0000 (11:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 00:53:54 +0000 (20:53 -0400)
commitd2f27f0ccc0d4a390f039c64d1771ca547a8ec51
tree28d3be12af108d383d1ef92fa75c60dfe74d54b0
parent9195bccfe5acc0ab218e6cc997040596292b3f54
net/ipv4: disable SMC TCP option with SYN Cookies

Currently, the SMC experimental TCP option in a SYN packet is lost on
the server side when SYN Cookies are active. However, the corresponding
SYNACK sent back to the client contains the SMC option. This causes an
inconsistent view of the SMC capabilities on the client and server.

This patch disables the SMC option in the SYNACK when SYN Cookies are
active to avoid this issue.

Fixes: d258113fbd7db ("tcp: TCP experimental option for SMC")
Signed-off-by: Hans Wippel <hwippel@linux.vnet.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/syncookies.c
net/ipv4/tcp_input.c
net/ipv6/syncookies.c