Re: [PATCHv2] scsi: Fix get_user() in call sg_scsi_ioctl()

From: Martin K. Petersen
Date: Wed Nov 30 2022 - 22:47:18 EST


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