[PATCH 1/2] firmware: arm_scmi: Fix deadlock between reboot notifier and forceful work

Chengyu Liu lui2012qwq at gmail.com
Tue Nov 17 09:35:04 PST 2026


Hi,

I think the current v2 may have reintroduced the second deadlock
described in my original commit message.

scmi_forceful_work_func() still calls unregister_reboot_notifier()
while holding sc->state_mtx. Could you also check the potential lock
inversion between state_mtx and reboot_notifier_list.rwsem?

The reboot path holds the rwsem read lock while executing the notifier
callback, which then waits for state_mtx. Meanwhile, the worker holds
state_mtx while trying to unregister the notifier, which requires the
rwsem write lock.

Thanks,
Chengyu



More information about the linux-arm-kernel mailing list