package/uclibc: bump to 1.0.60
PATCH v2 1/1 package/uclibc: bump to 1.0.60
All patches are applied upstream.
See here for changes in this release:
https://github.com/wbx-github/uclibc-ng/commits/v1.0.60/
---v1->v2:
- add hotfix for mips32 build error
--- .../0001-Fix-SSP-support-for-riscv32.patch | 174 ------------- ...s-parenthesize-the-syscall-arguments.patch | 185 ++++++++++++++ .../0002-ppc-fix-e500-fenv-support.patch | 237 ------------------ ...tx-should-be-private-and-not-exposed.patch | 151 ----------- ...nel-helper-on-every-core-without-CAS.patch | 116 --------- ...threads-add-dummy-for-pthread_atfork.patch | 43 ---- ...l-sys-auxv.h-for-static-builds-again.patch | 57 ----- ...ar.h-declare-wcsdup-for-POSIX.1-2008.patch | 41 --- package/uclibc/uclibc.hash | 4 +- package/uclibc/uclibc.mk | 2 +- 10 files changed, 188 insertions(+), 822 deletions(-) delete mode 100644 package/uclibc/0001-Fix-SSP-support-for-riscv32.patch create mode 100644 package/uclibc/0001-mips-parenthesize-the-syscall-arguments.patch delete mode 100644 package/uclibc/0002-ppc-fix-e500-fenv-support.patch delete mode 100644 package/uclibc/0003-fenv-struct-rm_ctx-should-be-private-and-not-exposed.patch delete mode 100644 package/uclibc/0004-m68k-use-the-kernel-helper-on-every-core-without-CAS.patch delete mode 100644 package/uclibc/0005-Revert-linuxthreads-add-dummy-for-pthread_atfork.patch delete mode 100644 package/uclibc/0006-buildsys-install-sys-auxv.h-for-static-builds-again.patch delete mode 100644 package/uclibc/0007-wchar.h-declare-wcsdup-for-POSIX.1-2008.patch
package/uclibc/0001-Fix-SSP-support-for-riscv32.patch deleted +0 -174
@@ -1,174 +0,0 @@ -From c6efc293a52fdde7d4876243faaaa768fe052719 Mon Sep 17 00:00:00 2001 -From: Waldemar Brodkorb <[email protected]> -Date: Sat, 15 Aug 2026 18:20:33 +0200 -Subject: [PATCH] Fix SSP support for riscv32 - -On modern 32-bit architectures like RISC-V (riscv32), legacy 32-bit -time syscalls like __NR_gettimeofday are intentionally omitted because -RV32 implements a strict time64-only ABI to avoid the Year 2038 bug. - -Therefore, use AT_RANDOM from the auxiliary vector first, as glibc does, -to obtain random data for the stack canary. If AT_RANDOM is unavailable, -fall back to reading random data from /dev/urandom. - -Tested with aarch64, riscv32 and riscv32 noMMU targets. - -Upstream: https://mailman.openadk.org/mailman3/hyperkitty/list/[email protected]/thread/WIKMWPXJYAPTVVZ2MMZINUJNPIJXBMOE/ -Signed-off-by: Waldemar Brodkorb <[email protected]> ---- - extra/Configs/Config.in | 10 ------- - ldso/include/dl-syscall.h | 12 -------- - ldso/ldso/ldso.c | 4 ++- - libc/misc/internals/__uClibc_main.c | 4 ++- - libc/sysdeps/linux/common/dl-osinfo.h | 40 +++++++++++++++++---------- - 5 files changed, 32 insertions(+), 38 deletions(-) - -diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in -index c3aabf1b4..15a072593 100644 ---- a/extra/Configs/Config.in -+++ b/extra/Configs/Config.in -@@ -2211,16 +2211,6 @@ config UCLIBC_HAS_SSP - - Most people will answer N. - --config SSP_QUICK_CANARY -- bool "Use simple guard values without accessing /dev/urandom" -- depends on UCLIBC_HAS_SSP -- help -- Use gettimeofday(2) to define the __guard without accessing -- /dev/urandom. -- WARNING: This makes smashing stack protector vulnerable to timing -- attacks. -- Most people will answer N. -- - choice - prompt "Propolice protection blocking signal" - depends on UCLIBC_HAS_SSP -diff --git a/ldso/include/dl-syscall.h b/ldso/include/dl-syscall.h -index c143b8d45..e08b2cd41 100644 ---- a/ldso/include/dl-syscall.h -+++ b/ldso/include/dl-syscall.h -@@ -260,18 +260,6 @@ _dl_pread(int fd, void *buf, size_t count, off_t offset) - } - #endif - --#ifdef __UCLIBC_HAS_SSP__ --# include <sys/time.h> --# define __NR__dl_gettimeofday __NR_gettimeofday --static __always_inline _syscall2(int, _dl_gettimeofday, struct timeval *, tv, --# ifdef __USE_BSD -- struct timezone * --# else -- void * --# endif -- , tz) --#endif -- - /* Some architectures always use 12 as page shift for mmap2() eventhough the - * real PAGE_SHIFT != 12. Other architectures use the same value as - * PAGE_SHIFT... -diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c -index 55f7d7e45..96ee3d496 100755 ---- a/ldso/ldso/ldso.c -+++ b/ldso/ldso/ldso.c -@@ -1225,7 +1225,9 @@ of this helper program; chances are you did not intend to run this program.\n\ - #ifdef __UCLIBC_HAS_SSP__ - _dl_debug_early("Setting up SSP guards\n"); - /* Set up the stack checker's canary. */ -- stack_chk_guard = _dl_setup_stack_chk_guard (); -+ stack_chk_guard = _dl_setup_stack_chk_guard ( -+ _dl_auxvt[AT_RANDOM].a_type == AT_RANDOM ? -+ (void *)_dl_auxvt[AT_RANDOM].a_un.a_val : NULL); - # ifdef THREAD_SET_STACK_GUARD - THREAD_SET_STACK_GUARD (stack_chk_guard); - # else -diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c -index 549606505..bbf471b17 100644 ---- a/libc/misc/internals/__uClibc_main.c -+++ b/libc/misc/internals/__uClibc_main.c -@@ -296,7 +296,9 @@ void __uClibc_init(void) - #ifndef SHARED - # ifdef __UCLIBC_HAS_SSP__ - /* Set up the stack checker's canary. */ -- stack_chk_guard = _dl_setup_stack_chk_guard(); -+ stack_chk_guard = _dl_setup_stack_chk_guard( -+ _dl_auxvt[AT_RANDOM].a_type == AT_RANDOM ? -+ (void *)_dl_auxvt[AT_RANDOM].a_un.a_val : NULL); - # ifdef THREAD_SET_STACK_GUARD - THREAD_SET_STACK_GUARD (stack_chk_guard); - # else -diff --git a/libc/sysdeps/linux/common/dl-osinfo.h b/libc/sysdeps/linux/common/dl-osinfo.h -index 3110cb05d..0a42ea094 100644 ---- a/libc/sysdeps/linux/common/dl-osinfo.h -+++ b/libc/sysdeps/linux/common/dl-osinfo.h -@@ -21,22 +21,42 @@ - # ifdef IS_IN_libc - # include <fcntl.h> - # include <unistd.h> --# include <sys/time.h> -+# include <string.h> - # define OPEN open - # define READ read - # define CLOSE close --# define GETTIMEOFDAY gettimeofday -+# define MEMCPY memcpy - # else -+# include <dl-string.h> - # define OPEN _dl_open - # define READ _dl_read - # define CLOSE _dl_close --# define GETTIMEOFDAY _dl_gettimeofday -+# define MEMCPY _dl_memcpy - # endif - --static __always_inline uintptr_t _dl_setup_stack_chk_guard(void) -+static __always_inline uintptr_t -+_dl_setup_stack_chk_guard(void *dl_random) - { - uintptr_t ret; --# ifndef __SSP_QUICK_CANARY__ -+ -+ /* -+ * Linux supplies random data through AT_RANDOM. -+ * Use it directly when available. -+ */ -+ if (dl_random != NULL) { -+ MEMCPY(&ret, dl_random, sizeof(ret)); -+ -+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -+ ret &= ~(uintptr_t)0xff; -+#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ -+ ret &= ~((uintptr_t)0xff << (8 * (sizeof(ret) - 1))); -+#else -+# error "Unknown byte order" -+#endif -+ -+ return ret; -+ } -+ - { - int fd = OPEN("/dev/urandom", O_RDONLY, 0); - if (fd >= 0) { -@@ -46,18 +66,10 @@ static __always_inline uintptr_t _dl_setup_stack_chk_guard(void) - return ret; - } - } --# endif /* !__SSP_QUICK_CANARY__ */ - -- /* Start with the "terminator canary". */ -+ /* Fallback just the "terminator canary". */ - ret = 0xFF0A0D00UL; - -- /* Everything failed? Or we are using a weakened model of the -- * terminator canary */ -- { -- struct timeval tv; -- if (GETTIMEOFDAY(&tv, NULL) != (-1)) -- ret ^= tv.tv_usec ^ tv.tv_sec; -- } - return ret; - } - # endif /* libc || rtld */ --- -2.47.3 -
package/uclibc/0001-mips-parenthesize-the-syscall-arguments.patch new file +185 -0
185 lines not on this page · raw message
package/uclibc/0002-ppc-fix-e500-fenv-support.patch deleted +0 -237
237 lines not on this page · raw message
package/uclibc/0003-fenv-struct-rm_ctx-should-be-private-and-not-exposed.patch deleted +0 -151
151 lines not on this page · raw message
package/uclibc/0004-m68k-use-the-kernel-helper-on-every-core-without-CAS.patch deleted +0 -116
116 lines not on this page · raw message
package/uclibc/0005-Revert-linuxthreads-add-dummy-for-pthread_atfork.patch deleted +0 -43
43 lines not on this page · raw message
package/uclibc/0006-buildsys-install-sys-auxv.h-for-static-builds-again.patch deleted +0 -57
57 lines not on this page · raw message
package/uclibc/0007-wchar.h-declare-wcsdup-for-POSIX.1-2008.patch deleted +0 -41
41 lines not on this page · raw message
package/uclibc/uclibc.hash +2 -2
@@ -1,4 +1,4 @@ -# From https://downloads.uclibc-ng.org/releases/1.0.59/uClibc-ng-1.0.59.tar.xz.sha256 -sha256 86c6f15971bfb14156850f2e36906dac5a69df7b3e688216d1aea09d2db54174 uClibc-ng-1.0.59.tar.xz +# From https://downloads.uclibc-ng.org/releases/1.0.60/uClibc-ng-1.0.60.tar.xz.sha256 +sha256 4ff2ca4de4fe47e85b8ce9a62f73e3f05c9bc675de8349fccd0d224574357c44 uClibc-ng-1.0.60.tar.xz # Locally calculated sha256 ec60b993835e2c6b79e6d9226345f4e614e686eb57dc13b6420c15a33a8996e5 COPYING.LIB
package/uclibc/uclibc.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -UCLIBC_VERSION = 1.0.59 +UCLIBC_VERSION = 1.0.60 UCLIBC_SOURCE = uClibc-ng-$(UCLIBC_VERSION).tar.xz UCLIBC_SITE = https://downloads.uclibc-ng.org/releases/$(UCLIBC_VERSION) UCLIBC_LICENSE = LGPL-2.1+
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 5 lines · Waldemar Brodkorb
All patches are applied upstream.
See here for changes in this release:
https://github.com/wbx-github/uclibc-ng/commits/v1.0.60/Signed-off-by Waldemar Brodkorb <[email protected]>
Applied to next, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot