From patchwork Tue Nov 24 17:18:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaipaul Cheernam X-Patchwork-Id: 105433 Received: from PA4PR04CU001.outbound.protection.outlook.com (PA4PR04CU001.outbound.protection.outlook.com [40.107.162.7]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.24294.1795540699948741764 for ; Tue, 24 Nov 2026 09:18:21 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@est.tech header.s=selector1 header.b=IBdza/vE; spf=pass (domain: est.tech, ip: 40.107.162.7, mailfrom: jaipaul.cheernam@est.tech) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mTDytkqqC4aOHFQoj1k9duEaHQQmTLmPZjezlUbuIad0j3w/Yec3L6xDfBwThgzGpY+9uZmAs4CuwL01rSg8ikoKheDnsj5Q9F3pYrF80BbPte3wusZJpITU7B17SAsWYEnaOHK40dh7VENRdfG2ljFaP83M73CbZSRRL5SUVClZRzdcCK/hVnuTcHmRTuZf0efIYZxhRiRkMgjK0lA566t4c4hyVt9xbOw6lGPVSfDDRQv98anAOe+6kNrGfS1l+u1drxgtGifPLhIVcNTUDphoVVBP4e1QUALTAg90oOxlEiQjhR+yGO4w0lUp0kOM7n+zKBa+HA6Nz3iShPE2AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hHP32NGiihY2DbrBBP3dGVzDRS6IAPq1g6I2w9q6lBo=; b=hr42A3HRNIlRIWc9R5x8lvVo3hvtGQbtDavYoQewvDhQrrK5mbZEqjCt3OXuzmYsK4ufyzDMXdPIr5NsNtGGyBwMh5yBmBDz0q0mQWvIEWVy3kgEnkqXS6NblKajuJKvnDv+RmfhY49/xWzcX7xIT1bENh3Eq15Ye4lv+5tD7SqKGhaThg3D9Bn7n6RbA/L2X3mWpqmrSHtJ4GNRRqnKvdXeFwOGtW61vvqSpSUnpVf+aeRz6JiPhEZBYbHE/+ycRyqgCjpUIEH3sllj7fUO74btmT3p77BOw/Typ3CG/o23fbqvixkL9YNWID5yKIna1rsROnq8Kg92eosaiBr9cg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=est.tech; dmarc=pass action=none header.from=est.tech; dkim=pass header.d=est.tech; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=est.tech; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hHP32NGiihY2DbrBBP3dGVzDRS6IAPq1g6I2w9q6lBo=; b=IBdza/vEJGcbR2uISuEuUPnBkDGGefNtwfeFvqPhKrjIW7qwkTKqDQKQl4TR1hMmoFsxz2zW14TiXlXDIIDpUzFftrOyA55FzOfxa+xpDMcj2RWoBDQXVMNVNvB9I0TnXBSEkFUMpsxBkGtHqY/yK3wA0h6xFyXhGp9V3p1sBZk4VZ+39iZLvUnQpWL8n2pu0OpU/7R5h1WoYLIBcZe4H4t3qTS+RNQLXIOamyGAueZa2CRFVHqDgZUtlg7Ghehk3a/QfsuBfskqf7VU7v08E4gpxu/3k2eaRRPrbcphacN9KhA/azI3Hihy1R4tuiHIdqju8yCathG9KC/hKoBagQ== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=est.tech; Received: from AM6P189MB3107.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:6c0::19) by AM4P189MB3668.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:6e2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.639.14; Tue, 24 Nov 2026 17:18:20 +0000 Received: from AM6P189MB3107.EURP189.PROD.OUTLOOK.COM ([fe80::bc97:3847:8f02:acb]) by AM6P189MB3107.EURP189.PROD.OUTLOOK.COM ([fe80::bc97:3847:8f02:acb%6]) with mapi id 15.21.0639.012; Tue, 24 Nov 2026 17:18:20 +0000 From: Jaipaul Cheernam 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 Message-Id: <20261124171807.74394-7-jaipaul.cheernam@est.tech> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20261124171807.74394-1-jaipaul.cheernam@est.tech> References: <20261124171807.74394-1-jaipaul.cheernam@est.tech> X-ClientProxiedBy: LO4P302CA0024.GBRP302.PROD.OUTLOOK.COM (2603:10a6:600:2c1::10) To AM6P189MB3107.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:6c0::19) Return-Path: jaipaul.cheernam@est.tech MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6P189MB3107:EE_|AM4P189MB3668:EE_ X-MS-Office365-Filtering-Correlation-Id: e2225bb2-496c-4e42-f13f-08df4a4eef9e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|23010399003|1800799024|18002099003|22082099003|6133799003|3023799007|13003099007|56012099006|260925022911599003|11063799006|260925021911599003|260925021311599003|261021133027099003|261009223027099003|261102123227099003|261026140227099003|261021123027099003|261022115727099003|261022075727099003|261026121527099003|261022105027099003|261021130227099003|261021135927099003|261026135527099003|261026130827099003|261028144727099003|261022113327099003|261021121427099003|10067099003; X-Microsoft-Antispam-Message-Info: D6a1XjZ8eSEYJkqP93EgpE/QpnUj35KwAQrbgV1Kj+5dmyeyM6TqQTPEJatMKxQMj4z4iIcZrk5PvW2l4SN1fuKDs1v929Sx2pQoW4yS+goYs9EsODxGZSDAdS9GBkTCpiZSPU1tzdICbVLbUSbhKIlvCLAUiqzHF1LR60k7Ui5LuSFOdwPhln3hREf87YVV4M5KgdSBbwQs5P69BP7w4R/h4CtgvJCKaQhWzEA24v3Ub4rVpBbr1w3GAvO9bxEoqdSREgwWZC+nDk8W+DfZg0ktF4q5rBod70Ex5pLBD8Cfq5srjNdvfIhOUN+XU76COFAUaUPFGc7ZbifrOUNDbuahUhFe3yng/plJq4Tvv2QC+IS7QVbapAchGApxzef2WZJiwnSrdzpEnSWF4QlXUGQnHr0R1ns+nH8hiTZZYVlVTqOo0RMFCkkzcAuhzbVd4BlleVAa3SVPhR4CKjoVYJ8lXZUWYsa8B1o8WZBqEmZS4Y7vW0mKXJbf+jY6XNzpNj40cXyAokljUVkWqHXKLcWuid91xowOawUDb0V/JCNhe2M3BVWWzngOUgxXgb6xHAGkRR94LOm9sa3cI5T+NikMZAklkQaEi06zxeGIu728wiaYltFPQUmgEbA4AcEuk/mM1ynm7TEFifraPg1iTA9/5Kl1BdE8VmfmrZL8W2E= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6P189MB3107.EURP189.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(23010399003)(1800799024)(18002099003)(22082099003)(6133799003)(3023799007)(13003099007)(56012099006)(260925022911599003)(11063799006)(260925021911599003)(260925021311599003)(261021133027099003)(261009223027099003)(261102123227099003)(261026140227099003)(261021123027099003)(261022115727099003)(261022075727099003)(261026121527099003)(261022105027099003)(261021130227099003)(261021135927099003)(261026135527099003)(261026130827099003)(261028144727099003)(261022113327099003)(261021121427099003)(10067099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: RJ9W7PGdIKFHzM4OLe0CLHe5B3/SZ5BXED2y9ij81khtcixL0RhHtX1ebVU1k4lnD11ESBDdt+66aOWenIAp3m3E7KJbfQR7urroJF7MDs2X3V8TIn9gKdv97d43nNnM8lS0dHZ33uSEfuUgnoMVSRCVEtJAZ3wGWt0+eAia3+2uwHtuTOSJ6ZVb/85hqhGvTVWz4ZS2+pZ5InvH/LLNPhHEi/7Ls1mmsbcsFfkWHmgnOuLl45IHYHu2YCU1jWxc5Ss1Kf+rM3yvZamTlEddmQ6I7jbWReDO0jcWPggv3K+bSGhKfBYO1mHqH1iXTD0gtMWuCF/hAw9G8oadj/cQgcFtSgYqH59WdmH2Fenf+HYQo/09yRxW7Ih349wohn5UFx3GrOieYZgSlxZ3gmkHNENJd/ZiTTCfmEpJJMylRWLtSM6e2gwiZY0QgmW0Ea0XDM+r8vd5MgeTjdeOQOZqGhhKjz68DrvKAM69txQyPfX25Tufx8GwE1oIRF3rFjpLnB47XkNpnUWfAgKQITiKQa4tO4tgbMhzfBdueYQnj14g14Ym9rnnm+t09+SwYS0uliQFyxIj8ASjNshH2brzjta8DmSqPFD3t15IoGTXgtVRzvyPo+2FOI7Cx4lRLYIsy8BQtB2lwgKkB4RdgVUeRLHyt5evEPiDOeeadvnPU/jXV+Puhw18VeQ9HGg7tDe2/Ci5xHuacLQcdOt3eP2vUA5IdWYLdWV1LB7UuxQDB58JeyoB91y1v5ZA6iz5dp9ElnK7PnEUSgEcdrp88Nj8tTMrY2Xz5CD7u13e/BxY6TKelcRYyZL+kZO/R7sWc/E1BNO2yfku8Lxl0tb9Y0Um+hBJBUCv4+faVZtyHl08XUlotA0oFRvjGLKgnZ/j1Kxj5Jidh1siVTzHdL4nfCvdVb9bbwXro0woCfq1Mh/Va3zu10M+a0WeOkbhtd7y/zSBhKk+ApUJDC4crrkBKofLc6uyqqDu2G7Vtwxg+UthHf1wsMaD4VpIbDa91m3eAL5Ou9vwfhjVN9lIF9nBgm1wv7QzT7Kibn9kCLlKXfIdHO3fTYCzcQvFfkD2TB/LTGv5EaOUW4n8A9y0hoEl/zPkMvLA4IvJWNHc8cIFo59TV9iHD5FkvNxnSGy9phkf5b2uQrWDzzde0HwnFA8ErhzDtBRs6h9MHgF4Zb9GmESnjAu0dmNNdNKGPoos3NM7Jr4DNhxG9hR8gQtRjqqz8cI93HLN5dHQ1B1M7O2+kdt0w4if3Cc54O+mVLv5/TNu41OPBwCPtezQWj06WfjQ9UERvY0uaRX3BVUMhF3KMqNO2KMQCU73Mq3H/q54IlItSf+MEOLfNQ3bF+NMcsCt8KsWBRxxc+yiQbuOs9TX9XArRj87fBSVqwpBZE0BhUoQWcreCpDzBzzZf2QDbwNLPpOlMn3BXVBuxfp8SEfrAz4FLruQzKi81DliSOitKPXsDuRNb6sdRtqsrE5q3pErsAuswHwULRYFs4k+/ppz3nsaElWTJLD4vPnCbnBiw0a8kgyF7iUZCLoQ6Dow2EIvuJHs1y/2hCnCfveqII8NgIEKBm6Dlcsk0ddoHcRR99ATyGsMIm5Pvi+3VUEV01Nw1+lsNIdkxsCdGzcBCE1wK8uWeuVrbmAuKy7fGqJ/o9U6W898PjlsFpksYDLyN9MDx//vEyWZz4IXvcjJS8qMs8IdbqsKaoWOm19c8oKj8+fwUeaIxv7X0Zx19WEeBBK+9bMHsg== X-OriginatorOrg: est.tech X-MS-Exchange-CrossTenant-Network-Message-Id: e2225bb2-496c-4e42-f13f-08df4a4eef9e X-MS-Exchange-CrossTenant-AuthSource: AM6P189MB3107.EURP189.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Nov 2026 17:18:19.9680 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d2585e63-66b9-44b6-a76e-4f4b217d97fd X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ys3LWtUWsDuBI3tAl6ZaOYiMaREBfDm4mTDx+iDf2A7S0nkj8dp5AgwoGGVMhqCcI0mxWNvE1obHza1uQDnVPeDNikz6k7M76T7Lp1tt5YI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4P189MB3668 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 17:18:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251058 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 --- ...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 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 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 Date: Mon, 14 Jun 2021 19:56:28 +0200 Subject: [PATCH] debug prefix map @@ -22,19 +22,19 @@ Signed-off-by: Alexander Kanavin 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 Date: Mon, 14 Jun 2021 19:57:30 +0200 Subject: [PATCH] reproducible @@ -35,7 +35,7 @@ Signed-off-by: Alexander Kanavin 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 #include -@@ -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 -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 ---- ---- 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 -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 ---- - 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 -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 ---- - 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 = "(?Pedk2-stable.*)" CVE_PRODUCT = "edk2"