]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ip6_gre: do not confirm neighbor when do pmtu update
authorHangbin Liu <liuhangbin@gmail.com>
Sun, 22 Dec 2019 02:51:10 +0000 (10:51 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 16:12:16 +0000 (10:12 -0600)
commit95637ac0cdd77cfeab3bdf89b9b5b8124660167c
tree8caaa111abe3d872b0fb70ac6e16cb7e755990ff
parent4614d258a150adf691bc1c7900d7fdcae6fe73be
ip6_gre: do not confirm neighbor when do pmtu update

BugLink: https://bugs.launchpad.net/bugs/1858429
[ Upstream commit 675d76ad0ad5bf41c9a129772ef0aba8f57ea9a7 ]

When we do ipv6 gre pmtu update, we will also do neigh confirm currently.
This will cause the neigh cache be refreshed and set to REACHABLE before
xmit.

But if the remote mac address changed, e.g. device is deleted and recreated,
we will not able to notice this and still use the old mac address as the neigh
cache is REACHABLE.

Fix this by disable neigh confirm when do pmtu update

v5: No change.
v4: No change.
v3: Do not remove dst_confirm_neigh, but add a new bool parameter in
    dst_ops.update_pmtu to control whether we should do neighbor confirm.
    Also split the big patch to small ones for each area.
v2: Remove dst_confirm_neigh in __ip6_rt_update_pmtu.

Reported-by: Jianlin Shi <jishi@redhat.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
net/ipv6/ip6_gre.c