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