Messages in this thread | | | From | "Martin K. Petersen" <> | Subject | Re: [PATCHv2] scsi: Fix get_user() in call sg_scsi_ioctl() | Date | Thu, 1 Dec 2022 03:45:20 +0000 |
| |
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
| |