[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8135af96-528a-4aca-8e11-7cdf038f1454@gmail.com>
Date: Mon, 6 Oct 2025 21:42:04 -0400
From: David Hunter <david.hunter.linux@...il.com>
To: Kshitij Paranjape <kshitijvparanjape@...il.com>,
"Martin K . Petersen" <martin.petersen@...cle.com>
Cc: Doug Gilbert <dgilbert@...erlog.com>,
"James E . J . Bottomley" <James.Bottomley@...senPartnership.com>,
skhan@...uxfoundation.org, khalid@...nel.org, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-kernel-mentees@...ts.linux.dev,
stable@...r.kernel.org, syzbot+270f1c719ee7baab9941@...kaller.appspotmail.com
Subject: Re: [PATCH] scsi: fix shift out-of-bounds in sg_build_indirect The
num variable is set to 0. The variable num gets its value from
scatter_elem_sz. However the minimum value of scatter_elem_sz is PAGE_SHIFT.
So setting num to PAGE_SIZE when num < PAGE_SIZE.
On 10/6/25 13:46, Kshitij Paranjape wrote:
> Cc: <stable@...r.kernel.org>
> Reported-by: syzbot+270f1c719ee7baab9941@...kaller.appspotmail.com
> Closes: https://syzkaller.appspot.com/bug?extid=270f1c719ee7baab9941
> Signed-off-by: Kshitij Paranjape <kshitijvparanjape@...il.com>
Hey Kshitij,
the formatting didn't quite work out the way you intended. For the next
version, please try to send it to Shuah and I first.
Powered by blists - more mailing lists