Tags: tianocore/edk2
Tags
UefiPayloadPkg/UefiPayloadEntry: Fix PT protection in 5 level paging REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4873 Currently the function does not cover the 5 level paging case. it will casued pagetable protection region set incorrectly. This patch do the enhancemant and with the patch protection region has been set correctly. Signed-off-by: Ning Feng <[email protected]> Cc: Ray Ni <[email protected]>
UnitTestFrameworkPkg: Use TianoCore mirror of subhook submodule Change subhook url from https://github.com/Zeex/subhook to https://github.com/tianocore/edk2-subhook because old url is no longer available. Also align .gitmodules file to use consistent LF line endings. Signed-off-by: Michael D Kinney <[email protected]>
EmulatorPkg: VS2022 Support on WinHost. Currently EDK2 is supporting VS2022, with VS2022 EmulatorPkg build is failing, this patch is to add the VS2022 support for WinHost Signed-off-by: Ashraf Ali <[email protected]>
ArmVirtPkg/ArmVirtQemu: Add RngDxe driver Add the RngDxe driver to the build, backed by either RNDR or TRNG, one of which is expected to be available in most cases: - RNDR is implemented by the 'max' CPU that QEMU implements in TCG mode - TRNG is implemented by the KVM hypervisor, which backs QEMU's 'host' CPU Other TCG modes (e.g., the 'cortex-a*' CPUs) implement neither, which should prevent the RngDxe driver from dispatching entirely, resulting in the same situation as before. Cc: Ard Biesheuvel <[email protected]> Cc: Leif Lindholm <[email protected]> Cc: Sami Mujawar <[email protected]> Cc: Gerd Hoffmann <[email protected]> Committed-by: Ard Biesheuvel <[email protected]> Signed-off-by: Doug Flick [MSFT] <[email protected]> Reviewed-by: Ard Biesheuvel <[email protected]>
UefiCpuPkg/PiSmmCpuDxeSmm: fix NULL deref when gSmmBaseHobGuid is mis… …sing Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=4682 Fixes: 725acd0 Before commit 725acd0 ("UefiCpuPkg: Avoid assuming only one smmbasehob", 2023-12-12), PiCpuSmmEntry() used to look up "gSmmBaseHobGuid", and allocate "mCpuHotPlugData.SmBase" regardless of the GUID's presence: > - mCpuHotPlugData.SmBase = (UINTN *)AllocatePool (sizeof (UINTN) * mMaxNumberOfCpus); > - ASSERT (mCpuHotPlugData.SmBase != NULL); After commit 725acd0, PiCpuSmmEntry() -> GetSmBase() would allocate "mCpuHotPlugData.SmBase" only on the success path, and no allocation would be performed on *any* of the error paths. This caused a problem: if "mCpuHotPlugData.SmBase" was left NULL because the GUID HOB was missing, PiCpuSmmEntry() would still be supposed to allocate "mCpuHotPlugData.SmBase", just like earlier. However, because commit 725acd0 conflated the two possible error modes (out of SMRAM, and no GUID HOB), PiCpuSmmEntry() could not decide whether it should allocate "mCpuHotPlugData.SmBase", or not. Currently, we never allocate if GetSmBase() fails -- for any reason --, which means that on platforms that don't produce the GUID HOB, "mCpuHotPlugData.SmBase" is left NULL, leading to null pointer dereferences later, in PiCpuSmmEntry(). Now that a prior patch in the series distinguishes the two error modes from each other, we can tell exactly when the GUID HOB is not found, and reinstate the earlier "mCpuHotPlugData.SmBase" allocation for that case. (With an actual error check thrown in, in addition to the original "assertion".) Cc: Dun Tan <[email protected]> Cc: Gerd Hoffmann <[email protected]> Cc: Rahul Kumar <[email protected]> Cc: Ray Ni <[email protected]> Reported-by: Gerd Hoffmann <[email protected]> Signed-off-by: Laszlo Ersek <[email protected]> Reviewed-by: Michael D Kinney <[email protected]> Reviewed-by: Leif Lindholm <[email protected]> Reviewed-by: Rahul Kumar <[email protected]> Reviewed-by: Gerd Hoffmann <[email protected]> Tested-by: Gerd Hoffmann <[email protected]>
RedfishPkg: RedfishDiscoverDxe: Optimize the Redfish Discover flow BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4602 Filter out the network interfaces which are not supported by Redfish Host Interface. Cc: Abner Chang <[email protected]> Cc: Nickle Wang <[email protected]> Cc: Mike Maslenkin <[email protected]> Signed-off-by: Igor Kulchytskyy <[email protected]> Acked-by: Leif Lindholm <[email protected]>
OvmfPkg/RiscVVirt: Fix issues in VarStore Blockmap config The block size configuration of Blockmap does not match that in Qemu VirtNorFlash, which causes variable data to be written into FtwWorkBlock by mistake, resulting in data loss during reboot. Fix it and update new checksum value. Signed-off-by: Qingyu Shang <[email protected]> Reviewed-by: Sunil V L <[email protected]>
MdeModulePkg/Core/Pei: set AprioriCount=0 before walking through next FV REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4438 The main dispatch loop in PeiDispatcher() goes through each FV and calls DiscoverPeimsAndOrderWithApriori() to search Apriori file to reorder all PEIMs then do the PEIM dispatched. DiscoverPeimsAndOrderWithApriori() calculates Apriori file count for every FV once and set Private->AprioriCount, but Private->AprioriCount doesn't be set to 0 before dispatch loop walking through the next FV. It causes the peim which sort on less than Private->AprioriCount and depex is not satisfied would be dispatched when dispatch loop go through to a scaned FV, even the peim is not set in APRIORI file. Cc: Leon Chen <[email protected]> Cc: Tim Lewis <[email protected]> Reported-by: Esther Lee <[email protected]> Signed-off-by: Wendy Liao <[email protected]> Reviewed-by: Liming Gao <[email protected]>
OvmfPkg/RiscVVirt: Add Stack HOB REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4350 Currently, stack HOB is not created for the stack memory. This causes stack memory to be treated as free memory and any memory allocation which happens at this address causes random memory corruption. Fix this by creating the stack HOB which marks the memory as BS data. Cc: Liming Gao <[email protected]> Cc: Andrei Warkentin <[email protected]> Cc: Ard Biesheuvel <[email protected]> Cc: Jiewen Yao <[email protected]> Cc: Jordan Justen <[email protected]> Cc: Gerd Hoffmann <[email protected]> Signed-off-by: Sunil V L <[email protected]> Reported-by: Andrei Warkentin <[email protected]> Tested-by: Andrei Warkentin <[email protected]> Reviewed-by: Andrei Warkentin <[email protected]>
pip-requirements.txt: Update to edk2-pytool-extensions 0.20.0 Updates edk2-pytool-extensions to pick up a major version release: 0.19.1 to 0.20.0 changes: - .vscode/settings.json: Enable flake8 linting - Add Pydocstyle - Move dependabot.yml location - Fix typos in robot files - Pydocstyle Updates - Plugin Loader Updates - edk2_stuart_pr_eval: Improve robustness of path comparisons - edk2_pr_eval.py: Build all packages on file change outside package - Allow build wrappers Cc: Sean Brogan <[email protected]> Cc: Michael Kubacki <[email protected]> Cc: Liming Gao <[email protected]> Cc: Andrew Fish <[email protected]> Cc: Leif Lindholm <[email protected]> Signed-off-by: Michael Kubacki <[email protected]> Reviewed-by: Sean Brogan <[email protected]> Reviewed-by: Michael D Kinney <[email protected]>
PreviousNext