]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2021 22:25:47 +0000 (15:25 -0700)
commit1b7d4fd4ab427e9a3472bd55a480d81b11c72464
treedd4c7c0f2ab3977e9180b8b80d31436158b195be
parente31365e9fac38e658b558d074c9a9af99acd699b
neighbour: allow NUD_NOARP entries to be forced GCed

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 af2ec2028230 ("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: af2ec2028230 (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>
net/core/neighbour.c