]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
neighbour: allow NUD_NOARP entries to be forced GCed
authorDavid Ahern <dsahern@kernel.org>
Mon, 7 Jun 2021 17:35:30 +0000 (11:35 -0600)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 30 Jun 2021 06:27:59 +0000 (08:27 +0200)
commita40ecc0baa7052809bacf110477476d2549e9987
tree2a46d23ecb5393402c622135d2e3affbd4ee0868
parent89bd4a8ecaecf3823f3658f39f6fd3885e449ab9
neighbour: allow NUD_NOARP entries to be forced GCed

BugLink: https://bugs.launchpad.net/bugs/1933691
commit 7a6b1ab7475fd6478eeaf5c9d1163e7a18125c8f upstream.

IFF_POINTOPOINT interfaces use NUD_NOARP entries for IPv6. It's possible to
fill up the neighbour table with enough entries that it will overflow for
valid connections after that.

This behaviour is more prevalent after commit 58956317c8de ("neighbor:
Improve garbage collection") is applied, as it prevents removal from
entries that are not NUD_FAILED, unless they are more than 5s old.

Fixes: 58956317c8de (neighbor: Improve garbage collection)
Reported-by: Kasper Dupont <kasperd@gjkwv.06.feb.2021.kasperd.net>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
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: Kelsey Skunberg <kelsey.skunberg@canonical.com>
net/core/neighbour.c