[PATCH V3] coresight: trbe: Fix TRBE potential sleep in atomic context

Suzuki K Poulose suzuki.poulose at arm.com
Fri Aug 18 09:30:09 PDT 2023


On Fri, 18 Aug 2023 16:40:52 +0800, Junhao He wrote:
> smp_call_function_single() will allocate an IPI interrupt vector to
> the target processor and send a function call request to the interrupt
> vector. After the target processor receives the IPI interrupt, it will
> execute arm_trbe_remove_coresight_cpu() call request in the interrupt
> handler.
> 
> According to the device_unregister() stack information, if other process
> is useing the device, the down_write() may sleep, and trigger deadlocks
> or unexpected errors.
> 
> [...]

Applied, thanks!

[1/1] coresight: trbe: Fix TRBE potential sleep in atomic context
      https://git.kernel.org/coresight/c/c0a232f1e19e3

Best regards,
-- 
Suzuki K Poulose <suzuki.poulose at arm.com>



More information about the linux-arm-kernel mailing list