]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
gso: validate gso_type on ipip style tunnels
authorWillem de Bruijn <willemb@google.com>
Wed, 20 Feb 2019 15:52:12 +0000 (10:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Feb 2019 19:24:27 +0000 (11:24 -0800)
commit418e897e0716b238ea4252ed22a73ca37d3cbbc1
tree8ca1f1fcfe36bcb019c50ec93f8c17aea1677e54
parent203ef5f1ff9f6abb558310550c2597c5432d5509
gso: validate gso_type on ipip style tunnels

Commit 121d57af308d ("gso: validate gso_type in GSO handlers") added
gso_type validation to existing gso_segment callback functions, to
filter out illegal and potentially dangerous SKB_GSO_DODGY packets.

Convert tunnels that now call inet_gso_segment and ipv6_gso_segment
directly to have their own callbacks and extend validation to these.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c
net/ipv6/ip6_offload.c