diff options
author | Johannes Thumshirn <jthumshirn@suse.de> | 2017-07-27 10:11:26 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-07-27 15:50:11 +0300 |
commit | f930c7043663188429cd9b254e9d761edfc101ce (patch) | |
tree | 3c4507bbc771549fc9bb4a35a4855d1139c0bce3 /samples | |
parent | e6fd916a625110d75bd4d15b8488df44cf41c9fc (diff) | |
download | linux-f930c7043663188429cd9b254e9d761edfc101ce.tar.xz |
scsi: sg: only check for dxfer_len greater than 256M
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 <jthumshirn@suse.de>
Fixes: 28676d869bbb (scsi: sg: check for valid direction before starting the
request)
Reported-by: Jason L Tibbitts III <tibbs@math.uh.edu>
Tested-by: Jason L Tibbitts III <tibbs@math.uh.edu>
Suggested-by: Doug Gilbert <dgilbert@interlog.com>
Cc: Doug Gilbert <dgilbert@interlog.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions