ipip: validate header length in ipip_tunnel_xmit
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Thu, 25 Jul 2019 03:07:56 +0000 (11:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jul 2019 00:23:40 +0000 (17:23 -0700)
commit47d858d0bdcd47cc1c6c9eeca91b091dd9e55637
treed8a30acde38bd0369ad3471e7b8d199864430eb0
parent53db1cced401e4c65d49edf198e00daa9fc837e6
ipip: validate header length in ipip_tunnel_xmit

We need the same checks introduced by commit cb9f1b783850
("ip: validate header length on virtual device xmit") for
ipip tunnel.

Fixes: cb9f1b783850b ("ip: validate header length on virtual device xmit")
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipip.c