[PATCH v5 0/3] coresight: Fix possible deadlock in coresight_panic_cb

From: Sean Anderson

Date: Thu Sep 25 2025 - 11:10:31 EST


This time with the notifier in csdev.

Changes in v5:
- Split reordering of coresight_device_release into a separate patch
- Check csdev mode before calling sync()

Changes in v4:
- Fix fwnode leak in coresight_register error path
- Move the panic notifier into csdev and restore the panic sync API

Changes in v3:
- Rewrite patch to remove the panic sync API entirely

Changes in v2:
- Add a comment describing csdev_lock/list
- Consolidate list removal in coresight_device_release

Sean Anderson (3):
coresight: Fix fwnode leak in coresight_register error path
coresight: Reorder coresight_device_release to match
coresight_register
coresight: Fix possible deadlock in coresight_panic_cb

drivers/hwtracing/coresight/coresight-core.c | 71 ++++++++------------
include/linux/coresight.h | 2 +
2 files changed, 30 insertions(+), 43 deletions(-)

--
2.35.1.1320.gc452695387.dirty