Re: [PATCH] scsi: megaraid_sas: fix a missing-check bug

2018-10-16 Thread Martin K. Petersen
Wenwen, > This patch enforces a check on the two kernel variables 'local_sense_off' > and 'user_sense_off' to make sure they are the same after the copy. In case > they are not, an error code EINVAL will be returned. Applied to 4.20/scsi-queue, thank you! -- Martin K. Petersen Oracle Lin

Re: [PATCH] scsi: megaraid_sas: fix a missing-check bug

2018-10-16 Thread Sumit Saxena
On Sun, Oct 7, 2018 at 12:04 AM Wenwen Wang wrote: > > In megasas_mgmt_compat_ioctl_fw(), to handle the structure > compat_megasas_iocpacket 'cioc', a user-space structure megasas_iocpacket > 'ioc' is allocated before megasas_mgmt_ioctl_fw() is invoked to handle the > packet. Since the two data st

Re: [PATCH] scsi: megaraid_sas: fix a missing-check bug

2018-10-15 Thread Martin K. Petersen
Wenwen, > In megasas_mgmt_compat_ioctl_fw(), to handle the structure > compat_megasas_iocpacket 'cioc', a user-space structure megasas_iocpacket > 'ioc' is allocated before megasas_mgmt_ioctl_fw() is invoked to handle the > packet. Since the two data structures have different fields, the data is