8e51a8153a
- edk2-MdeModulePkg-Change-use-of-EFI_D_-to-DEBUG_.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-MdeModulePkg-Potential-UINT32-overflow-in-S3-ResumeC.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-MdePkg-Apply-uncrustify-changes.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-NetworkPkg-Apply-uncrustify-changes.p2.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-SecurityPkg-RngDxe-Rename-RdRandGenerateEntropy-to-g.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-SecurityPkg-RngDxe-Remove-ArchGetSupportedRngAlgorit.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-SecurityPkg-RngDxe-Documentation-include-parameter-c.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-SecurityPkg-RngDxe-Check-before-advertising-Cpu-Rng-.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-SecurityPkg-RngDxe-Add-AArch64-RawAlgorithm-support-.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-SecurityPkg-RngDxe-Add-debug-warning-for-NULL-PcdCpu.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-SecurityPkg-RngDxe-Rename-AArch64-RngDxe.c.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-SecurityPkg-RngDxe-Add-Arm-support-of-RngDxe.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-SecurityPkg-RngDxe-Correctly-update-mAvailableAlgoAr.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-SecurityPkg-RngDxe-Conditionally-install-EFI_RNG_PRO.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-MdeModulePkg-Duplicate-BaseRngLibTimerLib-to-MdeModu.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-MdePkg-Add-deprecated-warning-to-BaseRngLibTimer.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-SecurityPkg-SecurityPkg.dec-Move-PcdCpuRngSupportedA.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-MdePkg-DxeRngLib-Request-raw-algorithm-instead-of-de.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-MdePkg-Rng-Add-GUID-to-describe-Arm-Rndr-Rng-algorit.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-MdeModulePkg-Rng-Add-GUID-to-describe-unsafe-Rng-alg.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-MdePkg-Rng-Add-GetRngGuid-to-RngLib.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-SecurityPkg-RngDxe-Use-GetRngGuid-when-probing-RngLi.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-SecurityPkg-RngDxe-Simplify-Rng-algorithm-selection-.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-NetworkPkg-SECURITY-PATCH-CVE-2023-45237.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-MdePkg-BaseRngLib-Add-a-smoketest-for-RDRAND-and-che.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-SecurityPkg-RngDxe-add-rng-test.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-OvmfPkg-wire-up-RngDxe.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-CryptoPkg-Test-call-ProcessLibraryConstructorList.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-MdePkg-X86UnitTestHost-set-rdrand-cpuid-bit.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-NetworkPkg-TcpDxe-SECURITY-PATCH-CVE-2023-45236.patch [RHEL-21854 RHEL-21856 RHEL-40099] - edk2-NetworkPkg-TcpDxe-Fixed-system-stuck-on-PXE-boot-flo.patch [RHEL-21854 RHEL-21856 RHEL-40099] - Resolves: RHEL-21854 (CVE-2023-45236 edk2: Predictable TCP Initial Sequence Numbers [rhel-8]) - Resolves: RHEL-21856 (CVE-2023-45237 edk2: Use of a Weak PseudoRandom Number Generator [rhel-8]) - Resolves: RHEL-40099 (CVE-2024-1298 edk2: Temporary DoS vulnerability [rhel-8.10.z])
95 lines
3.2 KiB
Diff
95 lines
3.2 KiB
Diff
From 1198bceefa4834c09e1edc1c558aeffe4930d1f5 Mon Sep 17 00:00:00 2001
|
|
From: Jon Maloy <jmaloy@redhat.com>
|
|
Date: Tue, 11 Jun 2024 21:32:26 -0400
|
|
Subject: [PATCH 03/31] MdePkg: Apply uncrustify changes
|
|
|
|
RH-Author: Jon Maloy <jmaloy@redhat.com>
|
|
RH-MergeRequest: 77: UINT32 overflow in S3 ResumeCount and Pixiefail fixes
|
|
RH-Jira: RHEL-21854 RHEL-21856 RHEL-40099
|
|
RH-Acked-by: Gerd Hoffmann <None>
|
|
RH-Commit: [3/31] 422d94b837bf0e65164968272a358c2656f59838
|
|
|
|
JIRA: https://issues.redhat.com/browse/RHEL-21856
|
|
Upstream: Merged
|
|
CVE: CVE-2023-45237
|
|
|
|
This is a subset of the whitespace changes in the corresponding upstream
|
|
commit. It is needed for the next commits in this series to apply with
|
|
less fewer conflicts.
|
|
|
|
commit 2f88bd3a1296c522317f1c21377876de63de5be7
|
|
Author: Michael Kubacki <michael.kubacki@microsoft.com>
|
|
Date: Sun Dec 5 14:54:05 2021 -0800
|
|
|
|
MdePkg: Apply uncrustify changes
|
|
|
|
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737
|
|
|
|
Apply uncrustify changes to .c/.h files in the MdePkg package
|
|
|
|
Cc: Andrew Fish <afish@apple.com>
|
|
Cc: Leif Lindholm <leif@nuviainc.com>
|
|
Cc: Michael D Kinney <michael.d.kinney@intel.com>
|
|
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
|
|
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
|
|
|
|
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
|
|
---
|
|
MdePkg/Include/Protocol/Rng.h | 24 ++++++++++++------------
|
|
1 file changed, 12 insertions(+), 12 deletions(-)
|
|
|
|
diff --git a/MdePkg/Include/Protocol/Rng.h b/MdePkg/Include/Protocol/Rng.h
|
|
index a0a05d1661..baf425587b 100644
|
|
--- a/MdePkg/Include/Protocol/Rng.h
|
|
+++ b/MdePkg/Include/Protocol/Rng.h
|
|
@@ -93,7 +93,7 @@ typedef EFI_GUID EFI_RNG_ALGORITHM;
|
|
**/
|
|
typedef
|
|
EFI_STATUS
|
|
-(EFIAPI *EFI_RNG_GET_INFO) (
|
|
+(EFIAPI *EFI_RNG_GET_INFO)(
|
|
IN EFI_RNG_PROTOCOL *This,
|
|
IN OUT UINTN *RNGAlgorithmListSize,
|
|
OUT EFI_RNG_ALGORITHM *RNGAlgorithmList
|
|
@@ -123,9 +123,9 @@ EFI_STATUS
|
|
**/
|
|
typedef
|
|
EFI_STATUS
|
|
-(EFIAPI *EFI_RNG_GET_RNG) (
|
|
+(EFIAPI *EFI_RNG_GET_RNG)(
|
|
IN EFI_RNG_PROTOCOL *This,
|
|
- IN EFI_RNG_ALGORITHM *RNGAlgorithm, OPTIONAL
|
|
+ IN EFI_RNG_ALGORITHM *RNGAlgorithm OPTIONAL,
|
|
IN UINTN RNGValueLength,
|
|
OUT UINT8 *RNGValue
|
|
);
|
|
@@ -135,16 +135,16 @@ EFI_STATUS
|
|
/// applications, or entropy for seeding other random number generators.
|
|
///
|
|
struct _EFI_RNG_PROTOCOL {
|
|
- EFI_RNG_GET_INFO GetInfo;
|
|
- EFI_RNG_GET_RNG GetRNG;
|
|
+ EFI_RNG_GET_INFO GetInfo;
|
|
+ EFI_RNG_GET_RNG GetRNG;
|
|
};
|
|
|
|
-extern EFI_GUID gEfiRngProtocolGuid;
|
|
-extern EFI_GUID gEfiRngAlgorithmSp80090Hash256Guid;
|
|
-extern EFI_GUID gEfiRngAlgorithmSp80090Hmac256Guid;
|
|
-extern EFI_GUID gEfiRngAlgorithmSp80090Ctr256Guid;
|
|
-extern EFI_GUID gEfiRngAlgorithmX9313DesGuid;
|
|
-extern EFI_GUID gEfiRngAlgorithmX931AesGuid;
|
|
-extern EFI_GUID gEfiRngAlgorithmRaw;
|
|
+extern EFI_GUID gEfiRngProtocolGuid;
|
|
+extern EFI_GUID gEfiRngAlgorithmSp80090Hash256Guid;
|
|
+extern EFI_GUID gEfiRngAlgorithmSp80090Hmac256Guid;
|
|
+extern EFI_GUID gEfiRngAlgorithmSp80090Ctr256Guid;
|
|
+extern EFI_GUID gEfiRngAlgorithmX9313DesGuid;
|
|
+extern EFI_GUID gEfiRngAlgorithmX931AesGuid;
|
|
+extern EFI_GUID gEfiRngAlgorithmRaw;
|
|
|
|
#endif
|
|
--
|
|
2.39.3
|
|
|