public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] selftests/nolibc: test the memory allocator
@ 2026-04-04 11:50 Thomas Weißschuh
  2026-04-04 11:50 ` [PATCH v2 1/2] tools/nolibc: check for overflow in calloc() without divisions Thomas Weißschuh
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Thomas Weißschuh @ 2026-04-04 11:50 UTC (permalink / raw)
  To: Willy Tarreau; +Cc: linux-kernel, Thomas Weißschuh

The memory allocator has not seen any testing so far.

Add a simple testcase for it.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Changes in v2:
- Previously part of "tools/nolibc: add support for asprintf()".
- Drop already applied patches.
- Fix compilation of calloc() on arm32 clang.
- Link to v1: https://patch.msgid.link/20260401-nolibc-asprintf-v1-0-46292313439f@weissschuh.net

---
Thomas Weißschuh (2):
      tools/nolibc: check for overflow in calloc() without divisions
      selftests/nolibc: test the memory allocator

 tools/include/nolibc/stdlib.h                |  4 +-
 tools/testing/selftests/nolibc/nolibc-test.c | 55 ++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+), 2 deletions(-)
---
base-commit: dc37eb25858658c2057970749c48311faed714c0
change-id: 20260401-nolibc-asprintf-a0a8b6115dc5

Best regards,
--  
Thomas Weißschuh <linux@weissschuh.net>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-04-04 12:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-04 11:50 [PATCH v2 0/2] selftests/nolibc: test the memory allocator Thomas Weißschuh
2026-04-04 11:50 ` [PATCH v2 1/2] tools/nolibc: check for overflow in calloc() without divisions Thomas Weißschuh
2026-04-04 11:50 ` [PATCH v2 2/2] selftests/nolibc: test the memory allocator Thomas Weißschuh
2026-04-04 12:37 ` [PATCH v2 0/2] " Willy Tarreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox