[edk2] [PATCH] Upgrade OpenSSL to 1.1.0j

2018-12-18 Thread Jian J Wang
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

[edk2] [PATCH v2 4/4] UefiCpuPkg/CpuDxe: Enable protection for newly added page table

2017-12-04 Thread Jian J Wang
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

[edk2] [PATCH v2 2/4] MdeModulePkg/PageTablePool.h: Page table pool GUID definition file

2017-12-04 Thread Jian J Wang
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

[edk2] [PATCH v2 3/4] MdeModulePkg/DxeIpl: Mark page table as read-only

2017-12-04 Thread Jian J Wang
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

[edk2] [PATCH v2 1/4] MdeModulePkg/MdeModulePkg.dec: Add new PCDs and Guid

2017-12-04 Thread Jian J Wang
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

[edk2] [PATCH v2 0/4] Enable page table write protection

2017-12-04 Thread Jian J Wang
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

[edk2] [PATCH v3 2/2] UefiCpuPkg/CpuDxe: Enable protection for newly added page table

2017-12-05 Thread Jian J Wang
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

[edk2] [PATCH v3 0/2] Enable page table write protection

2017-12-05 Thread Jian J Wang
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

[edk2] [PATCH v3 1/2] MdeModulePkg/DxeIpl: Mark page table as read-only

2017-12-05 Thread Jian J Wang
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

[edk2] [PATCH 1/3] IntelFrameworkPkg/LegacyBios.h: Add a macro to guarantee page 0 access

2017-12-05 Thread Jian J Wang
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

[edk2] [PATCH 2/3] IntelFrameworkModulePkg/LegacyBiosDxe: Use macro to enable/disable page 0

2017-12-05 Thread Jian J Wang
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

[edk2] [PATCH 0/3] Remove dependency on PcdNullPointerDetectionPropertyMask

2017-12-05 Thread Jian J Wang
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

[edk2] [PATCH 3/3] IntelFrameworkModulePkg/KeyboardDxe: Use macro to enable/disable page 0

2017-12-05 Thread Jian J Wang
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

[edk2] [PATCH v4 02/11] UefiCpuPkg/UefiCpuPkg.dec: Add two new PCDs for stack switch

2017-12-06 Thread Jian J Wang
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

[edk2] [PATCH v4 06/11] MdeModulePkg/CpuExceptionHandlerLibNull: Add new API implementation

2017-12-06 Thread Jian J Wang
: 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

[edk2] [PATCH v4 00/11] Implement stack guard feature

2017-12-06 Thread Jian J Wang
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

[edk2] [PATCH v4 07/11] ArmPkg/ArmExceptionLib: Add implementation of new API

2017-12-06 Thread Jian J Wang
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

[edk2] [PATCH v4 05/11] UefiCpuPkg/CpuExceptionHandlerLib: Add stack switch support

2017-12-06 Thread Jian J Wang
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

[edk2] [PATCH v4 01/11] MdeModulePkg/metafile: Add PCD PcdCpuStackGuard

2017-12-06 Thread Jian J Wang
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

[edk2] [PATCH v4 04/11] MdePkg/BaseLib: Add stack switch related definitions for IA32

2017-12-06 Thread Jian J Wang
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 +

[edk2] [PATCH v4 11/11] MdeModulePkg/DxeIpl: Enable paging for Stack Guard

2017-12-06 Thread Jian J Wang
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

[edk2] [PATCH v4 09/11] UefiCpuPkg/CpuDxe: Initialize stack switch for MP

2017-12-06 Thread Jian J Wang
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

[edk2] [PATCH v4 10/11] MdeModulePkg/Core/Dxe: Call new API InitializeCpuExceptionHandlersEx instead

2017-12-06 Thread Jian J Wang
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.

[edk2] [PATCH v4 08/11] UefiCpuPkg/MpLib: Add GDTR, IDTR and TR in saved AP data

2017-12-06 Thread Jian J Wang
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

[edk2] [PATCH v4 03/11] MdeModulePkg/CpuExceptionHandlerLib.h: Add a new API InitializeCpuExceptionHandlersEx

