]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel: be careful when accessing the inner header
authorPaolo Abeni <pabeni@redhat.com>
Mon, 24 Sep 2018 13:48:19 +0000 (15:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Sep 2018 19:27:04 +0000 (12:27 -0700)
commit45f15e8396ac3511a439fa2f79cfaff46276e204
treef2dd5acfe96ba9b9c424659e8a6eff96735c3ad4
parent356bb8b001616aed40ce38b38dbc1058032693c5
ip_tunnel: be careful when accessing the inner header

Cong noted that we need the same checks introduced by commit a1e74f30edbf
("ip6_tunnel: be careful when accessing the inner header")
even for ipv4 tunnels.

Fixes: 65fe948e5424 ("GRE: Refactor GRE tunneling code.")
Suggested-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel.c