summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe2019-08-07 20:23:57 +0200
committerJens Axboe2019-08-07 20:23:57 +0200
commit752ead44491e8c91e14d7079625c5916b30921c5 (patch)
tree35e8ce8c5b731a922a53b6d45cc48804f0e5af11 /block
parentlibata: have ata_scsi_rw_xlat() fail invalid passthrough requests (diff)
downloadkernel-qcow2-linux-752ead44491e8c91e14d7079625c5916b30921c5.tar.gz
kernel-qcow2-linux-752ead44491e8c91e14d7079625c5916b30921c5.tar.xz
kernel-qcow2-linux-752ead44491e8c91e14d7079625c5916b30921c5.zip
libata: add SG safety checks in SFF pio transfers
Abort processing of a command if we run out of mapped data in the SG list. This should never happen, but a previous bug caused it to be possible. Play it safe and attempt to abort nicely if we don't have more SG segments left. Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions