<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/robimarko/toolchain/musl, branch master</title>
<subtitle>Staging tree of Robert Marko</subtitle>
<id>https://git.openwrt.org/openwrt/staging/robimarko/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/robimarko/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/'/>
<updated>2023-09-14T20:39:20Z</updated>
<entry>
<title>toolchain: musl: add PKG_CPE_ID</title>
<updated>2023-09-14T20:39:20Z</updated>
<author>
<name>Arne Zachlod</name>
</author>
<published>2023-09-13T16:20:03Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/commit/?id=66315993445c8dbd29a5b7a16d3761edebf074d9'/>
<id>urn:sha1:66315993445c8dbd29a5b7a16d3761edebf074d9</id>
<content type='text'>
Vulnerabilities of musl libc are tracked as
cpe:/a:musl-libc:musl

Signed-off-by: Arne Zachlod &lt;arne@nerdkeller.org&gt;
</content>
</entry>
<entry>
<title>toolchain/musl: update to 1.2.4</title>
<updated>2023-05-15T18:39:17Z</updated>
<author>
<name>Linhui Liu</name>
</author>
<published>2023-05-07T08:05:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/commit/?id=fff878c5bcda6dea337c97a95721bf8cf73e4560'/>
<id>urn:sha1:fff878c5bcda6dea337c97a95721bf8cf73e4560</id>
<content type='text'>
Release notes:

new features:
- large dns record lookups via tcp fallback
- new getaddrinfo EAI_NODATA result to distinguish NODATA/NxDomain
- support for new RELR compressed format for relative relocations
- sysconf keys for querying signal stack size requirements
- real vfork on riscv64

performance:
- mallocng no longer uses MADV_FREE (high performance cost, little gain)
- vdso clock_gettime is supported once again on 32-bit arm

compatibility:
- gethostbyname family now distinguishes NO_DATA from HOST_NOT_FOUND
- res_send now works with caller-provided edns0 queries
- arpa/nameser.h RR types list is now up-to-date
- previously-missing POSIX confstr keys have been added
- mntent interfaces now accept missing fields
- alt signal stack, if any, is now used for internal signals
- the LFS64 macros are no longer exposed without _LARGEFILE64_SOURCE
- memmem (POSIX-future) is now exposed in default feature profile
- pthread_atfork now admits calls from an application-provided malloc
- debugger tracking of shared libraries now works on MIPS PIE binaries
- sendmsg now supports up to SCM_MAX_FD fds in SCM_RIGHTS messages

bugs fixed:
- gethostbyname[2]_r wrongly returned nonzero (error) on negative result
- parallel v4/v6 address queries could fail on query id collisions
- spurious getaddrinfo/AI_ADDRCONFIG failures due to errno clobbering
- dns search domains ending in dot (including lone dot) broke lookups
- ipv6 servers in resolv.conf broke lookups on systems with v6 disabled
- systems with bindv6only failed to query both v4 and v6 nameservers
- res_mkquery mishandled consecutive final dots in name
- res_send could malfunction for very small answer buffer sizes
- resolver dns backend accepted answers with wrong (A vs AAAA) RR type
- getservbyport_r returned junk or ENOENT (vs ERANGE) on buffer size errors
- dns result parsing of malformed responses could process uninitialized data
- freopen didn't reset stream orientation (byte/wide) &amp; encoding rule
- fwprintf didn't print most fields on open_wmemstream FILEs
- wide printf %lc ignored field width
- wide printf erroneously processed %n after encoding errors
- use of wide printf %9$ argument slot overflowed undersized buffer
- swprintf malfunctioned on nul character in output
- strverscmp ordered digit sequences vs nondigits incorrectly
- timer_create/SIGEV_THREAD failure leaked the thread
- semaphores were subject to missed-wake under certain usage patterns
- several possible rare deadlocks with lock handling at thread exit
- several possible rare deadlocks with aio and multithreaded fork
- dynamic linker relro processing was broken on archs w/variable pagesize
- async cancellation could run cancellation handlers in invalid context
- pthread_detach was wrongly a cancellation point in rare race code path
- use-after-close/double-close errors in mq_notify error paths
- mq_notify event thread wrongly ran with signals unmasked
- wcs{,n}cmp, wmemcmp returned wrong results when difference overflowed
- accept4, pipe2, and dup3 handled unknown flags wrong in fallback cases
- CPU_SETSIZE macro had wrong unit
- select fallback for pre-time64 kernels truncated timeout (vs clamping)

