Re: [PATCH] scsi: sg: only check for dxfer_len greater than 256M

2017-07-27 Thread Jason L Tibbitts III
> "MKP" == Martin K Petersen writes: MKP> Applied to 4.13/scsi-fixes. Thanks! My thanks as well to everyone who helped in getting this fixed. - J<

Re: [PATCH] scsi: sg: only check for dxfer_len greater than 256M

2017-07-27 Thread Martin K. Petersen
Johannes, > Don't make any assumptions on the sg_io_hdr_t::dxfer_direction or the > sg_io_hdr_t::dxferp in order to determine if it is a valid > request. The only way we can check for bad requests is by checking if > the length exceeds 256M. Applied to 4.13/scsi-fixes. Thanks! -- Martin K. Pet

Re: [PATCH] scsi: sg: only check for dxfer_len greater than 256M

2017-07-27 Thread Hannes Reinecke
On 07/27/2017 09:11 AM, Johannes Thumshirn wrote: > Don't make any assumptions on the sg_io_hdr_t::dxfer_direction or the > sg_io_hdr_t::dxferp in order to determine if it is a valid request. The > only way we can check for bad requests is by checking if the length exceeds > 256M. > > Signed-off-b

[PATCH] scsi: sg: only check for dxfer_len greater than 256M

2017-07-27 Thread Johannes Thumshirn
Don't make any assumptions on the sg_io_hdr_t::dxfer_direction or the sg_io_hdr_t::dxferp in order to determine if it is a valid request. The only way we can check for bad requests is by checking if the length exceeds 256M. Signed-off-by: Johannes Thumshirn Fixes: 28676d869bbb (scsi: sg: check fo