Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 79f2734e5a7bc2e5256eb0e599f45407855159c7
https://github.com/tianocore/edk2/commit/79f2734e5a7bc2e5256eb0e599f45407855159c7
Author: Ma, Hua <[email protected]>
Date: 2022-03-07 (Mon, 07 Mar 2022)
Changed paths:
M MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c
M MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPei.c
Log Message:
-----------
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 <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Hao A Wu <[email protected]>
Cc: Ray Ni <[email protected]>
Signed-off-by: Hua Ma <[email protected]>
Reviewed-by: Hao A Wu <[email protected]>
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits