]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
vti6: fix PMTU caching and reporting on xmit
authorEyal Birger <eyal.birger@gmail.com>
Thu, 7 Jun 2018 07:11:02 +0000 (10:11 +0300)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:44:20 +0000 (19:44 -0600)
commitcca9cba06ac62bf4fdd2199352bd32e060256a26
tree540c535fc6677efbdee9b4452f5c7ffe53ec89cf
parentb77aa1bb53311cd4532560c450933eea2fe21ce6
vti6: fix PMTU caching and reporting on xmit

BugLink: https://bugs.launchpad.net/bugs/1835972
[ Upstream commit d6990976af7c5d8f55903bfb4289b6fb030bf754 ]

When setting the skb->dst before doing the MTU check, the route PMTU
caching and reporting is done on the new dst which is about to be
released.

Instead, PMTU handling should be done using the original dst.

This is aligned with IPv4 VTI.

Fixes: ccd740cbc6 ("vti6: Add pmtu handling to vti6_xmit.")
Signed-off-by: Eyal Birger <eyal.birger@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
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/ipv6/ip6_vti.c