[PATCH v2 0/9] coresight: Fix assorted bugs reported by Sashiko
From: James Clark
Date: Wed Nov 04 2026 - 10:43:20 EST
Small fixes for bugs in the CoreSight drivers that were found by
Sashiko. Mostly reference and resource leaks on error paths, plus a
deadlock, a missing lock, and a sysfs store that should return -EBUSY
while a sysfs session is enabled.
Assisted by Claude Opus 5.5 and Sashiko
Signed-off-by: James Clark <james.clark@xxxxxxxxxx>
---
Changes in v2:
- Cherry pick "coresight: etm-perf: Serialize AUX topology access"
into this set so that it now has no dependencies.
- Drop "coresight: cpu-debug: Fix PM usage counter leak in
debug_enable_func()" which is fixed more generally by
https://lore.kernel.org/linux-arm-kernel/20260911-b4-coresight-runtime-pm-failures-v1-1-acdf49756e11@xxxxxxxxxxxxxxxx/#r
- Link to v1: https://patch.msgid.link/20261027-james-cs-sashiko-easy-fixes-1-v1-0-db43c4668644@xxxxxxxxxx
---
James Clark (9):
coresight: etm-perf: Serialize AUX topology access
coresight: etm4x: Remove perf symlink if config registration fails
coresight: etm4x: Fix truncation of nr_ext_inp
coresight: etm-perf: Fix sink device reference leak in etm_setup_aux()
coresight: syscfg: Take csdev lock when removing owned features
coresight: syscfg: Fix deadlock in cscfg_create_device() error path
coresight: Fix resource leaks on coresight_build_path() errors
coresight: etm3x: Don't ignore etm_parse_event_config() errors
coresight: etm3x: Prohibit modifying seq_curr_state while session is enabled
drivers/hwtracing/coresight/coresight-core.c | 26 +++++++++++++++++-----
drivers/hwtracing/coresight/coresight-etm-perf.c | 15 +++++++++----
drivers/hwtracing/coresight/coresight-etm3x-core.c | 6 ++++-
.../hwtracing/coresight/coresight-etm3x-sysfs.c | 5 +++++
drivers/hwtracing/coresight/coresight-etm4x-core.c | 1 +
drivers/hwtracing/coresight/coresight-etm4x.h | 2 +-
drivers/hwtracing/coresight/coresight-priv.h | 1 +
drivers/hwtracing/coresight/coresight-syscfg.c | 8 ++++++-
drivers/hwtracing/coresight/coresight-sysfs.c | 4 ++--
9 files changed, 53 insertions(+), 15 deletions(-)
---
base-commit: 343cfcbb3ecfdb80aa576a428cfa3b65ad783842
change-id: 20261027-james-cs-sashiko-easy-fixes-1-692d80016a89
Best regards,
--
James Clark <james.clark@xxxxxxxxxx>