diff options
| author | Christoph Hellwig <[email protected]> | 2015-05-08 16:00:26 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2015-05-13 14:22:12 +0000 |
| commit | 3fd61b209977db8a9fe6c44d5a5a7aee7a255f64 (patch) | |
| tree | 424d48e7b77df6c569e516ca721d739726867434 /net/switchdev/switchdev.c | |
| parent | block: remove export for blk_queue_bio (diff) | |
| download | kernel-3fd61b209977db8a9fe6c44d5a5a7aee7a255f64.tar.gz kernel-3fd61b209977db8a9fe6c44d5a5a7aee7a255f64.zip | |
nvme: fix kernel memory corruption with short INQUIRY buffers
If userspace asks for an INQUIRY buffer smaller than 36 bytes, the SCSI
translation layer will happily write past the end of the INQUIRY buffer
allocation.
This is fairly easily reproducible by running the libiscsi test
suite and then starting an xfstests run.
Fixes: 4f1982 ("NVMe: Update SCSI Inquiry VPD 83h translation")
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
