<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/nolibc, branch master</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=master</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2026-01-11T11:47:47Z</updated>
<entry>
<title>tools/nolibc: Add a simple test for writing to a FILE and reading it back</title>
<updated>2026-01-11T11:47:47Z</updated>
<author>
<name>Daniel Palmer</name>
</author>
<published>2026-01-05T02:36:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a5f00be9b3b07d92c6689997403851a32e1874cc'/>
<id>urn:sha1:a5f00be9b3b07d92c6689997403851a32e1874cc</id>
<content type='text'>
Add a test that exercises create-&gt;write-&gt;seek-&gt;read to check that using the
stream functions (fwrite() etc) is not totally broken.

The only edge cases this is testing for are:
- Reading the file after writing but without rewinding reads nothing.
- Trying to read more items than the file contains returns the count of
  fully read items.

Signed-off-by: Daniel Palmer &lt;daniel@thingy.jp&gt;
Link: https://patch.msgid.link/20260105023629.1502801-4-daniel@thingy.jp
Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
</content>
</entry>
<entry>
<title>selftests/nolibc: also test libc-test through regular selftest framework</title>
<updated>2026-01-11T10:17:15Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2026-01-06T11:44:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6fe8360b16acbfb50c703f52568cad46759be2ed'/>
<id>urn:sha1:6fe8360b16acbfb50c703f52568cad46759be2ed</id>
<content type='text'>
Hook up libc-test to the regular selftest build to make sure
nolibc-test.c stays compatible with a normal libc.

