Files
linux/net/ipv4
Eric Dumazet 0c1282c7f0 tcp: do not mangle skb->cb[] in tcp_make_synack()
[ Upstream commit 3b11775033 ]

Christoph Paasch sent a patch to address the following issue :

tcp_make_synack() is leaving some TCP private info in skb->cb[],
then send the packet by other means than tcp_transmit_skb()

tcp_transmit_skb() makes sure to clear skb->cb[] to not confuse
IPv4/IPV6 stacks, but we have no such cleanup for SYNACK.

tcp_make_synack() should not use tcp_init_nondata_skb() :

tcp_init_nondata_skb() really should be limited to skbs put in write/rtx
queues (the ones that are only sent via tcp_transmit_skb())

This patch fixes the issue and should even save few cpu cycles ;)

Fixes: 971f10eca1 ("tcp: better TCP_SKB_CB layout to reduce cache line misses")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Christoph Paasch <cpaasch@apple.com>
Reviewed-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-24 08:32:23 +01:00
..
2017-06-14 13:16:19 +02:00
2017-06-17 06:39:35 +02:00
2017-11-18 11:11:06 +01:00
2016-11-15 07:46:38 +01:00
2016-11-15 07:46:38 +01:00
2017-07-05 14:37:14 +02:00
2013-12-29 16:34:25 -05:00
2017-02-26 11:07:50 +01:00
2015-10-21 07:00:48 -07:00
2017-04-30 05:49:29 +02:00
2017-08-30 10:19:19 +02:00
2017-11-18 11:11:06 +01:00
2015-07-09 14:22:52 -07:00
2015-07-09 14:22:52 -07:00
2017-11-18 11:11:06 +01:00
2017-05-14 13:32:58 +02:00
2014-09-01 18:12:45 -07:00
2015-10-21 07:00:53 -07:00
2015-07-09 14:22:52 -07:00
2015-07-09 14:22:52 -07:00
2012-03-11 23:42:51 -07:00
2014-05-23 16:28:53 -04:00
2015-09-17 17:18:37 -07:00
2013-05-31 17:19:05 -07:00