]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipv6: mcast: annotate data-races around mca_flags
authorYuyang Huang <sigefriedhyy@gmail.com>
Tue, 9 Jun 2026 08:11:12 +0000 (17:11 +0900)
committerJakub Kicinski <kuba@kernel.org>
Sat, 13 Jun 2026 00:12:07 +0000 (17:12 -0700)
commitd0dc208808a28f7380fdc40e587b054f6cc81bc1
tree5dbb85cad92012f377cb5c0601863b03fd72898a
parent8d8fb5b5f55118baa2a2f0e94601286d4c57b9b4
ipv6: mcast: annotate data-races around mca_flags

/proc/net/igmp6 walks IPv6 multicast memberships under RCU and
prints mca_flags without holding idev->mc_lock. The multicast paths
update the field while holding idev->mc_lock.

Annotate this intentional lockless snapshot with READ_ONCE() and the
matching writers with WRITE_ONCE().

Signed-off-by: Yuyang Huang <sigefriedhyy@gmail.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20260609081113.7613-2-sigefriedhyy@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/mcast.c