]> git.proxmox.com Git - mirror_edk2.git/commit
CpuPageTableLib: Avoid treating non-leaf entry as leaf one
authorRay Ni <ray.ni@intel.com>
Fri, 15 Jul 2022 07:22:57 +0000 (15:22 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 9 Aug 2022 07:08:05 +0000 (07:08 +0000)
commitc16f02f7764cba228d9c70b7985ff7276b6de4cc
tree88f887979465352628dc5d26bd12eeb3037be5be
parent9cb8974f06c6cc2545a66e696a58911122dec9fd
CpuPageTableLib: Avoid treating non-leaf entry as leaf one

Today's logic wrongly treats the non-leaf entry as leaf entry and
updates its paging attributes.

The patch fixes the bug to only update paging attributes for
non-present entries or leaf entries.

Signed-off-by: Ray Ni <ray.ni@intel.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c