2017-12-06 Thread Jian J Wang
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

[edk2] [PATCH v2 1/3] IntelFrameworkPkg/LegacyBios.h: Add a macro to guarantee page 0 access

2017-12-06 Thread Jian J Wang
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(+)

[edk2] [PATCH v2 0/3] Remove dependency on PcdNullPointerDetectionPropertyMask

2017-12-06 Thread Jian J Wang
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

[edk2] [PATCH v2 3/3] IntelFrameworkModulePkg/KeyboardDxe: Use macro to enable/disable page 0

2017-12-06 Thread Jian J Wang
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

[edk2] [PATCH v2 2/3] IntelFrameworkModulePkg/LegacyBiosDxe: Use macro to enable/disable page 0

2017-12-06 Thread Jian J Wang
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

[edk2] [PATCH v4 0/2] Enable page table write protection

2017-12-07 Thread Jian J Wang
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

[edk2] [PATCH v4 1/2] MdeModulePkg/DxeIpl: Mark page table as read-only

2017-12-07 Thread Jian J Wang
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

[edk2] [PATCH v4 2/2] UefiCpuPkg/CpuDxe: Enable protection for newly added page table

2017-12-07 Thread Jian J Wang
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

[edk2] [PATCH 1/2] MdeModulePkg/DxeCore: Fix issues in Heap Guard

2017-12-10 Thread Jian J Wang
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

[edk2] [PATCH 0/2] Fix issues in Heap Guard

2017-12-10 Thread Jian J Wang
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

[edk2] [PATCH 2/2] MdeModulePkg/PiSmmCore: Fix issues in Heap Guard

2017-12-10 Thread Jian J Wang
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

[edk2] [PATCH] UefiCpuPkg/CpuDxe: Add initialization to local variable

2017-12-11 Thread Jian J Wang
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

[edk2] [PATCH] MdeModulePkg/DxeIplPeim: fix incorrect page table split during protecting

2017-12-14 Thread Jian J Wang
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

[edk2] [PATCH] MdeModulePkg/Core: Fix incorrect memory map generated in a rare case

2017-12-18 Thread Jian J Wang
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

[edk2] [PATCH] UefiCpuPkg/MpInitLib: Fix incorrect Guard page setup for APs

2017-12-20 Thread Jian J Wang
: 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

[edk2] [PATCH] MdeModulePkg/MdeModulePkg.dec: Clarify usage of PcdHeapGuardPropertyMask

2017-12-20 Thread Jian J Wang
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

[edk2] [PATCH 4/4] UefiCpuPkg: Update code to use new structure field names

2017-12-24 Thread Jian J Wang
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

[edk2] [PATCH 0/4] Coding style clean-up

2017-12-24 Thread Jian J Wang
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

[edk2] [PATCH 3/4] UefiCpuPkg/UefiCpuPkg.uni: Add missing string definition for new PCDs

2017-12-24 Thread Jian J Wang
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

[edk2] [PATCH 1/4] MdePkg/BaseLib.h: Coding style clean-up

2017-12-24 Thread Jian J Wang
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

[edk2] [PATCH 2/4] MdeModulePkg/Core: Coding style clean-up

2017-12-24 Thread Jian J Wang
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

[edk2] [PATCH] MdePkg/BasePrintLib: Fix incorrect Precision position calculation

2017-12-24 Thread Jian J Wang
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

[edk2] [PATCH 1/2] MdeModulePkg/Core: Fix heap guard issues

2017-12-24 Thread Jian J Wang
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

[edk2] [PATCH v2 0/2] Fix error in PrintLib

2017-12-27 Thread Jian J Wang
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

[edk2] [PATCH v2 1/2] MdePkg/BasePrintLib: Fix error in Precision position calculation

2017-12-27 Thread Jian J Wang
'\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

[edk2] [PATCH v2 2/2] MdeModulePkg/DxePrintLibPrint2Protocol: Fix potential string over read

2017-12-27 Thread Jian J Wang
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

