eck at Length position.
Cc: Liming Gao
Cc: Ray Ni
Cc: Michael D Kinney
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
.../UefiDevicePathLib.c | 9 +
1 file changed, 9 insertions(+)
diff --git
a/MdePkg/Libr
x64)
Jian J Wang (2):
MdePkg/UefiDevicePathLib: Add sanity check for FilePath device path
MdePkg/UefiDevicePathLibDevicePathProtocol: Add sanity check for
FilePath device path
MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c | 9 +
.../UefiDevicePathLi
eck at Length position.
Cc: Liming Gao
Cc: Ray Ni
Cc: Michael D Kinney
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/MdePkg/Libr
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=864
To follow PI spec, ensure FfsFileHeader 8 bytes aligned.
Current code only handles (FwVolHeader->ExtHeaderOffset != 0) path,
update code to also handle (FwVolHeader->ExtHeaderOffset == 0) path.
Star Zeng (3):
MdeModulePkg/PeiCore: Ensure
Liming Gao
Cc: Jian J Wang
Cc: Hao Wu
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng
---
MdeModulePkg/Core/Pei/FwVol/FwVol.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/MdeModulePkg/Core/Pei/FwVol/FwVol.c
b/MdeModulePkg/Core/Pei
From: Star Zeng
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=864
To follow PI spec, ensure FfsFileHeader 8 bytes aligned.
Current code only handles (FwVolHeader->ExtHeaderOffset != 0) path,
update code to also handle (FwVolHeader->ExtHeaderOffset == 0) path.
Cc: Jiewen Yao
Cc: Liming G
(FwVolHeader->ExtHeaderOffset != 0) path,
update code to also handle (FwVolHeader->ExtHeaderOffset == 0) path.
Cc: Jiewen Yao
Cc: Liming Gao
Cc: Jian J Wang
Cc: Hao Wu
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng
---
MdeModulePkg/Core/Dxe/FwVol/FwVol.
buted-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuPageTable.c | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/UefiCpuPkg/CpuDxe/CpuPageTable.c b/UefiCpuPkg/CpuDxe/CpuPageTable.c
index 4bee8c7772..812537417d 100644
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1576
Test:
- Pass special test of accessing memory beyond 4G
- Boot to OS with Qemu emulator platform (Fedora27, Ubuntu18.04,
Windows7, Windows10)
Jian J Wang (2):
UefiCpuPkg/CpuDxe: set TF bit in EFLAGS in C code
UefiCpuPkg/CpuDxe: remove
buted-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
.../CpuExceptionHandlerLib/Ia32/ExceptionHandlerAsm.nasm | 7 ---
.../CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm| 4
2 files changed, 11 deletions(-)
diff --git
a/UefiCpuPkg/Li
, Windows10)
Cc: Eric Dong
Cc: Laszlo Ersek
Cc: Ruiyu Ni
Cc: Star Zeng
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
Acked-by: Laszlo Ersek
---
UefiCpuPkg/CpuDxe/CpuPageTable.c | 11 ++-
.../Ia32/Exceptio
The BOM was introduced by commit 6c05b958df532345a35b418b05effcf7fd51fc4e
accidentally.
Cc: Yao Jiewen
Cc: Zhang, Chao B
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
Maintainers.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion
under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
.../Library/BaseCryptLib/BaseCryptLib.inf | 5 +-
.../Library/BaseCryptLib/InternalCryptLib.h | 32 +
.../Library/BaseCryptLib/PeiCryptLib.inf | 3 +-
.../BaseCryptLib/Pk/CryptPkcs7VerifyBase.c
: Michael D Kinney
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
.../UefiDevicePathLib.c | 8
1 file changed, 8 insertions(+)
diff --git
a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1497
Jian J Wang (2):
MdePkg/UefiDevicePathLib: Add sanity check for FilePath device path
MdePkg/UefiDevicePathLibDevicePathProtocol: Add sanity check for
FilePath device path
MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c
: Michael D Kinney
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c | 8
1 file changed, 8 insertions(+)
diff --git a/MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c
b/MdePkg/Library
ry
cache capabilities before setting corresponding attributes.
Cc: Star Zeng
Cc: Eric Dong
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Michael D Kinney
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/PiSmmCore/PiSmmIp
Heap Guard feature needs enough memory and paging to work. Otherwise
calling SetMemoryAttributes to change page attribute will fail. This
patch add necessary check of result of calling SetMemoryAttributes.
This can help users to debug their problem in enabling this feature.
Jian J Wang (2
: Eric Dong
Cc: Jiewen Yao
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c
b/MdeModulePkg/Core
: Eric Dong
Cc: Jiewen Yao
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/PiSmmCore/HeapGuard.c | 30 ++
1 file changed, 18 insertions(+), 12 deletions(-)
diff --git a/MdeModulePkg/Core/PiSmmCore
write-back
attribute because of no corresponding cache capabilities. This patch
will add necessary cache capabilities before setting corresponding
attributes.
Cc: Star Zeng
Cc: Eric Dong
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Michael D Kinney
Contributed-under: TianoCore Contribution Agreement 1.1
S
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1215
This issue is caused by commit 5267926134d17e86672b84fd57b438f05ffa68e1.
Jian J Wang (2):
Nt32Pkg/Nt32Pkg.dsc: override PCD default to avoid boot failure
EmulatorPkg/EmulatorPkg.dsc: override PCD default to avoid boot
failure
ndows OS.
This patch solves this issue by setting PcdImageProtectionPolicy to 0
explicitly in EmulatorPkg.dsc.
Cc: Jordan Justen
Cc: Andrew Fish
Cc: Ruiyu Ni
Cc: Star Zeng
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
Emulat
ws OS.
This patch solves this issue by setting PcdImageProtectionPolicy to 0
explicitly in Nt32Pkg.dsc.
Cc: Ruiyu Ni
Cc: Hao Wu
Cc: Star Zeng
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
Nt32Pkg/Nt32Pkg.dsc | 1 +
1 file changed, 1 inse
Fish
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
.../BaseStackCheckLib/BaseStackCheckLib.inf| 11 +-
.../Library/BaseStackCheckLib/BaseStackCheckMsft.c | 221 +
.../Library/BaseStackCheckLib/BaseStackCheckNull.c
prevent such problem from happening.
Cc: Eric Dong
Cc: Laszlo Ersek
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ArchExceptionHandler.c | 3 +++
UefiCpuPkg/Library/CpuExceptionHandlerLib/X64
under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/DxeMain.h | 1 +
MdeModulePkg/Core/Dxe/DxeMain.inf| 1 +
MdeModulePkg/Core/Dxe/Gcd/Gcd.c | 8 +
MdeModulePkg/Core/Dxe/Mem/HeapGuard.c
ntribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/MdeModulePkg.dec | 6 ++
1 file changed, 6 insertions(+)
diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec
index 6037504fa7..83736cd761 100644
--- a/MdeModulePkg/MdeModulePkg.dec
+++ b/MdeModulePkg/MdeMod
UAF (Use-After-Free) memory detection is new feature introduced to
detect illegal access to memory which has been freed.
Jian J Wang (3):
MdeModulePkg/MdeModulePkg.dec: add new PCD for UAF detection feature
UefiCpuPkg/CpuDxe: fix an infinite loop issue
MdeModulePkg/Core: add use-after-free
location function
and fail any other requests if it has not been done.
Cc: Laszlo Ersek
Cc: Star Zeng
Cc: Michael D Kinney
Cc: Jiewen Yao
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuPageTable.c | 12 +++
e same
time.
Cc: Star Zeng
Cc: Michael D Kinney
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/MdeModulePkg.dec | 10 ++
MdeModulePkg/MdeModulePkg.uni | 6 +-
2 files changed, 15 ins
a new feauture used to detect UAF (Use-After-Free)
memory issue.
Jian J Wang (5):
MdeModulePkg/MdeModulePkg.dec: update PCD description for new feature
UefiCpuPkg/CpuDxe: fix an infinite loop issue
MdeModulePkg/Core: fix a lock issue in GCD memory map dump
MdeModulePkg/Core: add freed-memory
ael D Kinney
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Gcd/Gcd.c | 140
1 file changed, 86 insertions(+), 54 deletions(-)
diff --git a/MdeM
r freed-memory guard.
Cc: Laszlo Ersek
Cc: Star Zeng
Cc: Michael D Kinney
Cc: Jiewen Yao
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuDxe.h | 2 +-
UefiCpuPkg/CpuDxe/CpuPageTable.c | 19 +--
2 f
pages which haven been freed.
Cc: Star Zeng
Cc: Michael D Kinney
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 409 +-
MdeModule
memory
descriptor to reduce the overall descriptor number.
Cc: Star Zeng
Cc: Michael D Kinney
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c | 2 +-
MdeMod
> v3 changes:
> Updated per comments from Laszlo. Please refer to individual patch
> file for details
Freed-memory guard is a new feauture used to detect UAF (Use-After-Free)
memory issue.
Tests:
a. Feature basic unit/functionality test
b. OVMF regression test
Jian J Wang (6):
Mde
d-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuDxe.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.h b/UefiCpuPkg/CpuDxe/CpuDxe.h
index 064ea05bba..3183a3f7f4 100644
--- a/UefiCpuPkg/CpuDxe/CpuD
dPageType don't have effect to
the BIT4 of PcdHeapGuardPropertyMask.
Cc: Star Zeng
Cc: Michael D Kinney
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/MdeModulePkg.dec | 4
o upper layer of code.
Cc: Laszlo Ersek
Cc: Star Zeng
Cc: Michael D Kinney
Cc: Jiewen Yao
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuPageTable.c | 23 +--
1 file changed, 21 insertions(+), 2 dele
Star Zeng
Cc: Michael D Kinney
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/MdeModulePkg.dec | 6 ++
MdeModulePkg/MdeModulePkg.uni | 4 +++-
2 files changed, 9 insertions(+), 1 deletion(-)
CoreAllocatePoolI()
=> CoreAllocatePoolPagesI()
=> CoreAllocatePoolPages()
=> FindFreePages()
=> PromoteMemoryResource()
=> CoreAcquireGcdMemoryLock() **
Cc: Star Zeng
Cc: Michael D Kinney
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.
s back into the memory map. Now the number can stay at around
510.
Cc: Star Zeng
Cc: Michael D Kinney
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Mem/Hea
BIT4 of PcdHeapGuardPropertyMask.
Cc: Star Zeng
Cc: Michael D Kinney
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/MdeModulePkg.dec | 4
MdeModulePkg/MdeModulePkg.uni | 2 ++
2 files changed, 6 in
> v4 changes:
> Updated per comments from Star. Please refer to individual patch
> file for details (#2/5/6)
Freed-memory guard is a new feauture used to detect UAF (Use-After-Free)
memory issue.
Tests:
a. Feature basic unit/functionality test
b. OVMF regression test
Jian
Kinney
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/MdeModulePkg.dec | 16
MdeModulePkg/MdeModulePkg.uni | 14 ++
2 files changed, 22 insertions(+), 8 deletions(-)
d
is for UEFI-only. This patch only updates
HEAP_GUARD_NONSTOP_MODE in "UefiCpuPkg/CpuDxe/CpuDxe.h" (add BIT4).
Cc: Eric Dong
Cc: Laszlo Ersek
Cc: Star Zeng
Cc: Michael D Kinney
Cc: Jiewen Yao
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 409 +-
MdeModulePkg/Core/Dxe/Mem/HeapGuard.h | 65 +++-
MdeModulePkg/Core/Dxe/Mem/Page.c | 42 ++-
MdeModulePkg/Core/Dxe/Mem/Pool.c | 23 +-
=> CoreAllocatePoolPages()
=> FindFreePages()
=> PromoteMemoryResource()
=> CoreAcquireGcdMemoryLock() **
Cc: Star Zeng
Cc: Michael D Kinney
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
n Yao
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuPageTable.c | 23 +--
1 file changed, 21 insertions(+), 2 deletions(-)
diff --git a/UefiCpuPkg/CpuDxe/CpuPageTable.c b/UefiCpuPkg/CpuDxe/CpuPageTable.c
ind
: Jian J Wang
---
MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c
b/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c
index 449a022658..521e0d7b2a 100644
--- a/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c
+++ b
Tests:
a. Verified that issue in BZ#1281 is gone
b. Verified SMM heap guard works well on any processor
c. OVMF boot (Fedora26, Ubuntu18.04, Windows 10)
Cc: Eric Dong
Cc: Laszlo Ersek
Cc: Jiewen Yao
Cc: Star Zeng
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1284
Non-Boolean comparisons should use a compare operator
(==, !=, >, < >=, <=)
Cc: Dandan Bi
Cc: Star Zeng
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Mem/Hea
Entry);
Tests:
Pass build and boot to shell.
Cc: Hao Wu
Cc: Star Zeng
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Gcd/Gcd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MdeModulePkg/Core/Dxe/Gcd/Gcd.c b/MdeModu
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1295
Jian J Wang (2):
MdeModulePkg/Core: fill logic hole in
MemoryProtectionCpuArchProtocolNotify
MdeModulePkg/Core: fix ineffective guard page issue
MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c | 44 +--
1
ent handler,
the related PCDs like
PcdImageProtectionPolicy and
PcdDxeNxMemoryProtectionPolicy
will be checked again to do its job.
Cc: Star Zeng
Cc: Jiewen Yao
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModuleP
1030: return;
Cc: Star Zeng
Cc: Jiewen Yao
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c | 42 +--
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/M
>v2: re-generate the patch per Leif's comments
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1295
Cc: Star Zeng
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Leif Lindholm
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
Jian J Wang (2):
MdeModulePkg/Co
ributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c | 36 +--
1 file changed, 17 insertions(+), 19 deletions(-)
diff --git a/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c
b/MdeModulePkg/Core/Dxe/Misc/
o make sure the
resource is freed before exit.
1029: CoreCloseEvent (Event);
1030: return;
Cc: Star Zeng
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Leif Lindholm
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Misc/MemoryProtection.
>v3: found and fixed another memory leak
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1295
Cc: Star Zeng
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Leif Lindholm
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
Jian J Wang (2):
MdeModulePkg/Core: fill lo
yu Ni
Cc: Leif Lindholm
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c
b/MdeModul
otify event handler,
the related PCDs like
PcdImageProtectionPolicy and
PcdDxeNxMemoryProtectionPolicy
will be checked again before doing related jobs.
Cc: Star Zeng
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Leif Lindholm
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-
returns back to the
instruction causing #PF and re-execute it.
This is an necessary step to implement non-stop mode for Heap Guard
and NULL Pointer Detection feature.
Cc: Eric Dong
Cc: Laszlo Ersek
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/PageTbl.c | 43 +++--
UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiException.nasm | 3 +-
UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c | 60 +++-
UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h
resent'.
Usage:
The non-stop mode is enabled/disabled by BIT6 of following PCDs
gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPropertyMask
gEfiMdeModulePkgTokenSpaceGuid.PcdNullPointerDetectionPropertyMask
The default setting is 'disable'.
BZ Tracker:
https://bugzilla.tianocore.or
to both
UEFI and SMM NULL Pointer Detection, if any of them is enabled.
Cc: Eric Dong
Cc: Laszlo Ersek
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/MdeModulePkg.dec | 4 +++-
1 file changed, 3 insertions(+), 1 deletion
27;disable'.
BZ Tracker:
https://bugzilla.tianocore.org/show_bug.cgi?id=1095
OS Boot Validation:
Platform: OVMF
OS (x64): Fedora 26, Ubuntu 18.04, Windows 10, Windows 7
Jian J Wang (4):
MdeModulePkg/MdeModulePkg.dec: add new settings for PCDs
UefiCpuPkg/CpuExceptionHandlerLib: Setup single ste
ointer Detection feature. It applies to both
UEFI and SMM NULL Pointer Detection, if any of them is enabled.
Cc: Eric Dong
Cc: Laszlo Ersek
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/MdeModulePkg.dec | 4 +++-
1 file chan
Dong
Cc: Laszlo Ersek
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuDxe.h | 39 ++
UefiCpuPkg/CpuDxe/CpuDxe.inf | 3 +
UefiCpuPkg/CpuDxe/CpuMp.c| 34 -
UefiCpuPkg/CpuDxe/CpuPageTable.c | 271 ++
triggered once the cpu control returns back to the
instruction causing #PF and re-execute it.
This is an necessary step to implement non-stop mode for Heap Guard
and NULL Pointer Detection feature.
Cc: Eric Dong
Cc: Laszlo Ersek
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.
Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuDxe.c | 2 +-
UefiCpuPkg/CpuDxe/CpuPageTable.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.c b/UefiCpuPkg/CpuDxe/CpuDxe.c
Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/MdeModulePkg.uni | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/MdeModulePkg/MdeModulePkg.uni b/MdeModulePkg/MdeModulePkg.uni
index 080b8a62c0..8807af801e 100644
--- a/MdeModulePkg/MdeModulePkg.uni
+++ b/MdeModulePkg
://bugzilla.tianocore.org/show_bug.cgi?id=1137
Jian J Wang (4):
MdeModulePkg/DxeIpl: disable paging before creating new page table
UefiCpuPkg/CpuExceptionHandlerLib: support stack switch for PEI
exceptions
UefiCpuPkg/MpInitLib: fix register restore issue in AP wakeup
UefiCpuPkg/CpuMpPei
: "Ware, Ryan R"
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/Library/MpInitLib/MpLib.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c
b/UefiCpuPkg/Library/MpInitLib/MpL
: Eric Dong
Cc: Laszlo Ersek
Cc: Ruiyu Ni
Cc: Jiewen Yao
Cc: Star Zeng
Cc: "Ware, Ryan R"
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
.../CpuExceptionHandlerLib/PeiCpuException.c | 27 +-
.../PeiCpuExceptionHand
TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuMpPei/CpuMpPei.c | 269 -
UefiCpuPkg/CpuMpPei/CpuMpPei.h | 14 +
UefiCpuPkg/CpuMpPei/CpuMpPei.inf | 11 +-
UefiCpuPkg/CpuMpPei/CpuPaging.c | 637 +++
4 files ch
conflict.
There's no such issue for 64-bit PEI so this change applies only to
32-bit code.
Cc: Star Zeng
Cc: Ruiyu Ni
Cc: Jiewen Yao
Cc: "Ware, Ryan R"
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/DxeIplPeim/Ia32/Dxe
There're two parameters which have different name in comment and prototype.
Cc: Dandan Bi
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuDxe.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/UefiCpuPkg/C
The left operand is 64-bit but right operand could be 32-bit.
A typecast is a must because of '~' op before it.
Cc: Hao A Wu
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuPageTable.c | 2 +-
1 file changed, 1 inser
tform developer about
it.
Cc: Star Zeng
Cc: Benjamin You
Cc: Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3
BZ#: https://bugzilla.tianocore.org/show_bug.cgi?id=1166
Cc: Dandan Bi
Cc: Hao A Wu
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuMpPei/CpuPaging.c | 23 ---
1 file changed, 16 insertions(+), 7 deletions(-)
diff --git
PcdDxeNxMemoryProtectionPolicy is set, the DxeIpl will set NX bit in page
table entries mapping the stack memory.
Cc: Star Zeng
Cc: Laszlo Ersek
Cc: Ard Biesheuvel
Cc: Ruiyu Ni
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core
usten
Cc: Ard Biesheuvel
Cc: Ruiyu Ni
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
OvmfPkg/PlatformPei/Platform.c | 1 -
OvmfPkg/PlatformPei/PlatformPei.inf | 1 -
2 files changed, 2 deletions(-)
diff --git a/OvmfPkg/Platfo
-off-by: Jian J Wang
---
OvmfPkg/OvmfPkgIa32.dsc| 1 -
OvmfPkg/OvmfPkgIa32X64.dsc | 1 -
OvmfPkg/OvmfPkgX64.dsc | 1 -
3 files changed, 3 deletions(-)
diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc
index 9f07e75050..1eaefbfd6e 100644
--- a/OvmfPkg/OvmfPkgIa32.dsc
+++ b
-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
ArmVirtPkg/ArmVirt.dsc.inc | 5 -
1 file changed, 5 deletions(-)
diff --git a/ArmVirtPkg/ArmVirt.dsc.inc b/ArmVirtPkg/ArmVirt.dsc.inc
index 70a0ac4d78..d87ae5a32d 100644
--- a/ArmVirtPkg/ArmVirt.dsc.inc
+++ b/ArmVirtPkg
PcdDxeNxMemoryProtectionPolicy is set, the DxeIpl will set NX bit in page
table entries mapping the stack memory.
Jian J Wang (5):
MdeModulePkg/DxeIplPeim: expire the use of PcdSetNxForStack
OvmfPkg/PlatformPei: expire the use of PcdSetNxForStack
OvmfPkg: expire the use of PcdSetNxForStack
PcdDxeNxMemoryProtectionPolicy if NX protection is needed for stack.
Cc: Star Zeng
Cc: Laszlo Ersek
Cc: Ard Biesheuvel
Cc: Ruiyu Ni
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/MdeModulePkg.dec | 10 +-
MdeModulePkg
ution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf | 2 +
MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c | 4 +-
MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c | 55 +++-
MdeModulePkg/Core/DxeIplPeim/X64/Virtu
strong binding between them. This patch series try
to fix this problem by a useful message.
Jian J Wang (2):
UefiCpuPkg/PiSmmCpuDxeSmm: add message for S3 config error
UefiCpuPkg/PiSmmCpuDxeSmm: move InitSmmS3Cr3() into else block
UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c | 18 --
1 fi
Cc: Star Zeng
Cc: Benjamin You
Cc: Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/Cp
't
embody this strong binding between them. An error message and
CpuDeadLoop are added in this patch to warn platform developer
about it.
Cc: Star Zeng
Cc: Benjamin You
Cc: Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
-
k
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuMpPei/CpuPaging.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/UefiCpuPkg/CpuMpPei/CpuPaging.c b/UefiCpuPkg/CpuMpPei/CpuPaging.c
index bcb942a8e5..c7e0822452 100644
--- a/UefiCpuPkg/CpuMpP
-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuMpPei/CpuMpPei.h | 8
UefiCpuPkg/CpuMpPei/CpuPaging.c | 9 +++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/UefiCpuPkg/CpuMpPei/CpuMpPei.h b/UefiCpuPkg/CpuMpPei/CpuMpPei.h
index
(IA32/X64)
c. boot to fedora26, ubuntu18.04, windows 7 and windows 10 on OVMF emulated
platform (X64)
Cc: Star Zeng
Cc: Laszlo Ersek
Cc: Ard Biesheuvel
Cc: Ruiyu Ni
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
Jian J Wang (2):
MdeMod
d.
Cc: Star Zeng
Cc: Laszlo Ersek
Cc: Ard Biesheuvel
Cc: Ruiyu Ni
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf | 2 ++
MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c | 4 ++--
MdeMo
well as to clear BIT4 of
PcdDxeNxMemoryProtectionPolicy.
Cc: Star Zeng
Cc: Laszlo Ersek
Cc: Ard Biesheuvel
Cc: Ruiyu Ni
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/MdeModulePkg.dec | 20 +++-
MdeModulePkg/
Dong
Cc: Laszlo Ersek
Cc: Jiewen Yao
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuDxe.c | 2 +-
UefiCpuPkg/CpuDxe/CpuDxe.inf | 1 +
UefiCpuPkg/CpuDxe/CpuPageTable.c
Star Zeng
Cc: Eric Dong
Cc: Jiewen Yao
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 10 --
1 file changed, 10 deletions(-)
diff --git a/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c
b/MdeModulePkg
ation in a global
variable and use it to access DXE page table if in SMM mode.
Jian J Wang (2):
UefiCpuPkg/CpuDxe: allow accessing (DXE) page table in SMM mode
MdeModulePkg/Core: remove SMM check for Heap Guard feature detection
MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 10
UefiCpuPkg/C
1 - 100 of 343 matches
Mail list logo