From: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 06/11] ovmf: upgrade edk2-stable202605 -> edk2-stable202611
Date: Tue, 24 Nov 2026 18:18:02 +0100 [thread overview]
Message-ID: <20261124171807.74394-7-jaipaul.cheernam@est.tech> (raw)
In-Reply-To: <20261124171807.74394-1-jaipaul.cheernam@est.tech>
Release information: [1]
* remove patches included in this release: [2] and [3]
0005-CryptoPkg-IntrinsicLib-fix-memcpy-alias-prototype-fo.patch
CVE-2026-111497_p1.patch
CVE-2026-111497_p2.patch
* refresh remaining patches
Tested with oe-selftest on qemux86-64 (kvm):
efibootpartition.GenericEFITest.test_boot_efi: PASSED
wic.Wic2.test_efi_plugin_plain_systemd_boot_qemu_x86: PASSED
wic.Wic2.test_qemu_efi: PASSED
[1] https://github.com/tianocore/edk2/releases/tag/edk2-stable202611
[2] https://github.com/tianocore/edk2/commit/a4610f9cfe
[3] https://github.com/google/brotli/commit/b418fa81c48262a86a95332b0bc6d62c30aa78b6
Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
...ovmf-update-path-to-native-BaseTools.patch | 2 +-
...ile-adjust-to-build-in-under-bitbake.patch | 2 +-
.../ovmf/ovmf/0003-debug-prefix-map.patch | 14 +-
.../ovmf/ovmf/0004-reproducible.patch | 10 +-
...sicLib-fix-memcpy-alias-prototype-fo.patch | 35 ---
.../ovmf/ovmf/CVE-2026-111497_p1.patch | 239 ------------------
.../ovmf/ovmf/CVE-2026-111497_p2.patch | 239 ------------------
meta/recipes-core/ovmf/ovmf_git.bb | 7 +-
8 files changed, 16 insertions(+), 532 deletions(-)
delete mode 100644 meta/recipes-core/ovmf/ovmf/0005-CryptoPkg-IntrinsicLib-fix-memcpy-alias-prototype-fo.patch
delete mode 100644 meta/recipes-core/ovmf/ovmf/CVE-2026-111497_p1.patch
delete mode 100644 meta/recipes-core/ovmf/ovmf/CVE-2026-111497_p2.patch
diff --git a/meta/recipes-core/ovmf/ovmf/0001-ovmf-update-path-to-native-BaseTools.patch b/meta/recipes-core/ovmf/ovmf/0001-ovmf-update-path-to-native-BaseTools.patch
index 7590c7b2bd..7db401bca3 100644
--- a/meta/recipes-core/ovmf/ovmf/0001-ovmf-update-path-to-native-BaseTools.patch
+++ b/meta/recipes-core/ovmf/ovmf/0001-ovmf-update-path-to-native-BaseTools.patch
@@ -1,4 +1,4 @@
-From 7a517d144ead6a50baab6eaf7d6d763620243440 Mon Sep 17 00:00:00 2001
+From a024827c18c4b0fe66cf300be74796716d8fe302 Mon Sep 17 00:00:00 2001
From: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Date: Thu, 9 Jun 2016 02:23:01 -0700
Subject: [PATCH] ovmf: update path to native BaseTools
diff --git a/meta/recipes-core/ovmf/ovmf/0002-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch b/meta/recipes-core/ovmf/ovmf/0002-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch
index b8f4feae5f..5affbbd1c7 100644
--- a/meta/recipes-core/ovmf/ovmf/0002-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch
+++ b/meta/recipes-core/ovmf/ovmf/0002-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch
@@ -1,4 +1,4 @@
-From 5f9cc244e566bd28a2a9c46454d206d795a02847 Mon Sep 17 00:00:00 2001
+From ee8967f7d89d327b5d982068b34eaec83b7c43c6 Mon Sep 17 00:00:00 2001
From: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Date: Fri, 26 Jul 2019 17:34:26 -0400
Subject: [PATCH] BaseTools: makefile: adjust to build in under bitbake
diff --git a/meta/recipes-core/ovmf/ovmf/0003-debug-prefix-map.patch b/meta/recipes-core/ovmf/ovmf/0003-debug-prefix-map.patch
index 0f07aa1924..e9e8a05b95 100644
--- a/meta/recipes-core/ovmf/ovmf/0003-debug-prefix-map.patch
+++ b/meta/recipes-core/ovmf/ovmf/0003-debug-prefix-map.patch
@@ -1,4 +1,4 @@
-From ce5cd61548663f85845b8c645f21185fc7419b1b Mon Sep 17 00:00:00 2001
+From cea9efb2161bd519dba02d0536d090ae59a8231a Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex.kanavin@gmail.com>
Date: Mon, 14 Jun 2021 19:56:28 +0200
Subject: [PATCH] debug prefix map
@@ -22,19 +22,19 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template
-index eca4cb82d0..7ccbb9c763 100644
+index 4d51737bbe..4a2098851d 100644
--- a/BaseTools/Conf/tools_def.template
+++ b/BaseTools/Conf/tools_def.template
-@@ -925,7 +925,7 @@ NOOPT_*_*_OBJCOPY_ADDDEBUGFLAG = --add-gnu-debuglink="$(DEBUG_DIR)/$(MODULE_
+@@ -587,7 +587,7 @@ NOOPT_*_*_OBJCOPY_ADDDEBUGFLAG = --add-gnu-debuglink="$(DEBUG_DIR)/$(MODULE_
*_*_*_DTC_PATH = DEF(DTC_BIN)
- # All supported GCC archs except LOONGARCH64 support -mstack-protector-guard=global, so set that on everything except LOONGARCH64
+ # Because LOONGARCH64 supports global stack protector guard by default, it does not support the parameter -mstack-protector-guard=global, and this parameter will be supported in GCC17. So set that on every thing except LOONGARCH64.
-DEFINE GCC_ALL_CC_COMMON = -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno-common -fstack-protector
-+DEFINE GCC_ALL_CC_COMMON = -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno-common -fstack-protector ENV(GCC_PREFIX_MAP)
++DEFINE GCC_ALL_CC_COMMON = -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno-common -fstack-protector ENV(GCC_PREFIX_MAP)
DEFINE GCC_IA32_X64_CC_FLAGS = -mstack-protector-guard=global
- DEFINE GCC_LOONGARCH64_CC_FLAGS = DEF(GCC_ALL_CC_COMMON) -mabi=lp64d -fno-asynchronous-unwind-tables -Wno-address -fno-short-enums -fsigned-char -ffunction-sections -fdata-sections -march=loongarch64 -mno-memcpy -Werror -Wno-maybe-uninitialized -Wno-stringop-overflow -Wno-pointer-to-int-cast -no-pie -fno-stack-protector -mno-explicit-relocs -mno-relax
+ DEFINE GCC_LOONGARCH64_CC_FLAGS = DEF(GCC_ALL_CC_COMMON) -mabi=lp64d -fno-asynchronous-unwind-tables -Wno-address -fno-short-enums -fsigned-char -ffunction-sections -fdata-sections -march=loongarch64 -mno-memcpy -Werror -Wno-maybe-uninitialized -Wno-stringop-overflow -Wno-pointer-to-int-cast -no-pie -mno-explicit-relocs -mno-relax
DEFINE GCC_AARCH64_CC_COMMON = DEF(GCC_ALL_CC_COMMON) -mlittle-endian -fno-short-enums -fverbose-asm -funsigned-char -ffunction-sections -fdata-sections -Wno-address -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-pic -fno-pie -ffixed-x18 -mstack-protector-guard=global
-@@ -936,8 +936,8 @@ DEFINE GCC_AARCH64_DLINK_COMMON = -Wl,--emit-relocs -nostdlib -Wl,--gc-se
+@@ -598,8 +598,8 @@ DEFINE GCC_AARCH64_DLINK_COMMON = -Wl,--emit-relocs -nostdlib -Wl,--gc-se
DEFINE GCC_LOONGARCH64_DLINK_COMMON = -Wl,--emit-relocs -nostdlib -Wl,--gc-sections -u $(IMAGE_ENTRY_POINT) -Wl,-e,$(IMAGE_ENTRY_POINT),-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map -z common-page-size=0x20
DEFINE GCC_AARCH64_ASLDLINK_COMMON = DEF(GCC_AARCH64_DLINK_COMMON) -Wl,--entry,ReferenceAcpiTable -u $(IMAGE_ENTRY_POINT) -Wl,--defsym=PECOFF_HEADER_SIZE=0 DEF(GCC_DLINK2_FLAGS_COMMON) -z common-page-size=0x20
DEFINE GCC_LOONGARCH64_ASLDLINK_COMMON = DEF(GCC_LOONGARCH64_DLINK_COMMON) -Wl,--entry,ReferenceAcpiTable -u $(IMAGE_ENTRY_POINT)
diff --git a/meta/recipes-core/ovmf/ovmf/0004-reproducible.patch b/meta/recipes-core/ovmf/ovmf/0004-reproducible.patch
index 68a49d90d5..b9274c7db7 100644
--- a/meta/recipes-core/ovmf/ovmf/0004-reproducible.patch
+++ b/meta/recipes-core/ovmf/ovmf/0004-reproducible.patch
@@ -1,4 +1,4 @@
-From 8ae6441f19c71347acab1e789517035ee458449e Mon Sep 17 00:00:00 2001
+From 8455a4bbfb0edc49a99108efc08f412b2f4d912a Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex.kanavin@gmail.com>
Date: Mon, 14 Jun 2021 19:57:30 +0200
Subject: [PATCH] reproducible
@@ -35,7 +35,7 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
4 files changed, 24 insertions(+), 16 deletions(-)
diff --git a/BaseTools/Source/C/GenFw/Elf64Convert.c b/BaseTools/Source/C/GenFw/Elf64Convert.c
-index bf4baf05d7..295f3f6efb 100644
+index 4b8afb0683..4ebe2885ba 100644
--- a/BaseTools/Source/C/GenFw/Elf64Convert.c
+++ b/BaseTools/Source/C/GenFw/Elf64Convert.c
@@ -15,6 +15,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
@@ -47,7 +47,7 @@ index bf4baf05d7..295f3f6efb 100644
#endif
#include <assert.h>
#include <stdio.h>
-@@ -996,7 +998,7 @@ ScanSections64 (
+@@ -1016,7 +1018,7 @@ ScanSections64 (
}
mCoffOffset = mDebugOffset + sizeof(EFI_IMAGE_DEBUG_DIRECTORY_ENTRY) +
sizeof(EFI_IMAGE_DEBUG_CODEVIEW_NB10_ENTRY) +
@@ -56,7 +56,7 @@ index bf4baf05d7..295f3f6efb 100644
//
// Add more space in the .debug data region for the DllCharacteristicsEx
-@@ -2330,7 +2332,7 @@ WriteDebug64 (
+@@ -2449,7 +2451,7 @@ WriteDebug64 (
EFI_IMAGE_DEBUG_CODEVIEW_NB10_ENTRY *Nb10;
EFI_IMAGE_DEBUG_EX_DLLCHARACTERISTICS_ENTRY *DllEntry;
@@ -65,7 +65,7 @@ index bf4baf05d7..295f3f6efb 100644
NtHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)(mCoffFile + mNtHdrOffset);
DataDir = &NtHdr->Pe32Plus.OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_DEBUG];
-@@ -2363,7 +2365,7 @@ WriteDebug64 (
+@@ -2482,7 +2484,7 @@ WriteDebug64 (
Nb10 = (EFI_IMAGE_DEBUG_CODEVIEW_NB10_ENTRY*)(Dir + 1);
Nb10->Signature = CODEVIEW_SIGNATURE_NB10;
diff --git a/meta/recipes-core/ovmf/ovmf/0005-CryptoPkg-IntrinsicLib-fix-memcpy-alias-prototype-fo.patch b/meta/recipes-core/ovmf/ovmf/0005-CryptoPkg-IntrinsicLib-fix-memcpy-alias-prototype-fo.patch
deleted file mode 100644
index 0921f21347..0000000000
--- a/meta/recipes-core/ovmf/ovmf/0005-CryptoPkg-IntrinsicLib-fix-memcpy-alias-prototype-fo.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From: Sunil Dora <sunilkumar.dora@windriver.com>
-Date: Wed, 20 Aug 2026 10:45:00 +0530
-Subject: [PATCH] CryptoPkg/IntrinsicLib: fix memcpy alias prototype for clang
-
-The clang-only memcpy alias declares its size parameter as unsigned int
-while the __memcpy aliasee uses size_t (UINTN, unsigned long long on
-X64). clang 23 diagnoses mismatched alias/aliasee types via the new
--Wattribute-alias warning, which the CLANGDWARF build's -Werror turns
-into a hard error:
-
- CopyMem.c:29:17: error: alias and aliasee have different types
- 'void *(void *, const void *, unsigned int)' and
- 'void *(void *, const void *, size_t)' [-Werror,-Wattribute-alias]
-
-Declare the alias with size_t, matching the aliasee on every
-architecture (UINTN is unsigned int on IA32, unsigned long long on X64).
-
-Upstream-Status: Submitted [https://github.com/tianocore/edk2/pull/13038]
-Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com>
----
---- a/CryptoPkg/Library/IntrinsicLib/CopyMem.c
-+++ b/CryptoPkg/Library/IntrinsicLib/CopyMem.c
-@@ -29,9 +29,9 @@
- __attribute__ ((__alias__ ("__memcpy")))
- void *
- memcpy (
-- void *dest,
-- const void *src,
-- unsigned int count
-+ void *dest,
-+ const void *src,
-+ size_t count
- );
-
- #else
diff --git a/meta/recipes-core/ovmf/ovmf/CVE-2026-111497_p1.patch b/meta/recipes-core/ovmf/ovmf/CVE-2026-111497_p1.patch
deleted file mode 100644
index 624515cacb..0000000000
--- a/meta/recipes-core/ovmf/ovmf/CVE-2026-111497_p1.patch
+++ /dev/null
@@ -1,239 +0,0 @@
-From 3949252908321a51c536961b05faba022cc129d6 Mon Sep 17 00:00:00 2001
-From: Evgenii Kliuchnikov <eustas@google.com>
-Date: Fri, 27 Feb 2026 05:10:32 -0800
-Subject: [PATCH] Detect and report invalid stream earlier.
-
-PiperOrigin-RevId: 876198329
-
-CVE: CVE-2026-111497
-Upstream-Status: Backport [https://github.com/google/brotli/commit/b418fa81c48262a86a95332b0bc6d62c30aa78b6]
-
-(cherry picked from commit 0ed4268a4401abcb4472096340477cf4af7d1a2b)
-Signed-off-by: Devansh Patel <devanshp@cisco.com>
----
- c/dec/decode.c | 89 ++++++++++++++++++++++++++-------------
- c/include/brotli/decode.h | 4 +-
- 2 files changed, 60 insertions(+), 33 deletions(-)
-
-diff --git a/c/dec/decode.c b/c/dec/decode.c
-index e87e7f5..74db1a2 100644
---- a/c/dec/decode.c
-+++ b/c/dec/decode.c
-@@ -1176,7 +1176,7 @@ static BrotliDecoderErrorCode DecodeContextMap(brotli_reg_t context_map_size,
-
- /* Decodes a command or literal and updates block type ring-buffer.
- Reads 3..54 bits. */
--static BROTLI_INLINE BROTLI_BOOL DecodeBlockTypeAndLength(
-+static BROTLI_INLINE BrotliDecoderErrorCode DecodeBlockTypeAndLength(
- int safe, BrotliDecoderState* s, int tree_type) {
- brotli_reg_t max_block_type = s->num_block_types[tree_type];
- const HuffmanCode* type_tree = &s->block_type_trees[
-@@ -1187,7 +1187,7 @@ static BROTLI_INLINE BROTLI_BOOL DecodeBlockTypeAndLength(
- brotli_reg_t* ringbuffer = &s->block_type_rb[tree_type * 2];
- brotli_reg_t block_type;
- if (max_block_type <= 1) {
-- return BROTLI_FALSE;
-+ return BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH;
- }
-
- /* Read 0..15 + 3..39 bits. */
-@@ -1197,11 +1197,13 @@ static BROTLI_INLINE BROTLI_BOOL DecodeBlockTypeAndLength(
- } else {
- BrotliBitReaderState memento;
- BrotliBitReaderSaveState(br, &memento);
-- if (!SafeReadSymbol(type_tree, br, &block_type)) return BROTLI_FALSE;
-+ if (!SafeReadSymbol(type_tree, br, &block_type)) {
-+ return BROTLI_DECODER_NEEDS_MORE_INPUT;
-+ }
- if (!SafeReadBlockLength(s, &s->block_length[tree_type], len_tree, br)) {
- s->substate_read_block_length = BROTLI_STATE_READ_BLOCK_LENGTH_NONE;
- BrotliBitReaderRestoreState(br, &memento);
-- return BROTLI_FALSE;
-+ return BROTLI_DECODER_NEEDS_MORE_INPUT;
- }
- }
-
-@@ -1217,7 +1219,7 @@ static BROTLI_INLINE BROTLI_BOOL DecodeBlockTypeAndLength(
- }
- ringbuffer[0] = ringbuffer[1];
- ringbuffer[1] = block_type;
-- return BROTLI_TRUE;
-+ return BROTLI_DECODER_SUCCESS;
- }
-
- static BROTLI_INLINE void DetectTrivialLiteralBlockTypes(
-@@ -1254,62 +1256,68 @@ static BROTLI_INLINE void PrepareLiteralDecoding(BrotliDecoderState* s) {
-
- /* Decodes the block type and updates the state for literal context.
- Reads 3..54 bits. */
--static BROTLI_INLINE BROTLI_BOOL DecodeLiteralBlockSwitchInternal(
-+static BROTLI_INLINE BrotliDecoderErrorCode DecodeLiteralBlockSwitchInternal(
- int safe, BrotliDecoderState* s) {
-- if (!DecodeBlockTypeAndLength(safe, s, 0)) {
-- return BROTLI_FALSE;
-+ BrotliDecoderErrorCode result = DecodeBlockTypeAndLength(safe, s, 0);
-+ if (result != BROTLI_DECODER_SUCCESS) {
-+ return result;
- }
- PrepareLiteralDecoding(s);
-- return BROTLI_TRUE;
-+ return BROTLI_DECODER_SUCCESS;
- }
-
--static void BROTLI_NOINLINE DecodeLiteralBlockSwitch(BrotliDecoderState* s) {
-- DecodeLiteralBlockSwitchInternal(0, s);
-+static BROTLI_NOINLINE BrotliDecoderErrorCode
-+DecodeLiteralBlockSwitch(BrotliDecoderState* s) {
-+ return DecodeLiteralBlockSwitchInternal(0, s);
- }
-
--static BROTLI_BOOL BROTLI_NOINLINE SafeDecodeLiteralBlockSwitch(
-+static BROTLI_NOINLINE BrotliDecoderErrorCode SafeDecodeLiteralBlockSwitch(
- BrotliDecoderState* s) {
- return DecodeLiteralBlockSwitchInternal(1, s);
- }
-
- /* Block switch for insert/copy length.
- Reads 3..54 bits. */
--static BROTLI_INLINE BROTLI_BOOL DecodeCommandBlockSwitchInternal(
-+static BROTLI_INLINE BrotliDecoderErrorCode DecodeCommandBlockSwitchInternal(
- int safe, BrotliDecoderState* s) {
-- if (!DecodeBlockTypeAndLength(safe, s, 1)) {
-- return BROTLI_FALSE;
-+ BrotliDecoderErrorCode result = DecodeBlockTypeAndLength(safe, s, 1);
-+ if (result != BROTLI_DECODER_SUCCESS) {
-+ return result;
- }
- s->htree_command = s->insert_copy_hgroup.htrees[s->block_type_rb[3]];
-- return BROTLI_TRUE;
-+ return BROTLI_DECODER_SUCCESS;
- }
-
--static void BROTLI_NOINLINE DecodeCommandBlockSwitch(BrotliDecoderState* s) {
-- DecodeCommandBlockSwitchInternal(0, s);
-+static BROTLI_NOINLINE BrotliDecoderErrorCode
-+DecodeCommandBlockSwitch(BrotliDecoderState* s) {
-+ return DecodeCommandBlockSwitchInternal(0, s);
- }
-
--static BROTLI_BOOL BROTLI_NOINLINE SafeDecodeCommandBlockSwitch(
-- BrotliDecoderState* s) {
-+static BROTLI_NOINLINE BrotliDecoderErrorCode
-+SafeDecodeCommandBlockSwitch(BrotliDecoderState* s) {
- return DecodeCommandBlockSwitchInternal(1, s);
- }
-
- /* Block switch for distance codes.
- Reads 3..54 bits. */
--static BROTLI_INLINE BROTLI_BOOL DecodeDistanceBlockSwitchInternal(
-+static BROTLI_INLINE BrotliDecoderErrorCode DecodeDistanceBlockSwitchInternal(
- int safe, BrotliDecoderState* s) {
-- if (!DecodeBlockTypeAndLength(safe, s, 2)) {
-- return BROTLI_FALSE;
-+ BrotliDecoderErrorCode result = DecodeBlockTypeAndLength(safe, s, 2);
-+ if (result != BROTLI_DECODER_SUCCESS) {
-+ return result;
- }
- s->dist_context_map_slice = s->dist_context_map +
- (s->block_type_rb[5] << BROTLI_DISTANCE_CONTEXT_BITS);
- s->dist_htree_index = s->dist_context_map_slice[s->distance_context];
-- return BROTLI_TRUE;
-+ return BROTLI_DECODER_SUCCESS;
- }
-
--static void BROTLI_NOINLINE DecodeDistanceBlockSwitch(BrotliDecoderState* s) {
-- DecodeDistanceBlockSwitchInternal(0, s);
-+static BROTLI_NOINLINE BrotliDecoderErrorCode
-+DecodeDistanceBlockSwitch(BrotliDecoderState* s) {
-+ return DecodeDistanceBlockSwitchInternal(0, s);
- }
-
--static BROTLI_BOOL BROTLI_NOINLINE SafeDecodeDistanceBlockSwitch(
-+static BROTLI_NOINLINE BrotliDecoderErrorCode SafeDecodeDistanceBlockSwitch(
- BrotliDecoderState* s) {
- return DecodeDistanceBlockSwitchInternal(1, s);
- }
-@@ -1940,6 +1948,9 @@ static BROTLI_INLINE BROTLI_BOOL CheckInputAmount(
- return BrotliCheckInputAmount(br);
- }
-
-+/* NB: METHOD should return BROTLI_FALSE only in case there is not enough input;
-+ in case of "unsafe" execution, when input is guaranteed to be sufficient,
-+ result is ignored. */
- #define BROTLI_SAFE(METHOD) \
- { \
- if (safe) { \
-@@ -1952,6 +1963,22 @@ static BROTLI_INLINE BROTLI_BOOL CheckInputAmount(
- } \
- }
-
-+/* NB: METHOD should return BROTLI_DECODER_SUCCESS, BROTLI_DECODER_ERROR_*, or
-+ BROTLI_DECODER_NEEDS_MORE_INPUT; the later two break the processing. */
-+#define BROTLI_SAFE_WITH_STATUS(METHOD) \
-+ { \
-+ BrotliDecoderErrorCode status; \
-+ if (safe) { \
-+ status = Safe##METHOD; \
-+ } else { \
-+ status = METHOD; \
-+ } \
-+ if (status != BROTLI_DECODER_SUCCESS) { \
-+ result = status; \
-+ goto saveStateAndReturn; \
-+ } \
-+ }
-+
- static BROTLI_INLINE BrotliDecoderErrorCode ProcessCommandsInternal(
- int safe, BrotliDecoderState* s) {
- int pos = s->pos;
-@@ -1991,7 +2018,7 @@ CommandBegin:
- goto saveStateAndReturn;
- }
- if (BROTLI_PREDICT_FALSE(s->block_length[1] == 0)) {
-- BROTLI_SAFE(DecodeCommandBlockSwitch(s));
-+ BROTLI_SAFE_WITH_STATUS(DecodeCommandBlockSwitch(s));
- goto CommandBegin;
- }
- /* Read the insert/copy length in the command. */
-@@ -2136,7 +2163,7 @@ CommandPostDecodeLiterals:
- } else {
- /* Read distance code in the command, unless it was implicitly zero. */
- if (BROTLI_PREDICT_FALSE(s->block_length[2] == 0)) {
-- BROTLI_SAFE(DecodeDistanceBlockSwitch(s));
-+ BROTLI_SAFE_WITH_STATUS(DecodeDistanceBlockSwitch(s));
- }
- BROTLI_SAFE(ReadDistance(s, br));
- }
-@@ -2330,7 +2357,7 @@ CommandPostWrapCopy:
- }
-
- NextLiteralBlock:
-- BROTLI_SAFE(DecodeLiteralBlockSwitch(s));
-+ BROTLI_SAFE_WITH_STATUS(DecodeLiteralBlockSwitch(s));
- goto CommandInner;
-
- saveStateAndReturn:
-@@ -2552,6 +2579,8 @@ BrotliDecoderResult BrotliDecoderDecompressStream(
- if (result != BROTLI_DECODER_SUCCESS) {
- break;
- }
-+ BROTLI_DCHECK(s->meta_block_remaining_len <=
-+ (int)BROTLI_BLOCK_SIZE_CAP);
- BROTLI_LOG_UINT(s->is_last_metablock);
- BROTLI_LOG_UINT(s->meta_block_remaining_len);
- BROTLI_LOG_UINT(s->is_metadata);
-diff --git a/c/include/brotli/decode.h b/c/include/brotli/decode.h
-index 8d436db..10d01e3 100644
---- a/c/include/brotli/decode.h
-+++ b/c/include/brotli/decode.h
-@@ -85,9 +85,7 @@ typedef enum {
- BROTLI_ERROR_CODE(_ERROR_FORMAT_, PADDING_1, -14) SEPARATOR \
- BROTLI_ERROR_CODE(_ERROR_FORMAT_, PADDING_2, -15) SEPARATOR \
- BROTLI_ERROR_CODE(_ERROR_FORMAT_, DISTANCE, -16) SEPARATOR \
-- \
-- /* -17 code is reserved */ \
-- \
-+ BROTLI_ERROR_CODE(_ERROR_FORMAT_, BLOCK_SWITCH, -17) SEPARATOR \
- BROTLI_ERROR_CODE(_ERROR_, COMPOUND_DICTIONARY, -18) SEPARATOR \
- BROTLI_ERROR_CODE(_ERROR_, DICTIONARY_NOT_SET, -19) SEPARATOR \
- BROTLI_ERROR_CODE(_ERROR_, INVALID_ARGUMENTS, -20) SEPARATOR \
diff --git a/meta/recipes-core/ovmf/ovmf/CVE-2026-111497_p2.patch b/meta/recipes-core/ovmf/ovmf/CVE-2026-111497_p2.patch
deleted file mode 100644
index 624515cacb..0000000000
--- a/meta/recipes-core/ovmf/ovmf/CVE-2026-111497_p2.patch
+++ /dev/null
@@ -1,239 +0,0 @@
-From 3949252908321a51c536961b05faba022cc129d6 Mon Sep 17 00:00:00 2001
-From: Evgenii Kliuchnikov <eustas@google.com>
-Date: Fri, 27 Feb 2026 05:10:32 -0800
-Subject: [PATCH] Detect and report invalid stream earlier.
-
-PiperOrigin-RevId: 876198329
-
-CVE: CVE-2026-111497
-Upstream-Status: Backport [https://github.com/google/brotli/commit/b418fa81c48262a86a95332b0bc6d62c30aa78b6]
-
-(cherry picked from commit 0ed4268a4401abcb4472096340477cf4af7d1a2b)
-Signed-off-by: Devansh Patel <devanshp@cisco.com>
----
- c/dec/decode.c | 89 ++++++++++++++++++++++++++-------------
- c/include/brotli/decode.h | 4 +-
- 2 files changed, 60 insertions(+), 33 deletions(-)
-
-diff --git a/c/dec/decode.c b/c/dec/decode.c
-index e87e7f5..74db1a2 100644
---- a/c/dec/decode.c
-+++ b/c/dec/decode.c
-@@ -1176,7 +1176,7 @@ static BrotliDecoderErrorCode DecodeContextMap(brotli_reg_t context_map_size,
-
- /* Decodes a command or literal and updates block type ring-buffer.
- Reads 3..54 bits. */
--static BROTLI_INLINE BROTLI_BOOL DecodeBlockTypeAndLength(
-+static BROTLI_INLINE BrotliDecoderErrorCode DecodeBlockTypeAndLength(
- int safe, BrotliDecoderState* s, int tree_type) {
- brotli_reg_t max_block_type = s->num_block_types[tree_type];
- const HuffmanCode* type_tree = &s->block_type_trees[
-@@ -1187,7 +1187,7 @@ static BROTLI_INLINE BROTLI_BOOL DecodeBlockTypeAndLength(
- brotli_reg_t* ringbuffer = &s->block_type_rb[tree_type * 2];
- brotli_reg_t block_type;
- if (max_block_type <= 1) {
-- return BROTLI_FALSE;
-+ return BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH;
- }
-
- /* Read 0..15 + 3..39 bits. */
-@@ -1197,11 +1197,13 @@ static BROTLI_INLINE BROTLI_BOOL DecodeBlockTypeAndLength(
- } else {
- BrotliBitReaderState memento;
- BrotliBitReaderSaveState(br, &memento);
-- if (!SafeReadSymbol(type_tree, br, &block_type)) return BROTLI_FALSE;
-+ if (!SafeReadSymbol(type_tree, br, &block_type)) {
-+ return BROTLI_DECODER_NEEDS_MORE_INPUT;
-+ }
- if (!SafeReadBlockLength(s, &s->block_length[tree_type], len_tree, br)) {
- s->substate_read_block_length = BROTLI_STATE_READ_BLOCK_LENGTH_NONE;
- BrotliBitReaderRestoreState(br, &memento);
-- return BROTLI_FALSE;
-+ return BROTLI_DECODER_NEEDS_MORE_INPUT;
- }
- }
-
-@@ -1217,7 +1219,7 @@ static BROTLI_INLINE BROTLI_BOOL DecodeBlockTypeAndLength(
- }
- ringbuffer[0] = ringbuffer[1];
- ringbuffer[1] = block_type;
-- return BROTLI_TRUE;
-+ return BROTLI_DECODER_SUCCESS;
- }
-
- static BROTLI_INLINE void DetectTrivialLiteralBlockTypes(
-@@ -1254,62 +1256,68 @@ static BROTLI_INLINE void PrepareLiteralDecoding(BrotliDecoderState* s) {
-
- /* Decodes the block type and updates the state for literal context.
- Reads 3..54 bits. */
--static BROTLI_INLINE BROTLI_BOOL DecodeLiteralBlockSwitchInternal(
-+static BROTLI_INLINE BrotliDecoderErrorCode DecodeLiteralBlockSwitchInternal(
- int safe, BrotliDecoderState* s) {
-- if (!DecodeBlockTypeAndLength(safe, s, 0)) {
-- return BROTLI_FALSE;
-+ BrotliDecoderErrorCode result = DecodeBlockTypeAndLength(safe, s, 0);
-+ if (result != BROTLI_DECODER_SUCCESS) {
-+ return result;
- }
- PrepareLiteralDecoding(s);
-- return BROTLI_TRUE;
-+ return BROTLI_DECODER_SUCCESS;
- }
-
--static void BROTLI_NOINLINE DecodeLiteralBlockSwitch(BrotliDecoderState* s) {
-- DecodeLiteralBlockSwitchInternal(0, s);
-+static BROTLI_NOINLINE BrotliDecoderErrorCode
-+DecodeLiteralBlockSwitch(BrotliDecoderState* s) {
-+ return DecodeLiteralBlockSwitchInternal(0, s);
- }
-
--static BROTLI_BOOL BROTLI_NOINLINE SafeDecodeLiteralBlockSwitch(
-+static BROTLI_NOINLINE BrotliDecoderErrorCode SafeDecodeLiteralBlockSwitch(
- BrotliDecoderState* s) {
- return DecodeLiteralBlockSwitchInternal(1, s);
- }
-
- /* Block switch for insert/copy length.
- Reads 3..54 bits. */
--static BROTLI_INLINE BROTLI_BOOL DecodeCommandBlockSwitchInternal(
-+static BROTLI_INLINE BrotliDecoderErrorCode DecodeCommandBlockSwitchInternal(
- int safe, BrotliDecoderState* s) {
-- if (!DecodeBlockTypeAndLength(safe, s, 1)) {
-- return BROTLI_FALSE;
-+ BrotliDecoderErrorCode result = DecodeBlockTypeAndLength(safe, s, 1);
-+ if (result != BROTLI_DECODER_SUCCESS) {
-+ return result;
- }
- s->htree_command = s->insert_copy_hgroup.htrees[s->block_type_rb[3]];
-- return BROTLI_TRUE;
-+ return BROTLI_DECODER_SUCCESS;
- }
-
--static void BROTLI_NOINLINE DecodeCommandBlockSwitch(BrotliDecoderState* s) {
-- DecodeCommandBlockSwitchInternal(0, s);
-+static BROTLI_NOINLINE BrotliDecoderErrorCode
-+DecodeCommandBlockSwitch(BrotliDecoderState* s) {
-+ return DecodeCommandBlockSwitchInternal(0, s);
- }
-
--static BROTLI_BOOL BROTLI_NOINLINE SafeDecodeCommandBlockSwitch(
-- BrotliDecoderState* s) {
-+static BROTLI_NOINLINE BrotliDecoderErrorCode
-+SafeDecodeCommandBlockSwitch(BrotliDecoderState* s) {
- return DecodeCommandBlockSwitchInternal(1, s);
- }
-
- /* Block switch for distance codes.
- Reads 3..54 bits. */
--static BROTLI_INLINE BROTLI_BOOL DecodeDistanceBlockSwitchInternal(
-+static BROTLI_INLINE BrotliDecoderErrorCode DecodeDistanceBlockSwitchInternal(
- int safe, BrotliDecoderState* s) {
-- if (!DecodeBlockTypeAndLength(safe, s, 2)) {
-- return BROTLI_FALSE;
-+ BrotliDecoderErrorCode result = DecodeBlockTypeAndLength(safe, s, 2);
-+ if (result != BROTLI_DECODER_SUCCESS) {
-+ return result;
- }
- s->dist_context_map_slice = s->dist_context_map +
- (s->block_type_rb[5] << BROTLI_DISTANCE_CONTEXT_BITS);
- s->dist_htree_index = s->dist_context_map_slice[s->distance_context];
-- return BROTLI_TRUE;
-+ return BROTLI_DECODER_SUCCESS;
- }
-
--static void BROTLI_NOINLINE DecodeDistanceBlockSwitch(BrotliDecoderState* s) {
-- DecodeDistanceBlockSwitchInternal(0, s);
-+static BROTLI_NOINLINE BrotliDecoderErrorCode
-+DecodeDistanceBlockSwitch(BrotliDecoderState* s) {
-+ return DecodeDistanceBlockSwitchInternal(0, s);
- }
-
--static BROTLI_BOOL BROTLI_NOINLINE SafeDecodeDistanceBlockSwitch(
-+static BROTLI_NOINLINE BrotliDecoderErrorCode SafeDecodeDistanceBlockSwitch(
- BrotliDecoderState* s) {
- return DecodeDistanceBlockSwitchInternal(1, s);
- }
-@@ -1940,6 +1948,9 @@ static BROTLI_INLINE BROTLI_BOOL CheckInputAmount(
- return BrotliCheckInputAmount(br);
- }
-
-+/* NB: METHOD should return BROTLI_FALSE only in case there is not enough input;
-+ in case of "unsafe" execution, when input is guaranteed to be sufficient,
-+ result is ignored. */
- #define BROTLI_SAFE(METHOD) \
- { \
- if (safe) { \
-@@ -1952,6 +1963,22 @@ static BROTLI_INLINE BROTLI_BOOL CheckInputAmount(
- } \
- }
-
-+/* NB: METHOD should return BROTLI_DECODER_SUCCESS, BROTLI_DECODER_ERROR_*, or
-+ BROTLI_DECODER_NEEDS_MORE_INPUT; the later two break the processing. */
-+#define BROTLI_SAFE_WITH_STATUS(METHOD) \
-+ { \
-+ BrotliDecoderErrorCode status; \
-+ if (safe) { \
-+ status = Safe##METHOD; \
-+ } else { \
-+ status = METHOD; \
-+ } \
-+ if (status != BROTLI_DECODER_SUCCESS) { \
-+ result = status; \
-+ goto saveStateAndReturn; \
-+ } \
-+ }
-+
- static BROTLI_INLINE BrotliDecoderErrorCode ProcessCommandsInternal(
- int safe, BrotliDecoderState* s) {
- int pos = s->pos;
-@@ -1991,7 +2018,7 @@ CommandBegin:
- goto saveStateAndReturn;
- }
- if (BROTLI_PREDICT_FALSE(s->block_length[1] == 0)) {
-- BROTLI_SAFE(DecodeCommandBlockSwitch(s));
-+ BROTLI_SAFE_WITH_STATUS(DecodeCommandBlockSwitch(s));
- goto CommandBegin;
- }
- /* Read the insert/copy length in the command. */
-@@ -2136,7 +2163,7 @@ CommandPostDecodeLiterals:
- } else {
- /* Read distance code in the command, unless it was implicitly zero. */
- if (BROTLI_PREDICT_FALSE(s->block_length[2] == 0)) {
-- BROTLI_SAFE(DecodeDistanceBlockSwitch(s));
-+ BROTLI_SAFE_WITH_STATUS(DecodeDistanceBlockSwitch(s));
- }
- BROTLI_SAFE(ReadDistance(s, br));
- }
-@@ -2330,7 +2357,7 @@ CommandPostWrapCopy:
- }
-
- NextLiteralBlock:
-- BROTLI_SAFE(DecodeLiteralBlockSwitch(s));
-+ BROTLI_SAFE_WITH_STATUS(DecodeLiteralBlockSwitch(s));
- goto CommandInner;
-
- saveStateAndReturn:
-@@ -2552,6 +2579,8 @@ BrotliDecoderResult BrotliDecoderDecompressStream(
- if (result != BROTLI_DECODER_SUCCESS) {
- break;
- }
-+ BROTLI_DCHECK(s->meta_block_remaining_len <=
-+ (int)BROTLI_BLOCK_SIZE_CAP);
- BROTLI_LOG_UINT(s->is_last_metablock);
- BROTLI_LOG_UINT(s->meta_block_remaining_len);
- BROTLI_LOG_UINT(s->is_metadata);
-diff --git a/c/include/brotli/decode.h b/c/include/brotli/decode.h
-index 8d436db..10d01e3 100644
---- a/c/include/brotli/decode.h
-+++ b/c/include/brotli/decode.h
-@@ -85,9 +85,7 @@ typedef enum {
- BROTLI_ERROR_CODE(_ERROR_FORMAT_, PADDING_1, -14) SEPARATOR \
- BROTLI_ERROR_CODE(_ERROR_FORMAT_, PADDING_2, -15) SEPARATOR \
- BROTLI_ERROR_CODE(_ERROR_FORMAT_, DISTANCE, -16) SEPARATOR \
-- \
-- /* -17 code is reserved */ \
-- \
-+ BROTLI_ERROR_CODE(_ERROR_FORMAT_, BLOCK_SWITCH, -17) SEPARATOR \
- BROTLI_ERROR_CODE(_ERROR_, COMPOUND_DICTIONARY, -18) SEPARATOR \
- BROTLI_ERROR_CODE(_ERROR_, DICTIONARY_NOT_SET, -19) SEPARATOR \
- BROTLI_ERROR_CODE(_ERROR_, INVALID_ARGUMENTS, -20) SEPARATOR \
diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb
index af43fafbd4..cf36a63ed8 100644
--- a/meta/recipes-core/ovmf/ovmf_git.bb
+++ b/meta/recipes-core/ovmf/ovmf_git.bb
@@ -19,13 +19,10 @@ SRC_URI = "gitsm://github.com/tianocore/edk2.git;branch=master;protocol=https;ta
file://0002-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch \
file://0003-debug-prefix-map.patch \
file://0004-reproducible.patch \
- file://0005-CryptoPkg-IntrinsicLib-fix-memcpy-alias-prototype-fo.patch \
- file://CVE-2026-111497_p1.patch;patchdir=BaseTools/Source/C/BrotliCompress/brotli \
- file://CVE-2026-111497_p2.patch;patchdir=MdeModulePkg/Library/BrotliCustomDecompressLib/brotli \
"
-PV = "edk2-stable202605"
-SRCREV = "b03a21a63e3bd001f52c527e5a57feddb53a690b"
+PV = "edk2-stable202611"
+SRCREV = "556dcfb466e9f05affeaff881d738807f8156d3c"
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>edk2-stable.*)"
CVE_PRODUCT = "edk2"
next prev parent reply other threads:[~2026-11-24 17:18 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 17:17 [PATCH 00/11] Upgrades on 24th November Jaipaul Cheernam
2026-11-24 17:17 ` [PATCH 01/11] fastfloat: upgrade 8.3.2 -> 8.4.0 Jaipaul Cheernam
2026-11-24 17:17 ` [PATCH 02/11] libconfig: upgrade 1.8.2 -> 1.8.3 Jaipaul Cheernam
2026-11-24 17:17 ` [PATCH 03/11] gtk4: upgrade 4.24.1 -> 4.24.2 Jaipaul Cheernam
2026-11-25 19:34 ` [OE-core] " Mathieu Dubois-Briand
2026-11-27 10:51 ` [PATCH v2] " Jaipaul Cheernam
2026-11-24 17:18 ` [PATCH 04/11] btrfs-tools: upgrade 7.1 -> 7.3 Jaipaul Cheernam
2026-11-24 17:18 ` [PATCH 05/11] zstd: upgrade 1.5.7 -> 1.6.0 Jaipaul Cheernam
2026-11-24 17:38 ` Patchtest results for " patchtest
2026-11-25 6:40 ` [OE-core] " Mathieu Dubois-Briand
2026-11-25 9:58 ` [PATCH v2] " Jaipaul Cheernam
2026-11-25 10:13 ` Jaipaul Cheernam
2026-11-24 17:18 ` Jaipaul Cheernam [this message]
2026-11-26 11:34 ` [PATCH 06/11] ovmf: upgrade edk2-stable202605 -> edk2-stable202611 Jaipaul Cheernam
2026-11-26 12:37 ` [OE-core] " Mathieu Dubois-Briand
2026-11-26 13:16 ` Jaipaul Cheernam
2026-11-24 17:18 ` [PATCH 07/11] devtool: fix misleading error when srcrev is on no branch Jaipaul Cheernam
2026-11-24 17:18 ` [PATCH 08/11] blueprint-compiler: upgrade 0.20.4 -> 0.22.2 Jaipaul Cheernam
2026-11-27 9:16 ` [OE-core] " Ross Burton
2026-11-24 17:18 ` [PATCH 09/11] man-db: Upgrade 2.13.1 -> 2.13.3 Jaipaul Cheernam
2026-11-24 17:18 ` [PATCH 10/11] rxvt-unicode: upgrade 9.31 -> 9.32 Jaipaul Cheernam
2026-11-24 17:18 ` [PATCH 11/11] nfs-utils: upgrade 3.1.1 -> 3.2.1 Jaipaul Cheernam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124171807.74394-7-jaipaul.cheernam@est.tech \
--to=jaipaul.cheernam@est.tech \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox