Skip to contentSkip to conversation

gcc: backport a fix for ICE caused by CVE-2023-4039.patch

PATCH In review Martin Jansa 2 participants 2 messages Sep 15, 2023 – Sep 20, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc: backport a fix for ICE caused by CVE-2023-4039.patch

* see:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111418
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111411

* add git headers to 0025-gcc-testsuite-mips.patch so that it does easily apply with other patches with git am

---
 meta/recipes-devtools/gcc/gcc-13.2.inc        |   3 +-
 ...25-gcc-testsuite-tweaks-for-mips-OE.patch} | 148 +++++++++---------
 ...ch64-Fix-loose-ldpstp-check-PR111411.patch | 117 ++++++++++++++
 3 files changed, 197 insertions(+), 71 deletions(-)
 rename meta/recipes-devtools/gcc/gcc/{0025-gcc-testsuite-mips.patch => 0025-gcc-testsuite-tweaks-for-mips-OE.patch} (76%)
 create mode 100644 meta/recipes-devtools/gcc/gcc/0026-aarch64-Fix-loose-ldpstp-check-PR111411.patch
meta/recipes-devtools/gcc/gcc-13.2.inc +2 -1
index 0922251e18..d96f3171e4 100644
@@ -64,8 +64,9 @@ SRC_URI = "${BASEURI} \
            file://0022-libatomic-Do-not-enforce-march-on-aarch64.patch \
            file://0023-Fix-install-path-of-linux64.h.patch \
            file://0024-Avoid-hardcoded-build-paths-into-ppc-libgcc.patch \
-           file://0025-gcc-testsuite-mips.patch \
+           file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \
            file://CVE-2023-4039.patch \
+           file://0026-aarch64-Fix-loose-ldpstp-check-PR111411.patch \
 "
 SRC_URI[sha256sum] = "e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da"
 
meta/recipes-devtools/gcc/gcc/0025-gcc-testsuite-tweaks-for-mips-OE.patch renamed from meta/recipes-devtools/gcc/gcc/0025-gcc-testsuite-mips.patch +78 -70

227 lines not on this page · raw message

meta/recipes-devtools/gcc/gcc/0026-aarch64-Fix-loose-ldpstp-check-PR111411.patch new file +117 -0

117 lines not on this page · raw message

Signature · 1 line
2.42.0
#1 lore raw

Hi Richard and Martin,

In my knowledge CVE-2023-4039 is fixed and merged in master branch for gcc package. But still if we generate report, this CVE gets reported as "unpatched".

From my analysis it looks like that due to following suspected reason CVE is not parsed properly

* gcc package is not extracted in tmp/work/ directory
* There is no do_patch task in recipe of gcc

Please review the case and provide your insights, If anyone has any suggestion/comment on this please share.

Thanks,
Sanjay Chitroda
________________________________
From: [email protected] <[email protected]> on behalf of Martin Jansa via lists.openembedded.org <[email protected]>
Sent: 16 September 2023 02:12
To: [email protected] <[email protected]>
Cc: Martin Jansa <[email protected]>
Subject: [External] [OE-core] [PATCH] gcc: backport a fix for ICE caused by CVE-2023-4039.patch

CAUTION: This email originated from outside of the organization. This message might not be safe, use caution in opening it. If in doubt, do not open the attachment nor links in the message.

* see:
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgcc.gnu.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D111418&data=05%7C01%7CSANJAY.CHITRODA%40einfochips.com%7C616af282b3e44ebbbbf008dbb62c578e%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C638304073791206852%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Kvptq0Ny6rYD0mPMROruN60EITxp1TLIzozJyAsP76w%3D&reserved=0<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111418>
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgcc.gnu.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D111411&data=05%7C01%7CSANJAY.CHITRODA%40einfochips.com%7C616af282b3e44ebbbbf008dbb62c578e%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C638304073791206852%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=gL1a4%2BXpuVnne4yARpkbSOrGpdlsC2RkEowbd6YqX4Q%3D&reserved=0<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111411>

* add git headers to 0025-gcc-testsuite-mips.patch so that it does easily apply with other patches with git am

---
 meta/recipes-devtools/gcc/gcc-13.2.inc        |   3 +-
 ...25-gcc-testsuite-tweaks-for-mips-OE.patch} | 148 +++++++++---------
 ...ch64-Fix-loose-ldpstp-check-PR111411.patch | 117 ++++++++++++++
 3 files changed, 197 insertions(+), 71 deletions(-)
 rename meta/recipes-devtools/gcc/gcc/{0025-gcc-testsuite-mips.patch => 0025-gcc-testsuite-tweaks-for-mips-OE.patch} (76%)
 create mode 100644 meta/recipes-devtools/gcc/gcc/0026-aarch64-Fix-loose-ldpstp-check-PR111411.patch
meta/recipes-devtools/gcc/gcc-13.2.inc +2 -1
index 0922251e18..d96f3171e4 100644
@@ -64,8 +64,9 @@ SRC_URI = "${BASEURI} \
            file://0022-libatomic-Do-not-enforce-march-on-aarch64.patch \
            file://0023-Fix-install-path-of-linux64.h.patch \
            file://0024-Avoid-hardcoded-build-paths-into-ppc-libgcc.patch \
-           file://0025-gcc-testsuite-mips.patch \
+           file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \
            file://CVE-2023-4039.patch \
+           file://0026-aarch64-Fix-loose-ldpstp-check-PR111411.patch \
 "
 SRC_URI[sha256sum] = "e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da"
 
meta/recipes-devtools/gcc/gcc/0025-gcc-testsuite-tweaks-for-mips-OE.patch renamed from meta/recipes-devtools/gcc/gcc/0025-gcc-testsuite-mips.patch +78 -70

227 lines not on this page · raw message

meta/recipes-devtools/gcc/gcc/0026-aarch64-Fix-loose-ldpstp-check-PR111411.patch new file +117 -0

117 lines not on this page · raw message

--
2.42.0