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

net->dev_base_seq and ipv4.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: 0465277f6b3f ("ipv4: provide addr and netconf dump consistency info")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c