audk/MdeModulePkg
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
..
Application MdeModulePkg: Use IsZeroGuid API for zero GUID checking 2016-08-31 11:14:01 +08:00
Bus MdeModulePkg NvmExpressDxe: Add check for command packet in PassThru 2016-09-06 15:31:37 +08:00
Core MdeModulePkg: Use IsZeroGuid API for zero GUID checking 2016-08-31 11:14:01 +08:00
Include MdeModulePkg: Add API ResetPlatformSpecific() to ResetSystemLib.h 2016-09-02 10:07:14 +08:00
Library MdeModulePkg PiDxeS3BootScriptLib: Support multiple PCI segment 2016-09-05 18:15:46 +08:00
Logo MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Universal MdeModulePkg/EbcDxe AARCH64: simplify interpreter entry point thunks 2016-09-02 07:59:22 +01:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt
MdeModulePkg.dec MdeModulePkg: Introduce new library class MemoryProfileLib 2016-07-01 09:39:57 +08:00
MdeModulePkg.dsc MdeModulePkg DSC: Add build option to disable deprecated APIs 2016-08-08 11:00:07 +08:00
MdeModulePkg.uni MdeModulePkg: Extend memory profile definitions for memory leak detection 2016-07-01 09:39:50 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00