lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250428-nolibc-misc-v2-0-3c043eeab06c@linutronix.de>
Date: Mon, 28 Apr 2025 14:40:01 +0200
From: Thomas Weißschuh <thomas.weissschuh@...utronix.de>
To: Willy Tarreau <w@....eu>, 
 Thomas Weißschuh <linux@...ssschuh.net>, 
 Shuah Khan <shuah@...nel.org>
Cc: linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org, 
 Thomas Weißschuh <thomas.weissschuh@...utronix.de>
Subject: [PATCH v2 00/15] tools/nolibc: various new functions

A few functions used by different selftests.
Adding them now avoids later conflicts between different selftest serieses.

Also add full support for nolibc-test.c on riscv32.
All unsupported syscalls have been replaced.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@...utronix.de>
---
Changes in v2:
- Rebase onto latest nolibc next branch
- Move #include "nolibc.h" to the top of the headers
- Include linux/random.h from sys/random.h
- Don't block on missing entropy in getrandom() selftest
- Also test negative result of difftime()
- Simplify fopen()
- Link to v1: https://lore.kernel.org/r/20250423-nolibc-misc-v1-0-a925bf40297b@linutronix.de

---
Thomas Weißschuh (15):
      tools/nolibc: add strstr()
      tools/nolibc: add %m printf format
      tools/nolibc: add more stat() variants
      tools/nolibc: add mremap()
      tools/nolibc: add getrandom()
      tools/nolibc: add abs() and friends
      tools/nolibc: add support for access() and faccessat()
      tools/nolibc: add clock_getres(), clock_gettime() and clock_settime()
      tools/nolibc: add timer functions
      tools/nolibc: add timerfd functionality
      tools/nolibc: add difftime()
      tools/nolibc: add namespace functionality
      tools/nolibc: add fopen()
      tools/nolibc: fall back to sys_clock_gettime() in gettimeofday()
      tools/nolibc: implement wait() in terms of waitpid()

 tools/include/nolibc/Makefile                |   4 +
 tools/include/nolibc/math.h                  |  31 ++++
 tools/include/nolibc/nolibc.h                |   4 +
 tools/include/nolibc/sched.h                 |  50 +++++
 tools/include/nolibc/stdio.h                 |  27 +++
 tools/include/nolibc/stdlib.h                |  18 ++
 tools/include/nolibc/string.h                |  20 ++
 tools/include/nolibc/sys/mman.h              |  19 ++
 tools/include/nolibc/sys/random.h            |  34 ++++
 tools/include/nolibc/sys/stat.h              |  25 ++-
 tools/include/nolibc/sys/time.h              |  15 +-
 tools/include/nolibc/sys/timerfd.h           |  87 +++++++++
 tools/include/nolibc/sys/wait.h              |  12 +-
 tools/include/nolibc/time.h                  | 185 ++++++++++++++++++
 tools/include/nolibc/types.h                 |   3 +
 tools/include/nolibc/unistd.h                |  28 +++
 tools/testing/selftests/nolibc/Makefile      |   2 +
 tools/testing/selftests/nolibc/nolibc-test.c | 268 ++++++++++++++++++++++++++-
 18 files changed, 820 insertions(+), 12 deletions(-)
---
base-commit: 2051d3b830c0889ae55e37e9e8ff0d43a4acd482
change-id: 20250415-nolibc-misc-f2548ccc5ce1

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh@...utronix.de>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