mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-20 01:20:54 +00:00
neighbour: allow NUD_NOARP entries to be forced GCed
commit7a6b1ab747
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 commit58956317c8
("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:58956317c8
(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>
This commit is contained in:
parent
6b53db8c4c
commit
d17d47da59
1 changed files with 1 additions and 0 deletions
|
@ -239,6 +239,7 @@ static int neigh_forced_gc(struct neigh_table *tbl)
|
|||
|
||||
write_lock(&n->lock);
|
||||
if ((n->nud_state == NUD_FAILED) ||
|
||||
(n->nud_state == NUD_NOARP) ||
|
||||
(tbl->is_multicast &&
|
||||
tbl->is_multicast(n->primary_key)) ||
|
||||
time_after(tref, n->updated))
|
||||
|
|
Loading…
Reference in a new issue