summaryrefslogtreecommitdiff
path: root/drivers/net/tap.c
diff options
context:
space:
mode:
authorYousuk Seung <ysseung@google.com>2017-10-25 02:44:42 +0300
committerDavid S. Miller <davem@davemloft.net>2017-10-26 11:47:55 +0300
commit5889e2c0e441d84060e66211ed5c4517ca591167 (patch)
tree6acbd5d5fbf960b0c07d1899aa42c30acf51790a /drivers/net/tap.c
parent06f877d613be3621604c2520ec0351d9fbdca15f (diff)
downloadlinux-5889e2c0e441d84060e66211ed5c4517ca591167.tar.xz
tcp: call tcp_rate_skb_sent() when retransmit with unaligned skb->data
Current implementation calls tcp_rate_skb_sent() when tcp_transmit_skb() is called when it clones skb only. Not calling tcp_rate_skb_sent() is OK for all such code paths except from __tcp_retransmit_skb() which happens when skb->data address is not aligned. This may rarely happen e.g. when small amount of data is sent initially and the receiver partially acks odd number of bytes for some reason, possibly malicious. Signed-off-by: Yousuk Seung <ysseung@google.com> Signed-off-by: Neal Cardwell <ncardwell@google.com> Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tap.c')
0 files changed, 0 insertions, 0 deletions