[edk2] [PATCH] MdeModulePkg/DxePrintLibPrint2Protocol: fix GCC5 build break

2017-12-28 Thread Jian J Wang
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

[edk2] [PATCH] UefiCpuPkg/MpInitLib: fix wrong base address set as Stack Guard

2017-12-29 Thread Jian J Wang
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

[edk2] [PATCH 2/2] MdeModulePkg/DxePrintLibPrint2Protocol: Fix incomplete print output

2018-01-02 Thread Jian J Wang
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(

[edk2] [PATCH 0/2] Fix incomplete print output

2018-01-02 Thread Jian J Wang
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

[edk2] [PATCH 1/2] MdePkg/BasePrintLib: Fix incomplete print output

2018-01-02 Thread Jian J Wang
This is caused by previous patch which tried to fix string over-read, which breaks UEFI menu rendering: the following /--\ | Device Manager | \-

[edk2] [PATCH] MdeModulePkg/MdeModulePkg.dec: clarify Heap Guard usage

2018-01-02 Thread Jian J Wang
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

[edk2] [PATCH v2] UefiCpuPkg/MpInitLib: fix wrong base address set as Stack Guard

2018-01-03 Thread Jian J Wang
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

[edk2] [PATCH v3 2/2] UefiCpuPkg/MpInitLib: fix wrong address set as Stack Guard for APs

2018-01-07 Thread Jian J Wang
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

[edk2] [PATCH v3 0/2] Fix wrong address set as Stack Guard for APs

2018-01-07 Thread Jian J Wang
> 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.

[edk2] [PATCH v3 1/2] UefiCpuPkg/MpInitLib: fix incorrect stack top init for cpu0

2018-01-07 Thread Jian J Wang
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

[edk2] [PATCH] UefiCpuPkg/MpInitLib: fix 32-bit build error

2018-01-10 Thread Jian J Wang
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

[edk2] [PATCH 1/6] UefiCpuPkg/MpInitLib: split wake up buffer into two parts

2018-01-15 Thread Jian J Wang
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

[edk2] [PATCH 3/6] UefiCpuPkg/CpuDxe: clear NX attr for page directory

2018-01-15 Thread Jian J Wang
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

[edk2] [PATCH 4/6] UefiCpuPkg/PiSmmCpuDxeSmm: Enable NXE if it's supported

2018-01-15 Thread Jian J Wang
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(-)

[edk2] [PATCH 2/6] UefiCpuPkg/CpuExceptionHandlerLib: alloc code memory for exception handlers

2018-01-15 Thread Jian J Wang
: 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

[edk2] [PATCH 0/6] Fix issues caused by NX memory protection

2018-01-15 Thread Jian J Wang
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

[edk2] [PATCH 5/6] MdeModulePkg/PiSmmCore: remove NX attr for SMM RAM

2018-01-15 Thread Jian J Wang
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

[edk2] [PATCH 6/6] MdeModulePkg/BootScriptExecutorDxe: remove NX attr for FfsBuffer

2018-01-15 Thread Jian J Wang
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

[edk2] [PATCH] UefiCpuPkg/CpuDxe: fix SetMemoryAttributes issue in 32-bit mode

2018-01-15 Thread Jian J Wang
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

[edk2] [PATCH] MdeModulePkg/Core: fix a logic hole in page free

2018-01-17 Thread Jian J Wang
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

[edk2] [PATCH] UefiCpuPkg/CpuDxe: fix bad boot performance

2018-01-17 Thread Jian J Wang
-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

[edk2] [PATCH] ShellPkg/UefiShellLevel3CommandsLib: fix string over-read

2018-01-22 Thread Jian J Wang
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

[edk2] [PATCH] UefiCpuPkg/MpInitLib: fix issue in wakeup buffer initialization

2018-01-23 Thread Jian J Wang
: 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

[edk2] [PATCH] ShellPkg/UefiShellLevel3CommandsLib: fix string over-read

2018-01-23 Thread Jian J Wang
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

[edk2] [PATCH] UefiCpuPkg/MpInitLib: fix AP init issue in 64-bit PEI

2018-01-24 Thread Jian J Wang
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

[edk2] [PATCH v2] UefiCpuPkg/MpInitLib: fix AP init issue in 64-bit PEI

2018-01-24 Thread Jian J Wang
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

[edk2] [PATCH 2/2] UefiCpuPkg/CpuDxe: remove all code to flush TLB for APs

2018-01-26 Thread Jian J Wang
, 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

[edk2] [PATCH 0/2] Fix bad performance in changing page attributes

2018-01-26 Thread 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

[edk2] [PATCH 1/2] UefiCpuPkg/MpInitLib: force flushing TLB for AP in mwait loop mode

2018-01-26 Thread Jian J Wang
: 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

[edk2] [PATCH] MdeModulePkg/Core: fix guard page missing issue

2018-01-28 Thread Jian J Wang
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

[edk2] [PATCH] MdeModulePkg/Core: fix feature conflict between NX and NULL detection

2018-01-29 Thread Jian J Wang
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

[edk2] [PATCH] MdeModulePkg/Core: fix feature conflict between NX and heap guard

2018-01-29 Thread Jian J Wang
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

[edk2] [PATCH] UefiCpuPkg/PiSmmCpuDxeSmm: fix infinite loop issue in SMM profile

2018-02-05 Thread Jian J Wang
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

[edk2] [PATCH] MdeModulePkg/PiSmmCore: add API parameter check

2018-02-05 Thread Jian J Wang
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

[edk2] [PATCH v2] UefiCpuPkg/PiSmmCpuDxeSmm: fix infinite loop issue in SMM profile

2018-02-06 Thread Jian J Wang
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 ++

[edk2] [PATCH] UefiCpuPkg/CpuExceptionHandlerLib: fix incorrect init of exception stack

2018-02-26 Thread Jian J Wang
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

[edk2] [PATCH] UefiCpuPkg/MpInitLib: put mReservedApLoopFunc in executable memory

2018-03-01 Thread Jian J Wang
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

[edk2] [PATCH] UefiCpuPkg/MpInitLib: put mReservedApLoopFunc in executable memory

2018-03-03 Thread 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

[edk2] [PATCH v2] UefiCpuPkg/MpInitLib: put mReservedApLoopFunc in executable memory

2018-03-03 Thread 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

[edk2] [PATCH] MdeModulePkg/Core: fix too many available pages between BS_Data

2018-03-06 Thread Jian J Wang
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/

[edk2] [PATCH] MdeModulePkg/Core: fix mem alloc issues in heap guard

2018-03-12 Thread Jian J Wang
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..

[edk2] [PATCH] MdeModulePkg/PiSmmCore: fix mem alloc issues in heap guard

2018-03-13 Thread Jian J Wang
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

[edk2] [PATCH] MdeModulePkg/Core: allow HeapGuard even before CpuArchProtocol installed

2018-03-14 Thread Jian J Wang
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 |

[edk2] [PATCH] MdeModulePkg/Core: allow HeapGuard even before CpuArchProtocol installed

2018-03-14 Thread Jian J Wang
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

[edk2] [PATCH v3 3/3] MdeModulePkg/Core: fix bits operation error on a boundary condition

2018-03-14 Thread Jian J Wang
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

[edk2] [PATCH v3 1/3] MdeModulePkg/Core: allow HeapGuard even before CpuArchProtocol installed

2018-03-14 Thread Jian J Wang
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 |

[edk2] [PATCH v3 2/3] MdeModulePkg/PiSmmCore: fix bits operation error on a boundary condition

2018-03-14 Thread Jian J Wang
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

[edk2] [PATCH v3 0/3] fix empty window period of HeapGuard before CpuArchProtocol

2018-03-14 Thread Jian J Wang
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

[edk2] [PATCH] MdeModulePkg/PiSmmCore: fix #PF caused by freeing read-only memory

2018-03-14 Thread Jian J Wang
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

[edk2] [PATCH 0/2] Fixe out-of-sync issue between GCD and CPU driver

2017-09-17 Thread Jian J Wang
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

<    1   2   3   4   >