All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Marquardt <davemarq@linux.ibm.com>
To: sashiko-reviews@lists.linux.dev
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH v19 01/13] scsi: ibmvfc: fix IRQ leak and guard deregister on channel reg failure
Date: Mon, 30 Nov 2026 14:15:03 -0600	[thread overview]
Message-ID: <871p82cbzs.fsf@linux.ibm.com> (raw)
In-Reply-To: <sashiko-outbox-231566@kernel.org>

sashiko-bot@kernel.org writes:

> Thank you for your contribution! Sashiko AI review found 1 potential
> issue to consider:
> - [Low] scsi: ibmvfc: missing Fixes trailer for commit 39e461fddff0
> --
>
> commit c52f4fb1ca94991b548f671385702800578be375
> Author: Dave Marquardt <davemarq@linux.ibm.com>
>
>> scsi: ibmvfc: fix IRQ leak and guard deregister on channel reg failure
>>
>> If request_irq() fails during ibmvfc_register_channel(), the error path
>> disposes of the IRQ mapping via irq_dispose_mapping() but leaves scrq->irq
>> populated with the stale virq number. A subsequent call to
>> ibmvfc_deregister_channel() during teardown or reset cleanup then
>> unconditionally invokes free_irq() and irq_dispose_mapping() on the stale
>> IRQ descriptor, triggering kernel warnings.
>>
>> Fix this by:
>> 1. Explicitly setting scrq->irq to 0 after irq_dispose_mapping() in the
>>    ibmvfc_register_channel() error path.
>> 2. Guarding free_irq() and irq_dispose_mapping() with a check for scrq->irq
>>    in ibmvfc_deregister_channel() so unmapped or unregistered queues are
>>    safely skipped.
>>
>> Signed-off-by: Dave Marquardt <davemarq@linux.ibm.com>
>> Acked-by: Tyrel Datwyler <tyreld@linux.ibm.com>
>
> [Severity: Low]
> Should this include a Fixes: tag for the commit that introduced the
> sub-CRQ IRQ mapping and cleanup paths?
>
>   Fixes: 39e461fddff0 ("scsi: ibmvfc: Map/request irq and register Sub-CRQ interrupt handler")

Yes, this will be added for v20.

-Dave

  reply	other threads:[~2026-11-30 20:15 UTC|newest]

Thread overview: 38+ 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 ` Dave Marquardt
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:16   ` Dave Marquardt
2026-11-24 16:27   ` sashiko-bot
2026-11-30 20:15     ` Dave Marquardt [this message]
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:16   ` Dave Marquardt
2026-11-24 16:27   ` sashiko-bot
2026-11-30 20:22     ` Dave Marquardt
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   ` Dave Marquardt
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:16   ` Dave Marquardt
2026-11-24 16:21   ` sashiko-bot
2026-11-30 20:27     ` Dave Marquardt
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:16   ` Dave Marquardt
2026-11-24 16:27   ` sashiko-bot
2026-11-30 20:31     ` Dave Marquardt
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   ` Dave Marquardt
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   ` Dave Marquardt
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   ` Dave Marquardt
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   ` Dave Marquardt
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   ` Dave Marquardt
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   ` Dave Marquardt
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:16   ` Dave Marquardt
2026-11-24 16:43   ` sashiko-bot
2026-11-30 20:38     ` Dave Marquardt
2026-11-24 16:16 ` [PATCH v19 13/13] scsi: ibmvfc: handle extended FPIN events Dave Marquardt via B4 Relay
2026-11-24 16:16   ` Dave Marquardt

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=871p82cbzs.fsf@linux.ibm.com \
    --to=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 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.