From: sashiko-bot@kernel.org
To: "Mohamad Raizudeen" <raizudeen.kerneldev@gmail.com>
Cc: linux-pci@vger.kernel.org
Subject: Re: [PATCH] PCI: quirks: Fix out-of-bounds MMIO read in mellanox_check_broken_intx_masking()
Date: Thu, 27 Aug 2026 07:19:40 +0000 [thread overview]
Message-ID: <20260827071940.B7CC01F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260827071439.4480-1-raizudeen.kerneldev@gmail.com>
> The mellanox_check_broken_intx_masking() function maps 4 bytes of MMIO
> memory using ioremap(), but then reads two 32 bit values using
> ioread32be(fw_ver) ad ioread32be(fw_ver + 1).
>
> Because fw_ver is a pointer to a 32 bit type, fw_ver + 1 advances the
> address by 4 bytes. Reading 4 bytes at offset 4 goes past the mapped 4
> byte boundary. This out-of-bounds read can cause a page fault or kernel
> panic on architectures that enforce strict MMIO boundaries.
>
> Fix this by increasing the mapping size to 8 bytes to safely cover both
> 32 bits.
>
> Fixes: 1600f62534b7 ("PCI: Support INTx masking on ConnectX-4 with firmware x.14.1100+")
> Signed-off-by: Mohamad Raizudeen <raizudeen.kerneldev@gmail.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260827071439.4480-1-raizudeen.kerneldev@gmail.com?part=1
prev parent reply other threads:[~2026-08-27 7:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 7:14 [PATCH] PCI: quirks: Fix out-of-bounds MMIO read in mellanox_check_broken_intx_masking() Mohamad Raizudeen
2026-08-27 7:19 ` sashiko-bot [this message]
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=20260827071940.B7CC01F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=raizudeen.kerneldev@gmail.com \
--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