Skip to content

coresight: Fix possible deadlock in coresight_panic_cb

Sean Anderson linux-arm-kernel lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 3 repliesIn review
  2. v42 patches 2 repliesSuperseded
  3. v31 patch 12 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch5 repliesSuperseded
v11 patch1 replySuperseded

Changes in v5 from the cover letter

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

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3coresight: Fix fwnode leak in coresight_register error pathdrivers/hwtracing/coresight/coresight-core.c+1 -11 reply
2/3coresight: Reorder coresight_device_release to match coresight_registerdrivers/hwtracing/coresight/coresight-core.c+1 -11 reply
3/3coresight: Fix possible deadlock in coresight_panic_cbdrivers/hwtracing/coresight/coresight-core.c include/linux/coresight.h+28 -411 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchLeo YanMike Leach
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

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

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(-)
Signature · 1 line
2.35.1.1320.gc452695387.dirty