]> git.ipfire.org Git - thirdparty/linux.git/commit
inet: annotate data-races around ifa->ifa_tstamp and ifa->ifa_cstamp
authorEric Dumazet <edumazet@google.com>
Thu, 29 Feb 2024 11:40:11 +0000 (11:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Mar 2024 11:09:39 +0000 (11:09 +0000)
commit3cd3e72ccb3aade0e8fe037ef07a44b341ab577c
treeb90cc3e384ec971fadb3848029008e6f8131f7ed
parent76f06cbd7b310e705465e11ca93be8db247aec50
inet: annotate data-races around ifa->ifa_tstamp and ifa->ifa_cstamp

ifa->ifa_tstamp can be read locklessly.

Add appropriate READ_ONCE()/WRITE_ONCE() annotations.

Do the same for ifa->ifa_cstamp to prepare upcoming changes.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c