summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorYuyang Huang <yuyanghuang@google.com>2026-06-05 04:43:17 +0300
committerPaolo Abeni <pabeni@redhat.com>2026-06-09 14:19:33 +0300
commit1719841cab55d9da92b2e55b6e0c701e10201467 (patch)
tree9d6a84926780de7db704145fc1c0937b67c472f0 /include/linux/timerqueue.h
parent193b76eb109ed3ed77400c6d493b2f495ca64d9e (diff)
downloadlinux-1719841cab55d9da92b2e55b6e0c701e10201467.tar.xz
ipv4: igmp: annotate data-races around in_dev->mc_count
/proc/net/igmp walks the multicast list for IPv4 interfaces locklessly under RCU and prints state->in_dev->mc_count. Concurrently, device init/destruction and multicast join/leave paths update the count under the RTNL lock. Fix this intentional lockless snapshot by annotating the read with READ_ONCE() and the updates with WRITE_ONCE(). Signed-off-by: Yuyang Huang <yuyanghuang@google.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://patch.msgid.link/20260605014318.3890804-2-yuyanghuang@google.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions