Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Dave Marquardt" <davemarq@linux.ibm.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH v19 04/13] scsi: ibmvfc: fix stale rc and IRQ mapping leak in ibmvfc_register_channel()
Date: Tue, 24 Nov 2026 16:21:53 +0000	[thread overview]
Message-ID: <sashiko-outbox-231546@kernel.org> (raw)
In-Reply-To: <20261124-ibmvfc-fpin-support-v19-4-2aaffe5fe7d2@linux.ibm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] scsi: ibmvfc: missing Fixes: trailer for
  ibmvfc_register_channel() bug fix
--

commit 181fd7f6a2341ee658bfbec7bffd68ba8ad3084c
Author: Dave Marquardt <davemarq@linux.ibm.com>

> scsi: ibmvfc: fix stale rc and IRQ mapping leak in ibmvfc_register_channel()
>
> The default: case of the protocol switch in ibmvfc_register_channel()
> jumps to irq_failed without setting rc, leaving a stale value from
> h_reg_sub_crq() (0 or H_CLOSED) that the caller sees as success even
> though the sub-CRQ was just freed. The mapping created by
> irq_create_mapping() is also never disposed, leaving scrq->irq non-zero.
>
> Set rc = -EINVAL in the default: case. Introduce an irq_mapping_failed:
> label that calls irq_dispose_mapping() and clears scrq->irq before
> falling through to irq_failed, and jump to it from both the default:
> case and the request_irq() failure path, eliminating the duplicate
> inline dispose/clear in the latter.
>
> Signed-off-by: Dave Marquardt <davemarq@linux.ibm.com>

[Severity: Low]
Since this fixes the default branch of the protocol switch introduced in
eb85f1d76aac ("scsi: ibmvfc: Add protocol field to ibmvfc_channels"),
should this include:

  Fixes: eb85f1d76aac ("scsi: ibmvfc: Add protocol field to ibmvfc_channels")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-ibmvfc-fpin-support-v19-0-2aaffe5fe7d2@linux.ibm.com?part=4

  reply	other threads:[~2026-11-24 16:21 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 16:16 [PATCH v19 00/13] scsi: ibmvfc: make ibmvfc support FPIN messages Dave Marquardt via B4 Relay
2026-11-24 16:16 ` [PATCH v19 01/13] scsi: ibmvfc: fix IRQ leak and guard deregister on channel reg failure Dave Marquardt via B4 Relay
2026-11-24 16:27   ` sashiko-bot
2026-11-24 16:16 ` [PATCH v19 02/13] scsi: ibmvfc: fix potential clobbering of rc after failed irq setup Dave Marquardt via B4 Relay
2026-11-24 16:27   ` sashiko-bot
2026-11-24 16:16 ` [PATCH v19 03/13] scsi: ibmvfc: fix potential NULL pointer dereference on failed queue allocation Dave Marquardt via B4 Relay
2026-11-24 16:16 ` [PATCH v19 04/13] scsi: ibmvfc: fix stale rc and IRQ mapping leak in ibmvfc_register_channel() Dave Marquardt via B4 Relay
2026-11-24 16:21   ` sashiko-bot [this message]
2026-11-24 16:16 ` [PATCH v19 05/13] scsi: ibmvfc: fix resource leaks on partial queue allocation failure Dave Marquardt via B4 Relay
2026-11-24 16:27   ` sashiko-bot
2026-11-24 16:16 ` [PATCH v19 06/13] scsi: ibmvfc: add basic FPIN support Dave Marquardt via B4 Relay
2026-11-24 16:16 ` [PATCH v19 07/13] scsi: ibmvfc: add NOOP command support Dave Marquardt via B4 Relay
2026-11-24 16:16 ` [PATCH v19 08/13] scsi: ibmvfc: add FPIN extended flag and async sub-CRQ queue handle Dave Marquardt via B4 Relay
2026-11-24 16:16 ` [PATCH v19 09/13] scsi: ibmvfc: extend async event handlers for async sub-CRQ events Dave Marquardt via B4 Relay
2026-11-24 16:16 ` [PATCH v19 10/13] scsi: ibmvfc: add interrupt routine for asynchronous sub CRQ Dave Marquardt via B4 Relay
2026-11-24 16:16 ` [PATCH v19 11/13] scsi: ibmvfc: extend channel registration for async sub-CRQ Dave Marquardt via B4 Relay
2026-11-24 16:16 ` [PATCH v19 12/13] scsi: ibmvfc: register and use asynchronous sub CRQ for events Dave Marquardt via B4 Relay
2026-11-24 16:43   ` sashiko-bot
2026-11-24 16:16 ` [PATCH v19 13/13] scsi: ibmvfc: handle extended FPIN events Dave Marquardt via B4 Relay

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=sashiko-outbox-231546@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=davemarq@linux.ibm.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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