[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <166986602299.2101055.4152803267481265665.b4-ty@oracle.com>
Date: Thu, 1 Dec 2022 03:45:20 +0000
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>,
linux-scsi@...r.kernel.org, jejb@...ux.ibm.com
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>, x86@...nel.org,
linux-kernel@...r.kernel.org, David.Laight@...LAB.COM,
dave.hansen@...ux.intel.com
Subject: Re: [PATCHv2] scsi: Fix get_user() in call sg_scsi_ioctl()
On Fri, 18 Nov 2022 02:23:04 +0300, Kirill A. Shutemov wrote:
> get_user() expects the pointer to be pointer-to-simple-variable type,
> but sic->data is array of 'unsigned char'. It violates get_user()
> contracts.
>
> Explicitly take pointer to the first element of the array. It matches
> current behaviour.
>
> [...]
Applied to 6.2/scsi-queue, thanks!
[1/1] scsi: Fix get_user() in call sg_scsi_ioctl()
https://git.kernel.org/mkp/scsi/c/4e80eef45ad7
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists