From: sashiko-bot@kernel.org
To: "Claudiu Beznea" <claudiu.beznea@kernel.org>
Cc: linux-pci@vger.kernel.org, wsa+renesas@sang-engineering.com
Subject: Re: [PATCH 3/6] PCI: rzg3s-host: Create the INTx IRQ domain before setting the chained handlers
Date: Thu, 03 Dec 2026 10:27:08 +0000 [thread overview]
Message-ID: <sashiko-outbox-247573@kernel.org> (raw)
In-Reply-To: <20261203093224.247349-4-claudiu.beznea@kernel.org>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] PCI: rzg3s-host: commit message inaccurately claims NULL pointer
dereference
--
commit 8c172626e9a84925ccbde1ae471b365b192d36ff
Author: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
PCI: rzg3s-host: Create the INTx IRQ domain before setting the chained handlers
This commit moves the INTx IRQ domain creation ahead of installing the
chained INTx handlers in rzg3s_pcie_init_irqdomain().
> rzg3s_pcie_init_irqdomain() installs the chained INTx handlers before
> creating the INTx IRQ domain. Since irq_set_chained_handler_and_data()
> also enables the interrupt, an INTx interrupt arriving in between is
> handled by rzg3s_pcie_intx_irq_handler() while host->intx_domain is
> still NULL, which could lead to a NULL pointer dereference. This was
> identified by code inspection.
[Severity: Low]
Is the commit message accurate about a NULL pointer dereference here?
rzg3s_pcie_intx_irq_handler() only passes host->intx_domain to
generic_handle_domain_irq(). In that path, __irq_resolve_mapping() falls
back to irq_default_domain when domain is NULL, and handle_irq_desc()
returns -EINVAL if no irq_desc is found.
So before this patch, an early INTx interrupt either fails with -EINVAL or
gets dispatched through an unrelated irq_default_domain, rather than
triggering a NULL pointer dereference.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203093224.247349-1-claudiu.beznea@kernel.org?part=3
next prev parent reply other threads:[~2026-12-03 10:27 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 9:32 [PATCH 0/6] PCI: rzg3s-host: Fixes Claudiu Beznea
2026-12-03 9:32 ` [PATCH 1/6] PCI: rzg3s-host: Follow hardware manual clock/reset initialization order Claudiu Beznea
2026-12-03 9:51 ` sashiko-bot
2026-12-03 9:32 ` [PATCH 2/6] PCI: rzg3s-host: Fix runtime PM handling in the NOIRQ suspend/resume phase Claudiu Beznea
2026-12-03 10:10 ` sashiko-bot
2026-12-03 9:32 ` [PATCH 3/6] PCI: rzg3s-host: Create the INTx IRQ domain before setting the chained handlers Claudiu Beznea
2026-12-03 10:27 ` sashiko-bot [this message]
2026-12-03 9:32 ` [PATCH 4/6] PCI: rzg3s-host: Initialize the IRQ domains after the IRQs are masked Claudiu Beznea
2026-12-03 10:47 ` sashiko-bot
2026-12-03 9:32 ` [PATCH 5/6] PCI: rzg3s-host: Drop read-modify-write approach for the R/W1C registers Claudiu Beznea
2026-12-03 10:57 ` sashiko-bot
2026-12-03 9:32 ` [PATCH 6/6] PCI: rzg3s-host: Fix NVMe resume errors after s2idle Claudiu Beznea
2026-12-03 9:44 ` Wolfram Sang
2026-12-03 9:55 ` Claudiu Beznea
2026-12-03 10:32 ` Wolfram Sang
2026-12-03 11:11 ` sashiko-bot
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-247573@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=claudiu.beznea@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=wsa+renesas@sang-engineering.com \
/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.