aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tun.c
diff options
context:
space:
mode:
authorYohei Kanemaru <yohei.kanemaru@gmail.com>2019-01-29 15:52:34 +0900
committerDavid S. Miller <davem@davemloft.net>2019-01-30 14:06:12 -0800
commitef489749aae508e6f17886775c075f12ff919fb1 (patch)
treeca6e7ad0f0176a76a90baee3ef6af49519bacddc /drivers/net/tun.c
parentMerge branch 'virtio_net-Fix-problems-around-XDP-tx-and-napi_tx' (diff)
downloadlinux-dev-ef489749aae508e6f17886775c075f12ff919fb1.tar.xz
linux-dev-ef489749aae508e6f17886775c075f12ff919fb1.zip
ipv6: sr: clear IP6CB(skb) on SRH ip4ip6 encapsulation
skb->cb may contain data from previous layers (in an observed case IPv4 with L3 Master Device). In the observed scenario, the data in IPCB(skb)->frags was misinterpreted as IP6CB(skb)->frag_max_size, eventually caused an unexpected IPv6 fragmentation in ip6_fragment() through ip6_finish_output(). This patch clears IP6CB(skb), which potentially contains garbage data, on the SRH ip4ip6 encapsulation. Fixes: 32d99d0b6702 ("ipv6: sr: add support for ip4ip6 encapsulation") Signed-off-by: Yohei Kanemaru <yohei.kanemaru@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
0 files changed, 0 insertions, 0 deletions