[PATCH 0/2] PM: cpu: Restore the RCU grace period to cpu_pm_unregister_notifier()
From: Bradley Morgan
Date: Thu Aug 13 2026 - 03:43:57 EST
Since commit b2f6662ac08d ("PM: cpu: Make notifier chain use a
raw_spinlock_t") cpu_pm_unregister_notifier() no longer waits for an
RCU grace period, but cpu_pm_notify() still walks the chain with only
rcu_read_lock() held. A driver that frees its notifier block right
after unregistering can race with a concurrent walker.
Patch 1 moves the one caller that unregisters from atomic context out
from under its spinlock, patch 2 restores the grace period.
Bradley Morgan (2):
clocksource/drivers/timer-ti-dm: Unregister CPU PM notifier outside of
the timer lock
PM: cpu: Restore synchronize_rcu() to cpu_pm_unregister_notifier()
drivers/clocksource/timer-ti-dm.c | 9 ++++++---
kernel/cpu_pm.c | 9 ++++++++-
2 files changed, 14 insertions(+), 4 deletions(-)
--
2.47.3