From: Praneeth Balasubramanian <praneethb2002@gmail.com>
To: Nilesh Javali <njavali@marvell.com>,
Manish Rangankar <mrangankar@marvell.com>,
GR-ETH-Storage-Upstream@marvell.com,
"James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
"Martin K. Petersen" <mkp@kernel.org>,
Sathya Prakash <sathya.prakash@broadcom.com>,
Sreekanth Reddy <sreekanth.reddy@broadcom.com>,
Suganath Prabu Subramani <suganath-prabu.subramani@broadcom.com>,
Ranjan Kumar <ranjan.kumar@broadcom.com>,
Brian King <brking@us.ibm.com>,
Russell King <linux@armlinux.org.uk>,
Satish Kharat <satishkh@cisco.com>,
Sesidhar Baddela <sebaddel@cisco.com>,
Karan Tilak Kumar <kartilak@cisco.com>,
GR-QLogic-Storage-Upstream@marvell.com
Cc: Praneeth Balasubramanian <praneethb2002@gmail.com>,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
MPT-FusionLinux.pdl@broadcom.com,
linux-arm-kernel@lists.infradead.org,
target-devel@vger.kernel.org
Subject: [PATCH 0/9] scsi: fix missing locking and dump length checks in several drivers
Date: Fri, 4 Dec 2026 22:32:20 -0800 [thread overview]
Message-ID: <20261205063229.2518424-1-praneethb2002@gmail.com> (raw)
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
next reply other threads:[~2026-12-05 6:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 6:32 Praneeth Balasubramanian [this message]
2026-12-05 6:32 ` [PATCH 5/9] scsi: arm: Fix eh_abort race against the interrupt handler Praneeth Balasubramanian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261205063229.2518424-1-praneethb2002@gmail.com \
--to=praneethb2002@gmail.com \
--cc=GR-ETH-Storage-Upstream@marvell.com \
--cc=GR-QLogic-Storage-Upstream@marvell.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=MPT-FusionLinux.pdl@broadcom.com \
--cc=brking@us.ibm.com \
--cc=kartilak@cisco.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mkp@kernel.org \
--cc=mrangankar@marvell.com \
--cc=njavali@marvell.com \
--cc=ranjan.kumar@broadcom.com \
--cc=sathya.prakash@broadcom.com \
--cc=satishkh@cisco.com \
--cc=sebaddel@cisco.com \
--cc=sreekanth.reddy@broadcom.com \
--cc=suganath-prabu.subramani@broadcom.com \
--cc=target-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox