On Fri, 27 Nov 2026 15:34:09 +0530, Vinayak Katoch wrote:
> fastrpc_context_schedule_put_work() guards the once-only schedule_work()
> with fl->lock. That helper is called from fastrpc_rpmsg_callback(), which
> runs in hard-IRQ context on the glink rx interrupt, while every other
> user of fl->lock takes it with a plain spin_lock() in process context
> with interrupts enabled.
> 
> If the glink interrupt fires on a CPU that is already holding fl->lock,
> for example fastrpc_context_put_wq() -> fastrpc_context_free() or
> fastrpc_free_map() running in a kworker on that CPU, the handler spins
> on the lock the interrupted code holds. The holder can never run again,
> so the CPU hangs with interrupts masked, an RCU stall is reported for
> it, and the system is eventually reset by the watchdog. It is easy to
> hit because schedule_work() queues onto the local CPU's worker pool, so
> the worker that takes fl->lock tends to run on the very CPU that
> receives the glink interrupt.
> 
> [...]

Applied, thanks!

[1/1] misc: fastrpc: make put_work scheduling lock-free
      commit: a14e8ddc12f6f7ef91e4a6a7724783d66b7af63a

Best regards,
-- 
Srinivas Kandagatla <[email protected]>

Reply via email to