summaryrefslogtreecommitdiff
path: root/include/linux/pps_kernel.h
diff options
context:
space:
mode:
authorYuyang Huang <yuyanghuang@google.com>2026-06-05 04:43:18 +0300
committerPaolo Abeni <pabeni@redhat.com>2026-06-09 14:19:33 +0300
commit3289d17b7a1321e103b8aec4ad82675c03c4764f (patch)
tree34881e7fdf4a0904544203a15d1f6882bc03c624 /include/linux/pps_kernel.h
parent1719841cab55d9da92b2e55b6e0c701e10201467 (diff)
downloadlinux-3289d17b7a1321e103b8aec4ad82675c03c4764f.tar.xz
ipv4: igmp: annotate data-races around timer-related fields
/proc/net/igmp walks the multicast list locklessly under RCU and reads timer-related fields (im->tm_running, im->reporter, im->timer.expires) to print the timer state of multicast memberships. Concurrently, these fields are modified under im->lock spinlock in timer management paths (igmp_stop_timer(), igmp_start_timer(), and igmp_timer_expire()). Fix this intentional lockless snapshot by annotating the lockless reads 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-3-yuyanghuang@google.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux/pps_kernel.h')
0 files changed, 0 insertions, 0 deletions