arch-specific bugs fixed:
- x32 new socketcalls took fallback path due to pointer sign extension
- x32 wait4 didn't fill rusage structure (time64 regression)
- x32 semtimedop mismatched timespec ABI with kernel (time64 regression)
- sigaction signal mask was bogus on or1k, microblaze, mips, and riscv
- powerpc-sf longjmp asm clobbered value argument
- or1k poll function passed timeout to syscall in wrong form

Removed upstreamed:
- 800-mips_pie_debug.patch
Manually rebased:
- 600-nftw-support-common-gnu-extension.patch

Signed-off-by: Linhui Liu &lt;liulinhui36@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain/musl: remove libgcc_initial hack</title>
<updated>2023-02-19T18:44:39Z</updated>
<author>
<name>Andre Heider</name>
</author>
<published>2023-02-09T10:06:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/commit/?id=4d384d28e44138c7619c0ab68b95cac21eeafbbf'/>
<id>urn:sha1:4d384d28e44138c7619c0ab68b95cac21eeafbbf</id>
<content type='text'>
This reverts r15599 [0].

This was added to fix an uclibc rebuild issue, but since uclibc
isn't supported anymore [Fixes:] this can be removed.

[0] https://git.openwrt.org/?p=openwrt/svn-archive/archive.git;a=commitdiff;h=016a052efeee6bc2da3f501a8c66b5aea20350b4

Fixes: 63fb1752 "toolchain: remove uClibc-ng"
Signed-off-by: Andre Heider &lt;a.heider@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: musl: Fix symbol loading in gdb</title>
<updated>2023-01-22T01:00:35Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2023-01-10T18:50:12Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/commit/?id=fcdd407e8e16b90e1995789ba217be5591a88d2f'/>
<id>urn:sha1:fcdd407e8e16b90e1995789ba217be5591a88d2f</id>
<content type='text'>
Fix DT_DEBUG handling on MIPS in musl libc.
With this change gdb will load the symbol files for shared libraries on MIPS too.

This patch was taken from this thread: https://www.openwall.com/lists/musl/2022/01/09/4

Signed-off-by: Hauke Mehrtens &lt;hmehrtens@maxlinear.com&gt;
</content>
</entry>
<entry>
<title>toolchain: musl: Update to version 1.2.3</title>
<updated>2022-04-11T19:41:03Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2022-04-10T22:11:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/commit/?id=685ae2687bd1b199dc83ee1e16d47c05afca6102'/>
<id>urn:sha1:685ae2687bd1b199dc83ee1e16d47c05afca6102</id>
<content type='text'>
Changes:
new features:
- qsort_r function (POSIX-future)
- pthread_getname_np extension function
- hard float on SPE FPU for powerpc-sf
- SEEK_DATA and SEEK_HOLE exposed in unistd.h (Linux extensions)

compatibility:
- free now preserves errno (POSIX-future requirement)
- setjmp is declared explicitly with returns_twice for non-GCC compilers
- macro version of isascii is no longer defined for C++
- dynamic linker now tolerates zero-length LOAD segments
- epoll_[p]wait is now a cancellation point
- pwd/grp functions no longer fail on systems without AF_UNIX support
- POSIX TZ parsing is stricter to allow more names to fallback to files
- NULL is now defined as nullptr when used in C++11 or later
- gettext now accepts null pointer as argument

