[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1563f090-2217-959e-cc80-30a7a804c567@linaro.org>
Date: Mon, 15 Nov 2021 10:32:40 -0800
From: Tadeusz Struk <tadeusz.struk@...aro.org>
To: Bart Van Assche <bvanassche@....org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org
Cc: stable@...r.kernel.org, Christoph Hellwig <hch@....de>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org,
syzbot+5516b30f5401d4dcbcae@...kaller.appspotmail.com
Subject: Re: [PATCH 5.10 011/575] scsi: core: Remove command size deduction
from scsi_setup_scsi_cmnd()
On 11/15/21 09:58, Bart Van Assche wrote:
> Hi Greg,
>
> Thanks for having queued this patch for the 5.10 stable branch.
>
> Do you plan to also include commit 20aaef52eb08 ("scsi: scsi_ioctl: Validate
> command size")? That patch prevents that the bug in the commit mentioned above
> can be triggered.
>
> Thanks,
Hi Brad,
The "scsi_ioctl: Validate command size" patch is not needed for either 5.10 nor
5.14 as the it is set directly from COMMAND_SIZE(opcode). See:
https://elixir.bootlin.com/linux/v5.14.18/source/block/scsi_ioctl.c#L445
https://elixir.bootlin.com/linux/v5.10.79/source/block/scsi_ioctl.c#L447
--
Thanks,
Tadeusz
Powered by blists - more mailing lists