From: Lukas Wunner <lukas@wunner.de>
To: sashiko-reviews@lists.linux.dev
Cc: linux-pci@vger.kernel.org
Subject: Re: [PATCH v2 2/2] PCI/AER: Check validity of Error Source ID register
Date: Fri, 6 Nov 2026 18:25:28 +0100 [thread overview]
Message-ID: <au4NiO-rglobvYxo@wunner.de> (raw)
In-Reply-To: <sashiko-outbox-201907@kernel.org>
On Fri, Nov 06, 2026 at 05:15:07PM +0000, sashiko-bot@kernel.org wrote:
> > +++ b/drivers/pci/pcie/aer.c
> > - /*
> > - * When bus ID is equal to 0, it might be a bad ID
> > - * reported by Root Port.
> > - */
> > - if ((PCI_BUS_NUM(e_info->id) != 0) &&
> > + /* Some Root Ports report an invalid Error Source ID */
> > + if (e_info->id_valid &&
> > !(dev->bus->bus_flags & PCI_BUS_FLAGS_NO_AERSID)) {
> > /* Device ID match? */
> > if (e_info->id == pci_dev_id(dev))
>
> [Severity: Medium]
> As reported by Ilpo Järvinen on v1 [1]
Hallucination, this was reported by sashiko itself and Ilpo merely confirmed
sashiko's finding.
> can treating pci_dev_id(root) == id
> as unconditionally valid cause a false-positive match on the Root Port and
> skip searching the subordinate hierarchy when a Root Port at 00:00.0 (such
> as on DesignWare, Cadence, or Aardvark SoC host bridges) reports 0x0000 for
> a downstream device error, or when a Root Port at 00:xx.y loses the bus
> number of a downstream error source at bus:xx.y?
The commit message addresses this concern, it seems sashiko overlooked that
paragraph.
Thanks,
Lukas
next prev parent reply other threads:[~2026-11-06 17:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 16:38 [PATCH v2 0/2] PCI/AER: Improve Error Source handling Lukas Wunner
2026-11-06 16:38 ` [PATCH v2 1/2] PCI/AER: Avoid NULL pointer deref on search for Error Source Lukas Wunner
2026-11-06 17:01 ` sashiko-bot
2026-11-06 16:38 ` [PATCH v2 2/2] PCI/AER: Check validity of Error Source ID register Lukas Wunner
2026-11-06 17:07 ` Ilpo Järvinen
2026-11-06 17:15 ` sashiko-bot
2026-11-06 17:25 ` Lukas Wunner [this message]
2026-11-06 17:37 ` Ilpo Järvinen
2026-11-09 23:36 ` [PATCH v2 0/2] PCI/AER: Improve Error Source handling Bjorn Helgaas
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=au4NiO-rglobvYxo@wunner.de \
--to=lukas@wunner.de \
--cc=linux-pci@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