CVE-2026-143327: regulator: qcom_spmi: don't take a sleeping lock in the SAW IPI
In the Linux kernel, the following vulnerability has been resolved:
regulator: qcomspmi: don't take a sleeping lock in the SAW IPI
The SAW voltage change runs on CPU 0 from an IPI, but it reaches the SAW registers through the syscon regmap, which is protected by a spinlockt. That is a sleeping lock on PREEMPTRT, and lockdep complains as soon as VDDAPCC actually changes voltage:
BUG: Invalid wait context ... regmaplockspinlock+0x18/0x30 regmapread+0x3c/0x78 spmisawsetvdd+0x50/0x1ac flushsmpcallfunctionqueue+0x1ac/0x334
Map the SAW with a regmap of our own that uses a raw spinlock, and fail the probe when that cannot be done instead of carrying an error pointer around as the SAW regmap.
Affected Software
Event History
Frequently Asked Questions
Which systems are affected in practice?
The issue occurs when the qcom_spmi regulator performs SAW voltage changes on a PREEMPT_RT kernel. It is observed when VDD_APCC actually changes voltage.
How can I identify this issue on an affected system?
Lockdep reports an "Invalid wait context" warning during a SAW voltage change. The reported call trace includes regmap_lock_spinlock, regmap_read, spmi_saw_set_vdd, and __flush_smp_call_function_queue.
What does the fix change?
The fix maps SAW through a dedicated regmap protected by a raw spinlock rather than the syscon regmap's spinlock. It also makes driver probing fail if that dedicated SAW regmap cannot be created.