audk/MdeModulePkg/Bus/Pci
Hao Wu b7f82a3a0f MdeModulePkg NvmExpressDxe: Add check for command packet in PassThru
This commit adds serveral checks for the 'Packet' parameter passed to the
EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL.PassThru() API:

The check for the 'TransferLength' field in
EFI_NVM_EXPRESS_PASS_THRU_COMMAND_PACKET to make sure the value will not
exceed the maximum data transfer size allowed by a controller.

The check for the 'TransferBuffer' and 'TransferLength' fields in
EFI_NVM_EXPRESS_PASS_THRU_COMMAND_PACKET when the Opcode of an NVME
command indicates a data transfer between controller and host.

The check for the 'MetadataLength' field in
EFI_NVM_EXPRESS_PASS_THRU_COMMAND_PACKET to make sure the value is not 0
when the corresponding 'MetadataBuffer' field has a non-NULL value.

Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
2016-09-06 15:31:37 +08:00
..
EhciDxe MdeModulePkg: Fix typos in comments and variables 2016-07-11 10:29:48 +08:00
EhciPei MdeModulePkg: Fix typos in comments and variables 2016-07-11 10:29:48 +08:00
IdeBusPei MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
IncompatiblePciDeviceSupportDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
NvmExpressDxe MdeModulePkg NvmExpressDxe: Add check for command packet in PassThru 2016-09-06 15:31:37 +08:00
PciBusDxe MdeModulePkg/PciBusDxe: recognize hotplug-capable PCIe ports 2016-07-13 08:39:29 +02:00
PciHostBridgeDxe MdeModulePkg/PciHostBridgeDxe: fix Ia32 GCC44 build error 2016-07-18 19:22:41 +02:00
PciSioSerialDxe MdeModulePkg: Fix typos in comments and variables 2016-07-11 10:29:48 +08:00
SataControllerDxe MdeModulePkg: add generic SataController driver. 2016-08-03 09:52:18 +08:00
SdMmcPciHcDxe MdeModulePkg/SdMmc: update TPL to notify to fix UEFI SCT hang 2016-07-01 14:44:47 +08:00
SdMmcPciHcPei MdeModulePkg/SdMmc: Add EDKII SD/MMC stack 2016-03-30 11:27:41 +08:00
UfsPciHcDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
UfsPciHcPei MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
UhciDxe MdeModulePkg: Fix typos in comments and variables 2016-07-11 10:29:48 +08:00
UhciPei MdeModulePkg: Fix typos in comments and variables 2016-07-11 10:29:48 +08:00
XhciDxe MdeModulePkg/XhciDxe: fix a bug on TRB check in async int transfer 2016-07-25 09:37:05 +08:00
XhciPei MdeModulePkg: Fix typos in comments and variables 2016-07-11 10:29:48 +08:00