As the pattern rule from lib.mk does not handle compiling a target from
a differently named source file, add an explicit rule definition.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
Link: https://patch.msgid.link/20260106-nolibc-selftests-v1-3-f82101c2c505@weissschuh.net
</content>
</entry>
<entry>
<title>selftests/nolibc: scope custom flags to the nolibc-test target</title>
<updated>2026-01-11T10:17:12Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2026-01-06T11:44:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=20c72de1f8a9e338531579bd784371aba4b7dd2c'/>
<id>urn:sha1:20c72de1f8a9e338531579bd784371aba4b7dd2c</id>
<content type='text'>
A new target for 'libc-test' is going to be added which should not be
affected by these options.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
Link: https://patch.msgid.link/20260106-nolibc-selftests-v1-2-f82101c2c505@weissschuh.net
</content>
</entry>
<entry>
<title>selftests/nolibc: try to read from stdin in readv_zero test</title>
<updated>2026-01-11T10:17:07Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2026-01-06T11:44:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4203c6fb5e9d2e4fb9a48b421d92efd4429a4d55'/>
<id>urn:sha1:4203c6fb5e9d2e4fb9a48b421d92efd4429a4d55</id>
<content type='text'>
When stdout is redirected to a file this test fails.
This happens when running through the kselftest runner since
commit d9e6269e3303 ("selftests/run_kselftest.sh: exit with
error if tests fail").

For consistency with other tests that read from a file descriptor,
switch to stdin over stdout. The tests are still brittle against
a redirected stdin, but at least they are now consistently so.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
Link: https://patch.msgid.link/20260106-nolibc-selftests-v1-1-f82101c2c505@weissschuh.net
</content>
</entry>
<entry>
<title>selftests/nolibc: always build sparc32 tests with -mcpu=v8</title>
<updated>2026-01-06T11:30:16Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2026-01-06T10:39:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6b6dbf3e4ecfd7d1086bd7cd8b31ca8e45d4dc1f'/>
<id>urn:sha1:6b6dbf3e4ecfd7d1086bd7cd8b31ca8e45d4dc1f</id>
<content type='text'>
Since LLVM commit 39e30508a7f6 ("[Driver][Sparc] Default to -mcpu=v9 for
32-bit Linux/sparc64 (#109278)"), clang defaults to -mcpu=v9 for 32-bit
SPARC builds. -mcpu=v9 generates instructions which are not recognized
by qemu-sparc and qemu-system-sparc.

Explicitly enforce -mcpu=v8 to generate compatible code.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
Link: https://patch.msgid.link/20260106-nolibc-sparc32-fix-v2-1-7c5cd6b175c2@weissschuh.net
</content>
</entry>
<entry>
<title>selftests/nolibc: drop NOLIBC_SYSROOT=0 logic</title>
<updated>2026-01-06T11:08:09Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2026-01-04T14:57:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=03139924859f7930cd1667a278a560b5d4c6a672'/>
<id>urn:sha1:03139924859f7930cd1667a278a560b5d4c6a672</id>
<content type='text'>
This logic was added in commit 850fad7de827 ("selftests/nolibc: allow
test -include /path/to/nolibc.h") to allow the testing of -include
/path/to/nolibc.h. As it requires as special variable to activate, this
code is nearly never used. Furthermore it complicates the logic a bit.

Since commit a6a054c8ad32 ("tools/nolibc: add target to check header
usability") and commit 443c6467fcd6 ("selftests/nolibc: always run
nolibc header check") the usability of -include /path/to/nolibc.h is
always checked anyways, making NOLIBC_SYSROOT=0 pointless.

Drop the special logic.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
Link: https://patch.msgid.link/20260104-nolibc-nolibc_sysroot-v1-1-98025ad99add@weissschuh.net
</content>
</entry>
<entry>
<title>selftests/nolibc: test compatibility of nolibc and kernel time types</title>
<updated>2026-01-06T11:08:04Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2025-12-20T13:55:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ca7206b6ad029d2c35e64f1ea81dba385496e630'/>
<id>urn:sha1:ca7206b6ad029d2c35e64f1ea81dba385496e630</id>
<content type='text'>
Keeping 'struct timespec' and 'struct __kernel_timespec' compatible
allows the source code to stay simple.

Validate that the types stay compatible.

The test is specific to nolibc and does not compile on other libcs, so
skip it there.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
Reviewed-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Link: https://patch.msgid.link/20251220-nolibc-uapi-types-v3-10-c662992f75d7@weissschuh.net
</content>
</entry>
<entry>
<title>tools/nolibc: add ptrace support</title>
<updated>2026-01-04T09:28:44Z</updated>
<author>
<name>Benjamin Berg</name>
</author>
<published>2025-09-24T14:20:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ec4bb8e8dfa060c699b548f62e4d56133aafbbec'/>
<id>urn:sha1:ec4bb8e8dfa060c699b548f62e4d56133aafbbec</id>
<content type='text'>
Add ptrace support, as it will be useful in UML.

Signed-off-by: Benjamin Berg &lt;benjamin.berg@intel.com&gt;
[Thomas: drop va_args usage and linux/uio.h inclusion]
Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
</content>
</entry>
<entry>
<title>Merge tag 'nolibc-20251130-for-6.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/nolibc/linux-nolibc</title>
<updated>2025-12-03T17:23:25Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2025-12-03T17:23:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f2310b6271dc54278337987ec8140175e8df16f4'/>
<id>urn:sha1:f2310b6271dc54278337987ec8140175e8df16f4</id>
<content type='text'>
Pull nolibc updates from Thomas Weißschuh:

 - Preparations to the use of nolibc in UML:
     - Cleanup of sparse warnings
     - Library mode without _start()
     - More consistency when disabling errno

 - Unconditional installation of all architecture support files

 - Always 64-bit wide ino_t and off_t

 - Various cleanups and bug fixes

* tag 'nolibc-20251130-for-6.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/nolibc/linux-nolibc: (25 commits)
  selftests/nolibc: error out on linker warnings
  selftests/nolibc: use lld to link loongarch binaries
  tools/nolibc: remove more __nolibc_enosys() fallbacks
  tools/nolibc: remove now superfluous overflow check in llseek
  tools/nolibc: use 64-bit off_t
  tools/nolibc: prefer the llseek syscall
  tools/nolibc: handle 64-bit off_t for llseek
  tools/nolibc: use 64-bit ino_t
  tools/nolibc: avoid using plain integer as NULL pointer
  tools/nolibc: add support for fchdir()
  tools/nolibc: clean up outdated comments in generic arch.h
  tools/nolibc: make the "headers" target install all supported archs
  tools/nolibc: add the more portable inttypes.h
  tools/nolibc: provide the portable sys/select.h
  tools/nolibc: add missing memchr() to string.h
  tools/nolibc: fix misleading help message regarding installation path
  tools/nolibc: add uio.h with readv and writev
  tools/nolibc: add option to disable runtime
  tools/nolibc: use __fallthrough__ rather than fallthrough
  tools/nolibc: implement %m if errno is not defined
  ...
</content>
</entry>
<entry>
<title>selftests/nolibc: error out on linker warnings</title>
<updated>2025-11-22T11:35:12Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2025-11-22T11:01:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1d573464749cfcdfee695c256bcf9ec9cffcbdce'/>
<id>urn:sha1:1d573464749cfcdfee695c256bcf9ec9cffcbdce</id>
<content type='text'>
If the linker emits warnings these should abort the build.
Otherwise they will be swallowed by run-tests.sh and not shown.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Acked-by: Willy Tarreau &lt;w@1wt.eu&gt;
</content>
</entry>
</feed>
