audk/MdeModulePkg/Bus
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
..
Ata MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
I2c/I2cDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Isa MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Pci MdeModulePkg: Add a check for metadata size in NvmExpress Driver 2022-03-07 01:55:41 +00:00
Scsi MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Sd MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Ufs MdeModulePkg: Put off UFS HCS.DP checking to fix timing problem 2022-01-04 02:23:14 +00:00
Usb MdeModulePkg/Usb/Keyboard.c: Don't request protocol before setting 2022-03-03 06:25:50 +00:00