From: Damien Le Moal <dlemoal@kernel.org>
To: Mats Topstad / Intility AS <Mats.topstad@intility.no>,
Daniel Fernau <mail@danielfernau.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
Thorsten Leemhuis <regressions@leemhuis.info>,
"me@magik.net" <me@magik.net>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
Kashyap Desai <kashyap.desai@broadcom.com>,
Sumit Saxena <sumit.saxena@broadcom.com>,
Shivasharan S <shivasharan.srikanteshwara@broadcom.com>,
Chandrakanth patil <chandrakanth.patil@broadcom.com>,
"megaraidlinux.pdl@broadcom.com" <megaraidlinux.pdl@broadcom.com>,
"regressions@lists.linux.dev" <regressions@lists.linux.dev>
Subject: Re: [PATCH] scsi: megaraid_sas: fix PRP list out-of-bounds write
Date: Wed, 29 Jul 2026 11:34:10 +0900 [thread overview]
Message-ID: <10ff4e41-c7d8-4249-91e8-198fa45a8d0c@kernel.org> (raw)
In-Reply-To: <9900ABF6-01C5-4B9B-BEF3-BAB5A18C3F54@intility.no>
On 7/28/26 22:43, Mats Topstad / Intility AS wrote:
> Hi all,
>
> Adding a data point from an HPE ProLiant DL360 Gen11 with the MR408i-o Gen11
> controller (megaraid_sas), 960 GB SAS SSDs presented as sd*, running kernel
> 6.18.32 (Talos Linux v1.12.8). Without a cap the node panics within seconds of
> sustained block I/O to the controller, with the same megasas_make_prp_nvme
> signature discussed in this thread.
>
> Capping max_sectors_kb=1280 on the sd* devices resolves it on this controller
> by itself. I pushed roughly 85 GB of dd bs=4M oflag=direct through it, so every
> request is split at the 1280 KB boundary, with zero panics, where the uncapped
> case dies almost immediately. On the MR416i-o you found the cap necessary but
> not sufficient because of a second problem in the SG advance path. I did not
> reach that second failure on the MR408i-o; the cap alone was enough here.
>
> Both of our worker nodes have now run on kernel 6.18 throughout this testing
> with the cap applied by a udev rule at device add:
>
> ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="sd[a-z]", DRIVERS=="megaraid_sas", ATTR{queue/max_sectors_kb}="1280"
>
> This lines up with Martin's suggestion to cap max_hw_sectors on the driver side
> for NVMe behind MR. If a driver side patch would help, I am happy to build and
> test it on this exact hardware and report back, and I can provide a full dmesg
> or a serial panic capture from the uncapped case if that is useful.
This looks about the same problem as what commit 04631f55afc5 ("scsi: mpt3sas:
Limit NVMe request size to 2 MiB") fixes.
I strongly suspect that all Broadcom drivers (mpi3mr and megaraid) all need a
similar fix.
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2026-07-29 2:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-27 3:20 [PATCH] scsi: megaraid_sas: fix PRP list out-of-bounds write me
2026-04-01 7:02 ` Thorsten Leemhuis
2026-04-21 2:47 ` Martin K. Petersen
2026-06-30 10:26 ` Thorsten Leemhuis
2026-07-01 11:09 ` Mira Limbeck
2026-07-01 12:24 ` Thorsten Leemhuis
2026-07-01 12:48 ` Mira Limbeck
2026-07-13 2:16 ` Martin K. Petersen
2026-07-13 21:07 ` Daniel Fernau
2026-07-28 13:43 ` Mats Topstad / Intility AS
2026-07-29 2:34 ` Damien Le Moal [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-04-02 13:25 Daniel Fernau
2026-06-24 7:17 Mats Topstad / Intility AS
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=10ff4e41-c7d8-4249-91e8-198fa45a8d0c@kernel.org \
--to=dlemoal@kernel.org \
--cc=Mats.topstad@intility.no \
--cc=chandrakanth.patil@broadcom.com \
--cc=kashyap.desai@broadcom.com \
--cc=linux-scsi@vger.kernel.org \
--cc=mail@danielfernau.com \
--cc=martin.petersen@oracle.com \
--cc=me@magik.net \
--cc=megaraidlinux.pdl@broadcom.com \
--cc=regressions@leemhuis.info \
--cc=regressions@lists.linux.dev \
--cc=shivasharan.srikanteshwara@broadcom.com \
--cc=sumit.saxena@broadcom.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox