ipv6: mcast: annotate data-races around mc->mca_sfcount[MCAST_EXCLUDE]
authorEric Dumazet <edumazet@google.com>
Tue, 10 Dec 2024 18:33:51 +0000 (18:33 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Dec 2024 04:15:29 +0000 (20:15 -0800)
commit626962911ad886f2b8e6d6f612289f9c7268b435
tree9452c496e32fa44277e0a9d8898321d63cd8034a
parentd51cfd5f4fe01cd3d212703c8fe5dd6886da969c
ipv6: mcast: annotate data-races around mc->mca_sfcount[MCAST_EXCLUDE]

mc->mca_sfcount[MCAST_EXCLUDE] is read locklessly from
ipv6_chk_mcast_addr().

Add READ_ONCE() and WRITE_ONCE() annotations accordingly.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20241210183352.86530-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/mcast.c