mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH RFC] Fix data races in timers
@ 2026-09-19  0:24 Paul E. McKenney
  2026-09-19  0:25 ` [PATCH 1/2] timers: Mark updates to hlist_node ->pprev field Paul E. McKenney
  2026-09-19  0:25 ` [PATCH 2/2] timers/migration: Mark updates to tmigr_event ->field Paul E. McKenney
  0 siblings, 2 replies; 3+ messages in thread
From: Paul E. McKenney @ 2026-09-19  0:24 UTC (permalink / raw)
  To: Anna-Maria Behnsen, Frederic Weisbecker, Thomas Gleixner,
	Andy Shevchenko
  Cc: linux-kernel, kernel-team

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(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-19  0:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-19  0:24 [PATCH RFC] Fix data races in timers Paul E. McKenney
2026-09-19  0:25 ` [PATCH 1/2] timers: Mark updates to hlist_node ->pprev field Paul E. McKenney
2026-09-19  0:25 ` [PATCH 2/2] timers/migration: Mark updates to tmigr_event ->field Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®