All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] scsi: fix missing locking and dump length checks in several drivers
@ 2026-12-05  6:32 Praneeth Balasubramanian
  2026-12-05  6:32 ` [PATCH 1/9] scsi: bnx2i: Hold the session back_lock around iscsi_itt_to_task() Praneeth Balasubramanian
                   ` (8 more replies)
  0 siblings, 9 replies; 19+ messages in thread
From: Praneeth Balasubramanian @ 2026-12-05  6:32 UTC (permalink / raw)
  To: Nilesh Javali, Manish Rangankar, GR-ETH-Storage-Upstream,
	James E.J. Bottomley, Martin K. Petersen, Sathya Prakash,
	Sreekanth Reddy, Suganath Prabu Subramani, Ranjan Kumar,
	Brian King, Russell King, Satish Kharat, Sesidhar Baddela,
	Karan Tilak Kumar, GR-QLogic-Storage-Upstream
  Cc: Praneeth Balasubramanian, linux-scsi, linux-kernel,
	MPT-FusionLinux.pdl, linux-arm-kernel, target-devel

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


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2026-12-05  8:20 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05  6:32 [PATCH 0/9] scsi: fix missing locking and dump length checks in several drivers Praneeth Balasubramanian
2026-12-05  6:32 ` [PATCH 1/9] scsi: bnx2i: Hold the session back_lock around iscsi_itt_to_task() Praneeth Balasubramanian
2026-12-05  6:32 ` [PATCH 2/9] scsi: mpt3sas: do not keep an enclosure pointer across a host reset Praneeth Balasubramanian
2026-12-05  6:46   ` sashiko-bot
2026-12-05  6:32 ` [PATCH 3/9] scsi: pmcraid: Take host_lock around scsi_report_bus_reset() Praneeth Balasubramanian
2026-12-05  6:43   ` sashiko-bot
2026-12-05  8:20     ` Praneeth Balasubramanian
2026-12-05  6:32 ` [PATCH 4/9] scsi: ipr: Skip dump entries whose length is not a 4 byte multiple Praneeth Balasubramanian
2026-12-05  6:32 ` [PATCH 5/9] scsi: arm: Fix eh_abort race against the interrupt handler Praneeth Balasubramanian
2026-12-05  6:50   ` sashiko-bot
2026-12-05  8:20     ` Praneeth Balasubramanian
2026-12-05  6:32 ` [PATCH 6/9] scsi: csiostor: hold hw lock when issuing port stats mailbox command Praneeth Balasubramanian
2026-12-05  6:47   ` sashiko-bot
2026-12-05  8:20     ` Praneeth Balasubramanian
2026-12-05  6:32 ` [PATCH 7/9] scsi: fnic: Hold fnic_lock for the oxid calls in the FIP timer work Praneeth Balasubramanian
2026-12-05  6:32 ` [PATCH 8/9] scsi: qla2xxx: Hold qp_lock when completing command in abort timeout Praneeth Balasubramanian
2026-12-05  6:58   ` sashiko-bot
2026-12-05  6:32 ` [PATCH 9/9] scsi: target: core: Fix PRgeneration race in REGISTER AND MOVE Praneeth Balasubramanian
2026-12-05  6:56   ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.