[PATCH 0/9] scsi: fix missing locking and dump length checks in several drivers
From: Praneeth Balasubramanian
Date: Sat Dec 05 2026 - 01:33:46 EST
These 9 patches fix bugs that an LLM-based audit found. The audit checks
code against the rules stated in kernel comments, such as "the caller
must hold this lock" or "drop the reference when done". Each changelog
explains the rule and the path that breaks it.
The patches are independent of each other, and each one can be applied
on its own. They are against next-20261204 and also apply to mainline
(007722b8211f), except patch 3, which needs linux-next.
None of them was runtime-tested. There is no reproducer, and I do not
have the hardware. Each one builds without new warnings with W=1, and
checkpatch.pl is clean. Details are below the --- of each patch.
Tools: GLM-5.3 drafted the fixes and changelogs. Claude Opus 5.5 checked
each one against the source and rewrote parts where needed. I reviewed
every patch.
Praneeth Balasubramanian (9):
scsi: bnx2i: Hold the session back_lock around iscsi_itt_to_task()
scsi: mpt3sas: do not keep an enclosure pointer across a host reset
scsi: pmcraid: Take host_lock around scsi_report_bus_reset()
scsi: ipr: Skip dump entries whose length is not a 4 byte multiple
scsi: arm: Fix eh_abort race against the interrupt handler
scsi: csiostor: hold hw lock when issuing port stats mailbox command
scsi: fnic: Hold fnic_lock for the oxid calls in the FIP timer work
scsi: qla2xxx: Hold qp_lock when completing command in abort timeout
scsi: target: core: Fix PRgeneration race in REGISTER AND MOVE
drivers/scsi/arm/fas216.c | 11 ++++++--
drivers/scsi/bnx2i/bnx2i_hwi.c | 11 ++++----
drivers/scsi/csiostor/csio_lnode.c | 3 +++
drivers/scsi/fnic/fip.c | 7 +++++
drivers/scsi/ipr.c | 3 ++-
drivers/scsi/mpt3sas/mpt3sas_scsih.c | 38 +++++++++++++++++-----------
drivers/scsi/pmcraid.c | 13 +++++++++-
drivers/scsi/qla2xxx/qla_init.c | 6 +++--
drivers/target/target_core_pr.c | 9 +------
9 files changed, 66 insertions(+), 35 deletions(-)
base-commit: 29beb21c21ada7207692b2d69fc58dcd15dab6e9
--
2.25.1