]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c
MdeModulePkg/DxeIplPeim: fix incorrect page table split during protecting
authorJian J Wang <jian.j.wang@intel.com>
Fri, 15 Dec 2017 02:25:12 +0000 (10:25 +0800)
committerStar Zeng <star.zeng@intel.com>
Fri, 15 Dec 2017 04:14:52 +0000 (12:14 +0800)
commit41b4600c308d13fc90cef308c8fbb8f0e15f4e5f
tree3b902526d9fc57b0dd52a3fd64e034aa969b7159
parentb36acb21c0ff7e8502627a71673d37e996aeb4b6
MdeModulePkg/DxeIplPeim: fix incorrect page table split during protecting

The root cause of this issue is that, during splitting page table, the page
size should be the value of next level (smaller one) instead of current level.
The wrong page size will then cause wrong page table introduced, which will
break the normal boot.

Validation works include booting to Windows 10 and Fedora 26 on real Intel
platform and OVMF emulated platform in addition to manual checks on page
table with JTAG tool.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c