aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
diff options
context:
space:
mode:
authorAndres Beltran <lkmlabelt@gmail.com>2020-07-06 12:09:28 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2020-07-08 01:34:08 -0400
commit0a76566595bfb242a7f4bedc77233e9194831ba3 (patch)
treef318acab28cedd0c68609e192d784b74f3fad747 /drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
parentscsi: advansys: docs: Eliminate duplicated word (diff)
downloadlinux-dev-0a76566595bfb242a7f4bedc77233e9194831ba3.tar.xz
linux-dev-0a76566595bfb242a7f4bedc77233e9194831ba3.zip
scsi: storvsc: Add validation for untrusted Hyper-V values
For additional robustness in the face of Hyper-V errors or malicious behavior, validate all values that originate from packets that Hyper-V has sent to the guest. Ensure that invalid values cannot cause data being copied out of the bounds of the source buffer when calling memcpy. Ensure that outgoing packets do not have any leftover guest memory that has not been zeroed out. Link: https://lore.kernel.org/r/20200706160928.53049-1-lkmlabelt@gmail.com Cc: James E.J. Bottomley <jejb@linux.ibm.com> Cc: Martin K. Petersen <martin.petersen@oracle.com> Cc: linux-scsi@vger.kernel.org Reviewed-by: Michael Kelley <mikelley@microsoft.com> Signed-off-by: Andres Beltran <lkmlabelt@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/cxgbi/cxgb3i/cxgb3i.c')
0 files changed, 0 insertions, 0 deletions