From: Christoph Hellwig Date: Fri, 8 May 2015 16:00:26 +0000 (+0200) Subject: nvme: fix kernel memory corruption with short INQUIRY buffers X-Git-Tag: omap-for-v4.3/legacy-v2-signed~314^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fd61b209977db8a9fe6c44d5a5a7aee7a255f64;p=pandora-kernel.git 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 Signed-off-by: Jens Axboe --- Reading git-diff-tree failed