Re: [PATCH] scsi: megaraid_sas: fix PRP list out-of-bounds write

Mira Limbeck <[email protected]> Wed, 1 Jul 2026 13:09:56 +0200
Newsgroups dev.linux.lists.regressions,org.kernel.vger.linux-scsi
Message-ID <[email protected]>
Hi,

We've seen some similar looking logs, but since they didn't mention
`prp` at all, we haven't responded here before. Instead we sent a mail
to the linux-scsi list [0], but got no response so far.

In our case the issue was first introduced by commit:
9b8b84879d4a ("block: Increase BLK_DEF_MAX_SECTORS_CAP")

This is similar to an issue we previously reported with the mpt3sas
driver [1].

At least for our tests and one of our users we can say with certainty
that reducing the queue sectors back to the previous value fixed the
issue. In our tests this was done manually, and for one of our users
with their root on the disks, it was handled via udev rules.

echo 1280 > /sys/block/<dev>/queue/max_sectors_kb



[0]
https://lore.kernel.org/all/[email protected]/
[1]
https://lore.kernel.org/all/[email protected]/