diff options
author | Arun Easi <aeasi@marvell.com> | 2020-01-23 20:50:14 -0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-01-30 10:31:47 -0500 |
commit | 00fe717ee1ea3c2979db4f94b1533c57aed8dea9 (patch) | |
tree | b94dcb5a03ab36fc2b338d0c426ea340e8b0582a /drivers/scsi/megaraid | |
parent | 11e673206f217ce6604b7b0269e3cfc65171c380 (diff) | |
download | linux-00fe717ee1ea3c2979db4f94b1533c57aed8dea9.tar.gz linux-00fe717ee1ea3c2979db4f94b1533c57aed8dea9.tar.bz2 linux-00fe717ee1ea3c2979db4f94b1533c57aed8dea9.zip |
scsi: qla2xxx: Fix unbound NVME response length
On certain cases when response length is less than 32, NVME response data
is supplied inline in IOCB. This is indicated by some combination of state
flags. There was an instance when a high, and incorrect, response length
was indicated causing driver to overrun buffers. Fix this by checking and
limiting the response payload length.
Fixes: 7401bc18d1ee3 ("scsi: qla2xxx: Add FC-NVMe command handling")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200124045014.23554-1-hmadhani@marvell.com
Signed-off-by: Arun Easi <aeasi@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/megaraid')
0 files changed, 0 insertions, 0 deletions