]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: also NULL skb->dev when copy was needed
authorFlorian Westphal <fw@strlen.de>
Fri, 20 Mar 2020 15:52:02 +0000 (16:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Mar 2020 02:36:38 +0000 (19:36 -0700)
commit53c10d6f9e432ea709c601968fcaaab7edfda129
treee0365b5d682a58c8c234be24396762bbd4a02817
parentdb64af8a6d48711a6f51024f06624414d6330414
tcp: also NULL skb->dev when copy was needed

In rare cases retransmit logic will make a full skb copy, which will not
trigger the zeroing added in recent change
8cc31357d03b ("tcp: ensure skb->dev is NULL before leaving TCP stack").

Cc: Eric Dumazet <edumazet@google.com>
Fixes: 96a3c48dc726 ("tcp: implement rb-tree based retransmit queue")
Fixes: 2951e815ec3e ("netfilter: Support iif matches in POSTROUTING")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c