[lfs] 03/05: loongarch: reuse the GCC patch slot for two fixes
"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]> Tue, 26 May 2026 15:07:12 +0000
| Newsgroups | gmane.linux.lfs.book |
|---|---|
| Message-ID | <[email protected]> |
This is an automated email from the git hooks/post-receive script. git pushed a commit to branch xry111/loongarch in repository lfs. commit 9c47e75515e39e642182bcfc0f2a17a43e94ef6e Author: Xi Ruoyao <[email protected]> AuthorDate: Tue May 12 01:56:28 2026 +0800 loongarch: reuse the GCC patch slot for two fixes The old patch is completely unneeded now (everything are already in 16.1) but now we get a SSP flaw (with security implications) and a wrong-code compiling the BLFS package libarchive. Technically the issue causing libarchive miscompilation is target-independant (the minimal test case fails everywhere) but the libarchive miscompilation only manifests on LoongArch for some reason. --- chapter03/patches.xml | 2 +- chapter05/gcc-pass1.xml | 6 ++++-- chapter06/gcc-pass2.xml | 6 ++++-- chapter08/gcc.xml | 6 ++++-- patches.ent | 6 +++--- 5 files changed, 16 insertions(+), 10 deletions(-) diff --git a/chapter03/patches.xml b/chapter03/patches.xml index 816d645e0..65a19bec7 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -76,7 +76,7 @@ </varlistentry> <varlistentry> - <term>GCC LoongArch Fixes Patch - <token>&gcc-loongarch-fixes-patch-size;</token>:</term> + <term>GCC LoongArch SSP Fix Patch - <token>&gcc-loongarch-fixes-patch-size;</token>:</term> <listitem> <para>Download: <ulink url="https://www.linuxfromscratch.org/~xry111/lfs/patches/&gcc-loongarch-fixes-patch;"/></para> <para>MD5 sum: <literal>&gcc-loongarch-fixes-patch-md5;</literal></para> diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml index ae87b9571..6eee92664 100644 --- a/chapter05/gcc-pass1.xml +++ b/chapter05/gcc-pass1.xml @@ -43,8 +43,10 @@ <sect2 role="installation"> <title>Installation of Cross GCC</title> - <para>Fix a severe performance issue and two compiler crash issues - on LoongArch:</para> + <para>Fix a LoongArch code generation flaw which may allow + the malicious attacker to bypass the Stack Smashing Protection (SSP) + and a bug causing the BLFS package libarchive miscompiled on + LoongArch:</para> <screen><userinput remap="pre">patch -Np1 -i ../&gcc-loongarch-fixes-patch;</userinput></screen> diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml index 28a2a7dbe..329392681 100644 --- a/chapter06/gcc-pass2.xml +++ b/chapter06/gcc-pass2.xml @@ -43,8 +43,10 @@ <sect2 role="installation"> <title>Installation of GCC</title> - <para>Fix a severe performance issue and two compiler crash issues - on LoongArch:</para> + <para>Fix a LoongArch code generation flaw which may allow + the malicious attacker to bypass the Stack Smashing Protection (SSP) + and a bug causing the BLFS package libarchive miscompiled on + LoongArch:</para> <screen><userinput remap="pre">patch -Np1 -i ../&gcc-loongarch-fixes-patch;</userinput></screen> diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index 50e475f82..d93d11d45 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -47,8 +47,10 @@ <screen><userinput remap="pre">sed -i 's/char [*]q/const &/' libgomp/affinity-fmt.c</userinput></screen> --> - <para>Fix a severe performance issue and two compiler crash issues - on LoongArch:</para> + <para>Fix a LoongArch code generation flaw which may allow + the malicious attacker to bypass the Stack Smashing Protection (SSP) + and a bug causing the BLFS package libarchive miscompiled on + LoongArch:</para> <screen><userinput remap="pre">patch -Np1 -i ../&gcc-loongarch-fixes-patch;</userinput></screen> diff --git a/patches.ent b/patches.ent index 4809fe3fe..b6dcb0851 100644 --- a/patches.ent +++ b/patches.ent @@ -65,6 +65,6 @@ <!-- Put LoongArch patches last to reduce the chance of a conflict during merge. --> -<!ENTITY gcc-loongarch-fixes-patch "gcc-&gcc-version;-loongarch_fixes-3.patch"> -<!ENTITY gcc-loongarch-fixes-patch-md5 "c4d20533a25e0a62216fb160558d1613"> -<!ENTITY gcc-loongarch-fixes-patch-size "79 KB"> +<!ENTITY gcc-loongarch-fixes-patch "gcc-&gcc-version;-loongarch_fixes-1.patch"> +<!ENTITY gcc-loongarch-fixes-patch-md5 "ed890265d7cd49d99af55748d915a577"> +<!ENTITY gcc-loongarch-fixes-patch-size "15 KB"> -- To stop receiving notification emails like this one, please contact the administrator of this repository. -- http://lists.linuxfromscratch.org/sympa/info/lfs-book Unsubscribe: See the above information page