Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 820b297fdc503c4882754971f9c74b90014683c0
https://github.com/tianocore/edk2/commit/820b297fdc503c4882754971f9c74b90014683c0
Author: spectrum151 <[email protected]>
Date: 2026-10-07 (Wed, 07 Oct 2026)
Changed paths:
M UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c
Log Message:
-----------
UefiCpuPkg/PiSmmCpuDxeSmm: Fix IdtEntryTable overflow in SmmRestoreCpu
Commit 3454d7ab41 changed SmmRestoreCpu() to clear and load an X64 IDT
of X86_CPU_INTERRUPT_NUM (256) entries, but left the local IdtEntryTable
array sized with EXCEPTION_VECTOR_NUMBER (32).
ZeroMem() and InitializeCpuExceptionHandlers() then write 4 KB into a
512-byte stack array and corrupt the SMM stack on S3 resume. On
platforms with 32-bit PEI and 64-bit SMM this ends in a #GP in
PiSmmCpuDxeSmm before the OS waking vector is reached.
Size IdtEntryTable with X86_CPU_INTERRUPT_NUM to match.
Fixes: 3454d7ab41 ("UefiCpuPkg: Set up 256 IDT Descs in SEC/PEI/SMM")
Fixes: https://github.com/tianocore/edk2/issues/13267
Signed-off-by: spectrum151 <[email protected]>
Commit: 8f73856355ac6a3156f6160694166b8a391fea52
https://github.com/tianocore/edk2/commit/8f73856355ac6a3156f6160694166b8a391fea52
Author: spectrum151 <[email protected]>
Date: 2026-10-07 (Wed, 07 Oct 2026)
Changed paths:
M UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuCommon.c
M UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuCommon.h
Log Message:
-----------
UefiCpuPkg/PiSmmCpuDxeSmm: Remove unused EXCEPTION_VECTOR_NUMBER
After the previous commit, SmmRestoreCpu() no longer uses
EXCEPTION_VECTOR_NUMBER. Its only other user is the
mExternalVectorTable global, which is never referenced.
Remove both.
Signed-off-by: spectrum151 <[email protected]>
Compare: https://github.com/tianocore/edk2/compare/42104f55d135...8f73856355ac
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits