Hangbin Liu 00b5b7aab9 net/ipv6: delete temporary address if mngtmpaddr is removed or unmanaged
RFC8981 section 3.4 says that existing temporary addresses must have their
lifetimes adjusted so that no temporary addresses should ever remain "valid"
or "preferred" longer than the incoming SLAAC Prefix Information. This would
strongly imply in Linux's case that if the "mngtmpaddr" address is deleted or
un-flagged as such, its corresponding temporary addresses must be cleared out
right away.

But now the temporary address is renewed even after ‘mngtmpaddr’ is removed
or becomes unmanaged as manage_tempaddrs() set temporary addresses
prefered/valid time to 0, and later in addrconf_verify_rtnl() all checkings
failed to remove the addresses. Fix this by deleting the temporary address
directly for these situations.

Fixes: 778964f2fdf0 ("ipv6/addrconf: fix timing bug in tempaddr regen")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-11-26 10:29:12 +01:00
..
2024-11-11 10:32:06 -08:00
2024-11-07 12:46:04 +01:00
2024-10-15 18:52:26 -07:00
2024-09-11 20:44:31 -07:00
2024-11-11 10:32:06 -08:00
2024-10-09 19:40:46 -07:00
2024-11-11 10:32:06 -08:00
2024-04-29 13:32:01 +01:00
2024-05-30 18:29:38 -07:00
2023-10-27 10:35:46 +01:00
2023-09-14 16:16:36 +02:00
2024-03-08 10:56:05 +00:00