diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2017-03-17 08:47:14 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-04-07 17:07:14 -0400 |
commit | a00a7862513089f17209b732f230922f1942e0b9 (patch) | |
tree | 29baba18a5643a8a3eae10a6e4db79e4642c4112 /init | |
parent | 6780414519f91c2a84da9baa963a940ac916f803 (diff) | |
download | talos-obmc-linux-a00a7862513089f17209b732f230922f1942e0b9.tar.gz talos-obmc-linux-a00a7862513089f17209b732f230922f1942e0b9.zip |
scsi: sr: Sanity check returned mode data
Kefeng Wang discovered that old versions of the QEMU CD driver would
return mangled mode data causing us to walk off the end of the buffer in
an attempt to parse it. Sanity check the returned mode sense data.
Cc: <stable@vger.kernel.org>
Reported-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Tested-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions