[PATCH RFC] Fix data races in timers

From: Paul E. McKenney

Date: Fri Sep 18 2026 - 20:26:29 EST


Hello!

In CONFIG_KCSAN_STRICT=y mode, KCSAN finds (a very few) data races,
one set on the hlist_node ->pprev field and another set on tmigr_event
structure's ->ignore field. Therefore, fix these applying READ_ONCE()
and WRITE_ONCE().

1. Mark updates to hlist_node ->pprev field.

2. Mark updates to tmigr_event ->field.

Thanx, Paul

------------------------------------------------------------------------

include/linux/list.h | 6 +++---
kernel/time/timer.c | 2 +-
kernel/time/timer_migration.c | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)