Commit Graph

83 Commits

Author SHA1 Message Date
Michael Tremer
692d18285f glibc: Fix added whitespace in syslog messages
Fixes: #12949
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-10-10 09:32:56 +00:00
Michael Tremer
2a4ab94d1b glibc: Update to 2.36
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-09-11 08:36:17 +00:00
Peter Müller
9a7e4d8506 Switch checksums from MD5 to BLAKE2
Historically, the MD5 checksums in our LFS files serve as a protection
against broken downloads, or accidentally corrupted source files.

While the sources are nowadays downloaded via HTTPS, it make sense to
beef up integrity protection for them, since transparently intercepting
TLS is believed to be feasible for more powerful actors, and the state
of the public PKI ecosystem is clearly not helping.

Therefore, this patch switches from MD5 to BLAKE2, updating all LFS
files as well as make.sh to deal with this checksum algorithm. BLAKE2 is
notably faster (and more secure) than SHA2, so the performance penalty
introduced by this patch is negligible, if noticeable at all.

In preparation of this patch, the toolchain files currently used have
been supplied with BLAKE2 checksums as well on
https://source.ipfire.org/.

Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Acked-by: Michael Tremer <michael.tremeripfire.org>
2022-04-02 14:19:25 +00:00
Michael Tremer
fd34a1c888 glibc: Update to 2.35
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-05 12:14:11 +00:00
Michael Tremer
173a4d546d glibc: Enable memory tagging on aarch64
https://lwn.net/Articles/834289/

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-05 12:09:29 +00:00
Michael Tremer
cf557eca9c glibc: Enable CET
Enable Intel Control-flow Enforcement Technology (CET) support
to protect the library with indirect branch tracking (IBT) and
shadow stack (SHSTK).

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-05 12:09:18 +00:00
Michael Tremer
1c3905afa6 glibc: Update to version 2.34
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-05 12:08:58 +00:00
Michael Tremer
6cf219c427 Drop support for i586
This patch removes support for i586 according to the decision being
taken over a year ago.

It removes the architecture from the build system and removes all
required hacks and other quirks that have been necessary before.

There is no need to ship any changed files to the remaining
architectures as the removed code branches have not been used.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-12-04 23:27:26 +01:00
Michael Tremer
b9a4368adb glibc: Fix CVE-2021-33574 and follow-up issue
The mq_notify function has a potential use-after-free issue when using a
notification type of SIGEV_THREAD and a thread attribute with a non-default
affinity mask.

The fix for this introduced a NULL pointer dereference.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-10 07:36:49 +00:00
Arne Fitzenreiter
955ab2f5c3 glibc: fix for older i?86 cpu's
with such cpu the libc fails with CPU ISA level is lower than required. So this disable
ISA support.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-07-06 06:18:09 +02:00
Michael Tremer
60832138c1 glibc: Update to 2.33
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-05 07:42:39 +02:00
Arne Fitzenreiter
aafdd71b04 switch arm 32 bit arch from armv5tel to armv6l
we have no supported armv5tel board left so we can switch to the higher
arch. This now can use the vpu (still in softfp calling convention to
not break existing installations.)
this fix many compile problems, also boost is now working again.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-07-05 07:42:39 +02:00
Michael Tremer
cf6c8e67fb glibc: Disable libcrypt and ship libxcrypt instead
libcrypt is deprecated in glibc, and is now explicitely disabled.

