Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: b670700ddf5eb1dd958d60eb4f2a51e0636206f9 https://github.com/tianocore/edk2/commit/b670700ddf5eb1dd958d60eb4f2a51e0636206f9 Author: Tan, Dun <dun....@intel.com> Date: 2023-01-03 (Tue, 03 Jan 2023)
Changed paths: M UefiCpuPkg/PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c Log Message: ----------- UefiCpuPkg/PiSmmCpuDxeSmm:Fix PF issue caused by smm page table code When setting new page table pool to RO, only disable/enable WP when Cr0.WP has been set to 1 to fix potential PF caused by b822be1a20 (UefiCpuPkg/PiSmmCpuDxeSmm: Introduce page table pool mechanism). With previous code, if someone want to modify the page table and Cr0.WP has been cleared before modify page table, Cr0.WP may be set to 1 again since new pool may be generated during this process Then PF fault may happens. Signed-off-by: Dun Tan <dun....@intel.com> Cc: Eric Dong <eric.d...@intel.com> Reviewed-by: Ray Ni <ray...@intel.com> Cc: Rahul Kumar <rahul1.ku...@intel.com> _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits