]> www.infradead.org Git - users/dwmw2/linux.git/commit
ipv6: properly combine dev_base_seq and ipv6.dev_addr_genid
authorEric Dumazet <edumazet@google.com>
Thu, 15 Feb 2024 17:21:07 +0000 (17:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Feb 2024 10:22:27 +0000 (10:22 +0000)
commite898e4cd1aab271ca414f9ac6e08e4c761f6913c
treeda47f3451a95addb074c6cda6cd0ee72d71d5383
parent081a0e3b0d4c061419d3f4679dec9f68725b17e4
ipv6: properly combine dev_base_seq and ipv6.dev_addr_genid

net->dev_base_seq and ipv6.dev_addr_genid are monotonically increasing.

If we XOR their values, we could miss to detect if both values
were changed with the same amount.

Fixes: 63998ac24f83 ("ipv6: provide addr and netconf dump consistency info")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c