bugs fixed:
- old regression in wcwidth of Hangul combining (vowel/final) letters
- duplocale used wrong malloc when malloc was replaced (1.2.2 regression)
- fmaf rounded wrong on archs without FE_TOWARDZERO (all softfloat archs)
- popen didn't honor requirement not to leak other popen pipe fds to child
- aligned_alloc and variants crashed on allocation failure
- dl_iterate_phdr reported incorrect module TLS pointers
- mishandling of some inputs in acoshf and expm1f and functions using them
- potentially wrong-sign zero in cproj functions at infinity
- multiple bugs in legacy function cuserid
- minor posix_spawn file actions API conformance issues
- pthread_setname_np fd leak
- out-of-bound read in zoneinfo handling with distant-past times
- out-of-tree builds lacked generated debug cfi for x86 asm

arch-specific bugs fixed:
- powerpc (32-bit) struct shmid_ds layout was wrong for some fields
- time64 struct layout was wrong in sound ioctl fallback (32-bit archs)

In addition it contains the following improvements:
* protect stack canary from leak via read-as-string by zeroing second byte
* fix excessively slow TLS performance on some mips models

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
Acked-by: Rui Salvaterra &lt;rsalvaterra@gmail.com&gt;
Tested-by: Rui Salvaterra &lt;rsalvaterra@gmail.com&gt;
Tested-by: Koen Vandeputte &lt;koen.vandeputte@ncentric.com&gt;
</content>
</entry>
<entry>
<title>toolchain: musl: disable crypt size hack by default</title>
<updated>2021-12-27T10:26:32Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2021-12-14T11:12:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/commit/?id=66768755791286fc02a38d1b437a9da74290041d'/>
<id>urn:sha1:66768755791286fc02a38d1b437a9da74290041d</id>
<content type='text'>
Enable this option and thus re-include crypt() support for the SHA256,
SHA512 and Blowfish ciphers on all devices. According to commit
9365745f8e7b ("musl: add a hack to remove unused crypt() algorithms,
saves ~14k after lzma") it should add about ~14k to the resulting image,
which seems to be a reasonable size increase for consistent crypt()
support.

Decided to not remove this hack completely as it might be still useful
for people trying to fit custom images onto smaller devices and the
patch is rather simple so we can afford to keep it for now.

References: https://github.com/openwrt/openwrt/pull/1331
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>toolchain/musl: Remove extra format attribute patch</title>
<updated>2021-09-22T17:04:02Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2021-09-09T18:36:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/commit/?id=71e96532df211380b4d66b8cab709dea11d6dcf2'/>
<id>urn:sha1:71e96532df211380b4d66b8cab709dea11d6dcf2</id>
<content type='text'>
This patch never went upstream so remove it. GCC should already add such
a check to the common functions.

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>toolchain/musl: remove several GNU headers</title>
<updated>2021-09-22T17:04:02Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-03-20T01:31:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/commit/?id=b519be1c522da3983277514a81dd83149737fbce'/>
<id>urn:sha1:b519be1c522da3983277514a81dd83149737fbce</id>
<content type='text'>
Remove GLOB_ONLYDIR patch. Only fstools relies on it. fstools has been
fixed separately.

Remove woresize.h file. It seems to be for an old version of GCC.

Remove features.h and glibc-types files. Same as above.

Remove sys/cdefs.h. This is a deprecated header. Patches to fix packages
that use it have already been patched.

Tested with all packages in the base tree. They all compile.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain/musl: update to 1.2.2</title>
<updated>2021-09-22T17:04:02Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-03-20T01:31:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/commit/?id=aaec2ad13b18086e2aaf9ca9152827c50e578bc0'/>
<id>urn:sha1:aaec2ad13b18086e2aaf9ca9152827c50e578bc0</id>
<content type='text'>
This release introduces 64-bit time_t, which is needed to avoid the
year 2038 problem.

Remove upstream patches. Refreshed others.

Rebased features.h file based on latest musl.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: musl: refresh patches</title>
<updated>2020-12-02T22:38:42Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2020-12-02T21:06:34Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/commit/?id=a44a2f9e93a92304ee1b457aaa63ba8172a1135a'/>
<id>urn:sha1:a44a2f9e93a92304ee1b457aaa63ba8172a1135a</id>
<content type='text'>
Refresh the musl patches

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
</feed>
