]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:53:12 +0000 (19:53 -0600)
commit545da2619dcf3284e75038a6a3fd57de892c673c
tree2e6b7ee42132f23861fff1cf47150ed397f261f5
parent421feaa88ed3e3df368d2bc873cac1f3c9c2a026
ip_tunnel: be careful when accessing the inner header

BugLink: https://bugs.launchpad.net/bugs/1836426
[ Upstream commit ccfec9e5cb2d48df5a955b7bf47f7782157d3bc2]

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

Fixes: c54419321455 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
net/ipv4/ip_tunnel.c