audk/MdeModulePkg/Bus/Pci
Ma, Hua 79f2734e5a MdeModulePkg: Add a check for metadata size in NvmExpress Driver
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3856

Currently this NvmeExpress Driver do not support metadata handling.
According to the NVME specs, metadata may be transferred to the host after
the logical block data. It can overrun the input buffer which may only
be the size of logical block data.

Add a check to return not support for the namespaces formatted with
metadata.

v2 changes:
 - Change debug log level from INFO to ERROR
 - Change to if (NamespaceData->LbaFormat[LbaFmtIdx].Ms != 0)

v1: https://edk2.groups.io/g/devel/message/87242

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>

Signed-off-by: Hua Ma <hua.ma@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
2022-03-07 01:55:41 +00:00
..
EhciDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EhciPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
IdeBusPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
IncompatiblePciDeviceSupportDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
NonDiscoverablePciDeviceDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
NvmExpressDxe MdeModulePkg: Add a check for metadata size in NvmExpress Driver 2022-03-07 01:55:41 +00:00
NvmExpressPei MdeModulePkg: Add a check for metadata size in NvmExpress Driver 2022-03-07 01:55:41 +00:00
PciBusDxe MdeModulePkg/Bus/Pci/PciBusDxe: Support platform PCI ROM override 2022-02-04 18:10:25 +00:00
PciHostBridgeDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PciSioSerialDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SataControllerDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SdMmcPciHcDxe MdeModulePkg/SdMmcPciHcDxe: Robust improvements for SD card 1.8V switch 2022-01-24 01:52:35 +00:00
SdMmcPciHcPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UfsPciHcDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UfsPciHcPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UhciDxe MdeModulePkg/Bus/Pci/UhciDxe: Fix the UsbHc memory allocate and free issue 2021-12-09 02:36:30 +00:00
UhciPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
XhciDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
XhciPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00