]> 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)
commitf98530be44b56c71b8bf361f896f2672e2b9854a
treee0365b5d682a58c8c234be24396762bbd4a02817
parent38190ccd37f79077f8b1106f349c4a0bc86098c3
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
9d1edb708dd0 ("tcp: ensure skb->dev is NULL before leaving TCP stack").

Cc: Eric Dumazet <edumazet@google.com>
Fixes: 42899b27ca39 ("tcp: implement rb-tree based retransmit queue")
Fixes: 0a590088d50a ("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