Instead we ship libxcrypt which is an alternative implemenation and can be used as a drop-in replacement.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-02-05 18:43:05 +00:00
Arne Fitzenreiter
d83422d1c0 toolchain: fix build with gcc<8 on builder.
gcc-7 not support -fcf-protection so filter it from CFLAGS.
also filter -mtune in first pass because it should optimized for the
actual host.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-09-24 07:36:01 +02:00
Michael Tremer
44bfc40640 glibc: aarch64: Ignore uninitialised variables in the stage2 build, too
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-08-17 10:05:40 +00:00
Michael Tremer
de57b780be glibc: Pass -Wno-error=maybe-uninitialized
This is required to build glibc in the toolchain stage on
aarch64 due to messy headers on the host system.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-08-16 10:29:43 +00:00
Michael Tremer
a7f6809c7f glibc: Drop any custom CFLAGS
glibc is nothing special and can and should be built with
the same flags than the rest of the system.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-08-16 10:29:43 +00:00
Michael Tremer
6843949dac Update glibc to 2.32
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-08-16 10:29:42 +00:00
Michael Tremer
29cb9e478a glibc: Update to 2.31
Fixes: #12288
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-03-22 07:30:45 +00:00
Arne Fitzenreiter
6ef219bbe0 glibc: enbable parallel build for locales
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-09-18 16:30:49 +00:00
Michael Tremer
864a5befd9 glibc: Update to 2.29
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-04-28 09:44:38 +01:00
Michael Tremer
9af7531136 glibc: Update to 2.28
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-10-24 11:16:38 +01:00
Michael Tremer
59a6d4e439 glibc: Enable obsolete NSL
This will re-activate the deprecated NIS code on which lots of
software relies on so that we can have some extra time to migrate.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-02-11 20:56:12 +00:00
Michael Tremer
65a75e0ddf glibc: Update to 2.27
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-02-11 20:56:12 +00:00
Arne Fitzenreiter
11b5e5cb8e toolchain: update to gcc-7.3.0 and enable retpolines on x86_64 and i586
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-02-11 20:56:12 +00:00
Michael Tremer
6c4cc7ea1b Move toolchain from /tools to /tools_${arch}
This will allow us to run multiple builds on the same
system at the same time (or at least have them on disk).

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-11-23 15:57:28 +00:00
Michael Tremer
15a2c03f5d glibc: Don't use locale-archive
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-06-15 11:45:19 +01:00
Michael Tremer
dfa795eb1a glibc: Do not enable stack-smashing protector in toolchain stage
This is causing build errors on some systems where the host
system does or does not use SSP.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-05-18 12:07:24 +01:00
Michael Tremer
3e477b7d73 glibc: Install obsolete RPC headers
Some programs still use these and therefore we need to install
them here.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-05-18 12:06:09 +01:00
Michael Tremer
fe2adb0cdf glibc: Test toolchain after build
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-05-18 12:05:29 +01:00
Michael Tremer
b7093f17d5 stage1: New build script
Creates some basic directories and symlinks in toolchain stage

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-05-18 12:04:20 +01:00
Michael Tremer
dc7d6b204d make.sh: Cleanup of polluted environment
The build environment is using a number of variables which
occasionally conflicted with some other build systems.

This patch cleans that up by renaming some variables and
later unexporting them in the lfs files.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-05-18 12:02:03 +01:00
Michael Tremer
de1928cca7 glibc: Enable hard float abi when compiling for armv7hl
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-05-18 12:01:34 +01:00
Michael Tremer
6b9f806e95 glibc: Update to 2.25
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-05-18 11:58:44 +01:00
Arne Fitzenreiter
802b916d10 Merge remote-tracking branch 'origin/master' into next
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>

Conflicts:
	make.sh
2016-02-17 19:47:50 +01:00
Arne Fitzenreiter
1ffbca6e4f glibc: disable patches that break build on arm.
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2016-02-17 18:49:38 +01:00
Arne Fitzenreiter
bb330e25e9 glibc: new RHEL6 patches / fix CVE-2015-7547 and more
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2016-02-17 12:46:11 +01:00
Arne Fitzenreiter
764a3f1ff2 toolchain: fix full toolchain crossbuild
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2016-01-07 17:41:43 +01:00
Michael Tremer
9098b1e1c0 glibc: Fix headers to build with new GCC
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-12-22 12:40:38 +00:00
Michael Tremer
27957a3f2b Merge remote-tracking branch 'ms/x86_64' into next 2015-09-11 15:06:09 +01:00
Michael Tremer
612c14d58b glibc: Fix build with make version 4.0 and greater
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-08-22 17:22:16 +01:00
Michael Tremer
81aa971410 Allow building the toolchain for x86_64
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-08-22 12:25:49 +02:00
Michael Tremer
9eb008dc92 glibc: Import security fixes from upstream
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-08-17 20:49:34 +01:00
Michael Tremer
30ca037fb3 glibc: Fix CVE-2013-7423 and CVE-2015-1781
CVE-2013-7423: Fix invalid file descriptor reuse while sending DNS query
CVE-2015-1781: Fix buffer overflow in gethostbyname_r with misaligned buffer
2015-04-27 21:20:46 +02:00
Michael Tremer
fe875de813 glibc: Backport hotfixes from RHEL 2015-01-27 22:01:24 +01:00
Michael Tremer
8acdb5225d glibc: Fix build on x86
Some files that are patched for ARM are not available
on the x86 source tree. Hence the sed command should not
be executed.
2014-10-26 20:51:14 +01:00
Michael Tremer
541fb9a8a1 glibc: fix build with new patches. 2014-10-23 21:57:36 +02:00
Arne Fitzenreiter
3a317084d6 Revert "Revert "toolchain: Fix compiling due to Stack Protector changes.""
This reverts commit 4ec728f840.
2014-10-22 13:49:54 +02:00
Michael Tremer
bd76bcb8b4 glibc: Import several fixes from RHEL.
Fixes #10611, CVE-2014-5119 among other bug fixes.
2014-09-03 21:49:01 +02:00
Michael Tremer
4e3ce5438b glibc: Install all known locales. 2014-04-01 16:24:50 +02:00