audk/UefiCpuPkg/Library/CpuPageTableLib
Dun Tan c90cb726f8 UefiCpuPkg/CpuPageTableLib: Fix issue when splitting leaf entry
When splitting leaf parent entry to smaller granularity, create
child page table before modifing parent entry. In previous code
logic, when splitting a leaf parent entry, parent entry will
point to a null 4k memory before child page table is created in
this 4k memory. When the page table to be modified is the page
table in CR3, if the executed CpuPageTableLib code is in the
range mapped by the modified leaf parent entry, then issue will
happen.

Signed-off-by: Dun Tan <dun.tan@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Tested-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
2023-03-27 08:21:58 +00:00
..
UnitTest UefiCpuPkg/CpuPageTableLib/UnitTest: Add host based unit test 2022-08-31 01:57:58 +00:00
CpuPageTable.h CpuPageTableLib: define IA32_PAGE_LEVEL enum type internally 2022-08-09 07:08:05 +00:00
CpuPageTableLib.inf
CpuPageTableMap.c UefiCpuPkg/CpuPageTableLib: Fix issue when splitting leaf entry 2023-03-27 08:21:58 +00:00
CpuPageTableParse.c UefiCpuPkg/CpuPageTableLib:Support PAE paging for PageTableParse 2022-10-17 08:03:06 +00:00