left in edk2 master before 1.1.1.
https://www.openssl.org/news/vulnerabilities-1.1.1.html
Cc: Ting Ye
Cc: Gang Wei
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
CryptoPkg/CryptoPkg.dsc | 1 +
.../Library/Include/openssl/opensslc
ributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuDxe.c | 17 +-
UefiCpuPkg/CpuDxe/CpuDxe.h | 2 +
UefiCpuPkg/CpuDxe/CpuDxe.inf | 3 +
UefiCpuPkg/CpuDxe/CpuPageTable.c | 329 ++-
UefiCpuP
FreePages;
} PAGE_TABLE_POOL_HEADER;
Cc: Jiewen Yao
Cc: Star Zeng
Cc: Eric Dong
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Include/Guid/PageTablePool.h | 53 +++
1 file changed, 53 insertions(+)
create
ge table pool.
Cc: Jiewen Yao
Cc: Star Zeng
Cc: Eric Dong
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/DxeIplPeim/DxeIpl.h| 34 +++
MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf | 3 +
MdeModulePkg/Core/DxeI
noCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/MdeModulePkg.dec | 28
1 file changed, 28 insertions(+)
diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec
index 856d67aceb..075d51f807 100644
--- a/MdeModulePkg/MdeModuleP
bute
of the pages used as page table.
Validation works include booting Windows (10/server 2016) and Linux
(Fedora/Ubuntu)
on OVMF and Intel real platform.
Jian J Wang (4):
MdeModulePkg/MdeModulePkg.dec: Add new PCDs and Guid
MdeModulePkg/PageTablePool.h: Page table pool GUID definition fi
ation
and recursive calling of SetMemorySpaceAttributes().
Cc: Jiewen Yao
Cc: Eric Dong
Cc: Laszlo Ersek
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuDxe.c | 17 ++-
UefiCpuPkg/CpuDxe/CpuDxe.h | 2 +
UefiCpuP
ured in other part of system.
This patch series will change this situation by clearing R/W bit in page
attribute
of the pages used as page table.
Validation works include booting Windows (10/server 2016) and Linux
(Fedora/Ubuntu)
on OVMF and Intel real platform.
Jian J Wang (2):
MdeModul
ecify the size and alignment for page table pool. For IA32 processor
0x20 (2MB) is the only choice for both of them to meet the requirement of
page table pool.
Cc: Jiewen Yao
Cc: Star Zeng
Cc: Eric Dong
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-b
inney
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
IntelFrameworkPkg/Include/Protocol/LegacyBios.h | 34 +
1 file changed, 34 insertions(+)
diff --git a/IntelFrameworkPkg/Include/Protocol/LegacyBios.h
b/IntelFrameworkPkg/Include/Pro
same job, which also makes code more
readability.
Cc: Liming Gao
Cc: Michael D Kinney
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
.../Csm/LegacyBiosDxe/LegacyBda.c | 53
.../Csm/LegacyBiosDxe/LegacyBios.c
s now able to
eliminate the dependency on this PCD.
Jian J Wang (3):
IntelFrameworkPkg/LegacyBios.h: Add a macro to guarantee page 0 access
IntelFrameworkModulePkg/LegacyBiosDxe: Use macro to enable/disable
page 0
IntelFrameworkModulePkg/KeyboardDxe: Use macro to enable/disable page
same job, which also makes code more
readability.
Cc: Liming Gao
Cc: Michael D Kinney
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
.../Csm/BiosThunk/KeyboardDxe/BiosKeyboard.c | 118 ++---
.../Csm/BiosThunk/KeyboardDxe/KeyboardDx
PCD to reserve
new stack memory for exceptions specified by above PCD.
Cc: Eric Dong
Cc: Laszlo Ersek
Cc: Jiewen Yao
Suggested-by: Ayellet Wolman
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/UefiCpuPkg.dec | 12
1 file chang
: Jiewen Yao
Suggested-by: Ayellet Wolman
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
.../CpuExceptionHandlerLibNull.c | 34 ++
1 file changed, 34 insertions(+)
diff --git
a/MdeModulePkg/Library/CpuExceptionHa
to make sure exception handler works normally even when the stack
is corrupted, stack switching is implemented in exception library.
Due to the mechanism behind Stack Guard, this feature is only avaiable for
UEFI drivers (memory avaiable). That also means it doesn't support NT32
emul
y: Ayellet Wolman
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
Reviewed-by: Ard Biesheuvel
---
ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.c | 33
1 file changed, 33 insertions(+)
diff --git a/ArmPkg/Library/ArmExceptionLib/ArmExcepti
feature is available only for DXE phase at this time, the
new API is fully implemented for DXE only. Other phases implement a dummy
one which just calls InitializeCpuExceptionHandlers().
Cc: Jiewen Yao
Cc: Eric Dong
Cc: Laszlo Ersek
Cc: Michael Kinney
Suggested-by: Ayellet Wolman
Contribu
eption dump
message won't be printed out when there's a stack overflow happened.
Cc: Star Zeng
Cc: Eric Dong
Suggested-by: Ayellet Wolman
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/MdeModulePkg.dec | 7 +++
MdeModulePkg/MdeM
greement 1.1
Signed-off-by: Jian J Wang
---
MdePkg/Include/Library/BaseLib.h | 117 +++
MdePkg/Library/BaseLib/BaseLib.inf | 3 +
MdePkg/Library/BaseLib/Ia32/WriteTr.nasm | 36 ++
MdePkg/Library/BaseLib/X64/WriteTr.nasm | 37 +
o be
NOT PRESENT. If stack is used up and memory access cross into the last page
of it, #PF exception will be triggered.
Cc: Star Zeng
Cc: Eric Dong
Cc: Jiewen Yao
Suggested-by: Ayellet Wolman
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg
er: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuDxe.inf | 3 +
UefiCpuPkg/CpuDxe/CpuMp.c| 188 +++
2 files changed, 191 insertions(+)
diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.inf b/UefiCpuPkg/CpuDxe/CpuDxe.inf
ng
Cc: Eric Dong
Cc: Jiewen Yao
Suggested-by: Ayellet Wolman
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.
Suggested-by: Ayellet Wolman
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/Library/MpInitLib/MpLib.c | 17 +
UefiCpuPkg/Library/MpInitLib/MpLib.h | 3 +++
2 files changed, 20 insertions(+)
diff --git a/UefiCpuPkg/Library/MpInitLi
ic Dong
Cc: Jiewen Yao
Suggested-by: Ayellet Wolman
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
.../Include/Library/CpuExceptionHandlerLib.h | 91 ++
1 file changed, 91 insertions(+)
diff --git a/MdeModulePkg/Include/Library/Cpu
BUG_CODE macro):
ACCESS_PAGE0_CODE(
);
Cc: Liming Gao
Cc: Michael D Kinney
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
IntelFrameworkPkg/Include/Protocol/LegacyBios.h | 34 +
1 file changed, 34 insertions(+)
newly added PcdNullPointerDetectionPropertyMask caused backward
compatibility issue in some packages having legcy drivers. Since the
attributes missing issue in GCD services has been fixed, it's now able to
eliminate the dependency on this PCD.
Jian J Wang (3):
IntelFrameworkPkg/LegacyBios.h: Add a macro to
a new macro
ACCESS_PAGE0_CODE(
);
to replace above methods to do the same job, which also makes code more
readability.
Cc: Liming Gao
Cc: Michael D Kinney
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
.../Csm/BiosThunk/KeyboardDxe/Bio
methods to do the same job, which also makes code more
readability.
Cc: Liming Gao
Cc: Michael D Kinney
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
.../Csm/LegacyBiosDxe/LegacyBda.c | 53
.../Csm/LegacyBiosDxe/L
o make page table allocation
> and protection easier and error free.
Write Protect feature (CR0.WP) is always enabled in driver UefiCpuPkg/CpuDxe.
But the memory pages used for page table are not set as read-only in the driver
DxeIplPeim, after the paging is setup. This might j
e pool.
Cc: Jiewen Yao
Cc: Star Zeng
Cc: Eric Dong
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/DxeIplPeim/DxeIpl.h| 34 +++
MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c | 8 +-
MdeModulePkg/Core/DxeIplP
ontribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuDxe.c | 17 ++-
UefiCpuPkg/CpuDxe/CpuDxe.h | 2 +
UefiCpuPkg/CpuDxe/CpuPageTable.c | 223 +--
UefiCpuPkg/CpuDxe/CpuPageTable.h | 34 ++
4 files changed, 267 inse
freed page should be turned into a new
Guard page.
Cc: Jie Lin
Cc: Star Zeng
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 93 ---
MdeModulePkg/Core/Dxe/Mem/HeapGuard.h
freed page should be turned into a new
Guard page.
Since the most part code of Heap Guard feature are almost the same,
PiSmmCore and DxeCore have both above issues. This patch series fix them all.
Jian J Wang (2):
MdeModulePkg/DxeCore: Fix issues in Heap Guard
MdeModulePkg/PiSmmCore: Fix issues in
freed page should be turned into a new
Guard page.
Cc: Jie Lin
Cc: Star Zeng
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/PiSmmCore/HeapGuard.c | 91 +++--
MdeModulePkg/Core/PiSmmCore/HeapGuard.h
The purpose of the patch is just to avoid complaining from compiler and
static check tool.
Cc: Eric Dong
Cc: Wu Hao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuMp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/UefiCpuPkg
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
Cc: Star Zeng
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/DxeIplPeim/X64
Zeng
Cc: Eric Dong
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c| 4 ++--
MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions
: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf | 1 +
UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 34 ---
2 files changed, 32 insertions(+), 3 deletions(-)
diff --git a
Cc: Star Zeng
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/MdeModulePkg.dec | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec
index
Due to coding style fix of the structure definition in BaseLib.h, all
code referencing those structure must be updated accordingly.
Cc: Dandan Bi
Cc: Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
.../Ia32
This patch series are meant for cleaning up code according to coding style
requirements.
Jian J Wang (4):
MdePkg/BaseLib.h: Coding style clean-up
MdeModulePkg/Core: Coding style clean-up
UefiCpuPkg/UefiCpuPkg.uni: Add missing string definition for new PCDs
UefiCpuPkg: Update code to use
Cc: Dandan Bi
Cc: Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/UefiCpuPkg.uni | 16 ++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/UefiCpuPkg/UefiCpuPkg.uni b/UefiCpuPkg
Cc: Dandan Bi
Cc: Star Zeng
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdePkg/Include/Library/BaseLib.h | 72
1 file changed, 36 insertions(+), 36 deletions(-)
diff --git a/MdePkg/Include
Cc: Dandan Bi
Cc: Star Zeng
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c
b
TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdePkg/Library/BasePrintLib/PrintLibInternal.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/MdePkg/Library/BasePrintLib/PrintLibInternal.c
b/MdePkg/Library/BasePrintLib/PrintLibInternal.c
index
tail guard page cannot be guaranteed.
Cc: Star Zeng
Cc: Eric Dong
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 31 ++-
MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c
tring (index, index+1) inside the loop might cause the
string ending character ('\0') and the byte after it to be read.
Jian J Wang (2):
MdePkg/BasePrintLib: Fix error in Precision position calculation
MdeModulePkg/DxePrintLibPrint2Protocol: Fix potential string over read
'\0') and the byte after it to be read.
Cc: Michael D Kinney
Cc: Liming Gao
Cc: Jiewen Yao
Cc: Star Zeng
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdePkg/Library/BasePrintLib/PrintLibInternal.c | 7 +--
1 file changed, 5 inserti
en Yao
Cc: Star Zeng
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/MdeModulePkg/Library/DxePrintLibPrint2Protoc
Cc: Star Zeng
Cc: Eric Dong
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MdeModulePkg/Library
Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 17 +++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c
b/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c
index 40c1bf407a..05484c9ff3
t has the same issue too. So the fix is also the same.
Cc: Liming Gao
Cc: Jiewen Yao
Cc: Star Zeng
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c | 8 ++--
1 file changed, 6 insertions(
This is caused by previous patch tring to fix string over-read. The root
cause is that the format string may be ascii or unicode but that patch
assumes it just ascii string.
Jian J Wang (2):
MdePkg/BasePrintLib: Fix incomplete print output
MdeModulePkg/DxePrintLibPrint2Protocol: Fix
This is caused by previous patch which tried to fix string over-read,
which breaks UEFI menu rendering: the following
/--\
| Device Manager |
\-
Cc: Star Zeng
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/MdeModulePkg.dec | 12
1 file changed, 12 insertions(+)
diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec
index 037b16e2d0
alization will reuse the stack allocated
at PEI phase, if MP was initialized before. Some code added to check this
situation and use stack base address saved in HOB passed from PEI.
Cc: Jiewen Yao
Cc: Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement
PEI.
Cc: Jiewen Yao
Cc: Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 19 ++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/UefiCpuPkg/Library/MpInitLib/Dxe
> b. Fix cpu0's ApTopOfStack initialization.
> c. Fix wrong debug print format.
The reason is that DXE part initialization will reuse the stack allocated
at PEI phase, if MP was initialized before. Some code added to check this
situation and use stack base address saved in HOB passed from PEI.
hough this stack
is not used for BSP, it's should be fixed in case of misunderstanding and
future possible code changes.
Cc: Jiewen Yao
Cc: Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/Library/MpInitLib/MpLib.c | 2
Cc: Dandan Bi
Cc: Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c
b/UefiCpuPkg
just switch to protected mode and
jump to higher memory, in which the init code will enable paging and
switch to long mode.
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/Library/MpIn
J Wang
---
UefiCpuPkg/CpuDxe/CpuPageTable.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/UefiCpuPkg/CpuDxe/CpuPageTable.c b/UefiCpuPkg/CpuDxe/CpuPageTable.c
index a9c9bc9d5e..1654e71103 100644
--- a/UefiCpuPkg/CpuDxe/CpuPageTable.c
+++ b/UefiCpuPkg/CpuDxe
Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmmInit.nasm | 14 ++
UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmmInit.nasm | 12 +++-
2 files changed, 25 insertions(+), 1 deletion(-)
: Jian J Wang
---
.../Library/CpuExceptionHandlerLib/DxeException.c | 18 ++
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c
b/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c
index 9a72b37e77
NX memory protection feature enabled by PcdDxeNxMemoryProtectionPolicy
was not fully tested, especially if it's enabled for memory with type
of EfiBootServicesCode, EfiConventionalMemory and EfiReservedMemoryType.
This series will fix all issues caused by it.
Jian J Wang (6):
UefiC
attribute for
those memory.
Cc: Jiewen Yao
Cc: Ruiyu Ni
Cc: Eric Dong
Cc: Star Zeng
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c | 18 --
1 file changed, 16 insertions(+), 2 deletions(-)
diff
Agreement 1.1
Signed-off-by: Jian J Wang
---
.../Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf | 1 +
.../Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.c | 14 ++
.../Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.h | 1 +
3 files changed, 16 insertions(+)
diff
ned-off-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuPageTable.c | 4
1 file changed, 4 insertions(+)
diff --git a/UefiCpuPkg/CpuDxe/CpuPageTable.c b/UefiCpuPkg/CpuDxe/CpuPageTable.c
index a9c9bc9d5e..3ad55f65c5 100644
--- a/UefiCpuPkg/CpuDxe/CpuPageTable.c
+++ b/UefiCpuPkg/CpuDxe/CpuPageTable.c
ntribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 15 +
MdeModulePkg/Core/Dxe/Mem/Page.c | 40 ++-
MdeModulePkg/Core/Dxe/Mem/Pool.c | 10 +++--
3 files changed, 29 insertions(+), 36 deletions(-)
di
-by: Jian J Wang
---
UefiCpuPkg/CpuDxe/CpuPageTable.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/UefiCpuPkg/CpuDxe/CpuPageTable.c b/UefiCpuPkg/CpuDxe/CpuPageTable.c
index a9c9bc9d5e..b97a444c09 100644
--- a/UefiCpuPkg/CpuDxe/CpuPageTable.c
+++ b/UefiCpuPkg/CpuDxe/CpuPageTable.c
@@ -597,7
Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
ShellPkg/Library/UefiShellLevel3CommandsLib/Help.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ShellPkg/Library/UefiShellLevel3CommandsLib/Help.c
b/ShellPkg/Library/UefiShellLevel3Commands
: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/Library/MpInitLib/MpLib.c | 20 ++--
UefiCpuPkg/Library/MpInitLib/MpLib.h | 1 +
2 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/UefiCpuPkg/Library
not be evaluated if the expression before it is evaludated as FALSE.
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
ShellPkg/Library/UefiShellLevel3CommandsLib/Help.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
ate wakeup buffer is allocated or not. Ia32/MpFuncs.nasm will
not need ModeHighMemory during AP init. So the changes made in this
patch should not affect the functionality of it.
Cc: Ruiyu Ni
Cc: Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jia
zlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/Library/MpInitLib/MpLib.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c
b/UefiCpuPkg/Library/MpInitLib/MpLib.c
index 4
, including any shell command and UI operation.
The solution is removing the flush operation for AP in CpuDxe driver
and let AP flush TLB after woken up.
Cc: Ruiyu Ni
Cc: Jiewen Yao
Cc: Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
or AP in CpuDxe driver
but let AP do it in its own wakeup code. There's no need to flush TLB
for AP who has no chance to run code.
Jian J Wang (2):
UefiCpuPkg/MpInitLib: force flushing TLB for AP in mwait loop mode
UefiCpuPkg/CpuDxe: remove all code to flush TLB for APs
UefiCpu
: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/Library/MpInitLib/MpLib.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c
b/UefiCpuPkg/Library/MpInitLib/MpLib.c
index 6231968c74..175a4b49e5 100644
--- a/UefiCpuPkg/Library
place
right after calling AdjustMemoryF().
Cc: Ruiyu Ni
Cc: Star Zeng
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 7 +++
MdeModulePkg/Core/Dxe/Mem/Pool.c | 16
2 files change
setting to page 0 if NULL pointer detection feature is enabled.
Cc: 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/Misc/MemoryProtection.c | 20
1 file changed, 16
checking the first and/or last page of a memory block to be
marked as NX, and skipping them if they are Guard pages.
Cc: 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
operation instruction
may have direction flag (DF) set or cleared.
Cc: Eric Dong
Cc: Laszlo Ersek
Cc: Ruiyu Ni
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c | 22 ++
1 file changed, 18
The Heap Guard feature wrapped SmmInternalFreePagesEx with
SmmInternalFreePagesExWithGuard but didn't add necessary
parameter check. This patch fixes this situation.
Cc: Star Zeng
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModu
s instead of just 1 page. Those 2 pages include the page causing
#PF and the page after it.
Cc: Eric Dong
Cc: Laszlo Ersek
Cc: Ruiyu Ni
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c | 21 ++
Signed-off-by: Jian J Wang
---
UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c
b/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c
index 6d1b54d31d..2a090782fc
mReservedApLoopFunc), which is marked as non-executable.
This patch fixes this issue by setting memory of mReservedApLoopFunc to
be executable immediately after allocation.
Cc: Ruiyu Ni
Cc: Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
ely after allocation.
Cc: Ruiyu Ni
Cc: Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 38 +
1 file changed, 34 insertions(+), 4 deletions(-)
dif
ely after allocation.
Cc: Ruiyu Ni
Cc: Eric Dong
Cc: Laszlo Ersek
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 38 +
1 file changed, 34 insertions(+), 4 deletions(-)
dif
ore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 9 +
MdeModulePkg/Core/PiSmmCore/HeapGuard.c | 9 +
2 files changed, 2 insertions(+), 16 deletions(-)
diff --git a/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c
b/MdeModulePkg/Core/Dxe/
ontributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c
b/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c
index 19245049c2..
This patch fixes the same issues in Heap Guard in DXE core, which is fixed
in another patch.
Cc: Star Zeng
Cc: Eric Dong
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/PiSmmCore/HeapGuard.c | 8 ++--
1 file changed
re Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Gcd/Gcd.c | 10 ++
MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 132 +-
MdeModulePkg/Core/Dxe/Mem/HeapGuard.h | 8 ++
MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c |
setting it back to FALSE afterwards in GCD function
CoreAllocateGcdMapEntry().
Cc: Star Zeng
Cc: Eric Dong
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Gcd/Gcd.c | 10 ++
MdeModulePkg/Core/Dxe/Mem/H
integer operation in such situation.
Cc: 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 | 16 ++--
1 file changed, 10 insertions(+), 6 deletions
re Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/Dxe/Gcd/Gcd.c | 10 ++
MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 132 +-
MdeModulePkg/Core/Dxe/Mem/HeapGuard.h | 8 ++
MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c |
integer operation in such situation.
Cc: 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/PiSmmCore/HeapGuard.c | 16 ++--
1 file changed, 10 insertions(+), 6 deletions
tocol installed, and fix an issue observed on 32-bit
real platform with this HeapGuard fix.
Jian J Wang (3):
MdeModulePkg/Core: allow HeapGuard even before CpuArchProtocol
installed
MdeModulePkg/PiSmmCore: fix bits operation error on a boundary
condition
MdeModulePkg/Core: fix bits opera
g
Cc: Jiewen Yao
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
---
MdeModulePkg/Core/PiSmmCore/HeapGuard.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/MdeModulePkg/Core/PiSmmCore/HeapGuard.c
b/MdeModulePkg
gested-by: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang
Jian J Wang (2):
MdeModulePkg/Core: Fix out-of-sync issue in GCD
UefiCpuPkg/CpuDxe: Fix out-of-sync issue in page attributes
MdeModulePkg/Core/Dxe/Gcd/Gcd.c | 45
UefiC
201 - 300 of 343 matches
Mail list logo