mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/4] talloc and memory leak debugging
@ 2025-11-07 14:41 Sascha Hauer
  2025-11-07 14:41 ` [PATCH v2 1/4] lib: add talloc for overlaying a tree onto allocations Sascha Hauer
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Sascha Hauer @ 2025-11-07 14:41 UTC (permalink / raw)
  To: BAREBOX; +Cc: Ahmad Fatoum

This picks up the talloc series previously sent by Ahmad. I also added
the memory leak debugging patch tooling for sandbox.

This series includes my review comments to v1.

Changes since v1:
- pass originally allocated pointer to malloc_usable_size()
- align talloc allocations to 8 bytes
- Use __lsan_do_recoverable_leak_check() instead of
  __lsan_do_leak_check() to keep barebox running after memory leaks have
  been detected

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
Ahmad Fatoum (4):
      lib: add talloc for overlaying a tree onto allocations
      test: self: add talloc selftest
      hush: fix memory leaks
      sandbox: add memory leak debugging tooling around LeakSanitizer

 arch/sandbox/Makefile         |   2 +-
 arch/sandbox/os/libc_malloc.c |   9 +
 commands/Kconfig              |   9 +
 commands/Makefile             |   1 +
 commands/checkleak.c          |  52 ++++++
 common/Kconfig.debug          |   6 +
 common/hush.c                 |  41 +++--
 include/malloc.h              |   6 +
 include/talloc.h              |  43 +++++
 include/xfuncs.h              |   6 +
 lib/Makefile                  |   1 +
 lib/talloc.c                  | 415 ++++++++++++++++++++++++++++++++++++++++++
 lib/xfuncs.c                  |  20 ++
 test/self/Kconfig             |   6 +
 test/self/Makefile            |   1 +
 test/self/talloc.c            | 153 ++++++++++++++++
 16 files changed, 754 insertions(+), 17 deletions(-)
---
base-commit: 594850b2de53300ae25c103e4ec88b2dac418106
change-id: 20251107-talloc-68c86806dc53

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




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

end of thread, other threads:[~2025-11-10  8:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-07 14:41 [PATCH v2 0/4] talloc and memory leak debugging Sascha Hauer
2025-11-07 14:41 ` [PATCH v2 1/4] lib: add talloc for overlaying a tree onto allocations Sascha Hauer
2025-11-07 14:41 ` [PATCH v2 2/4] test: self: add talloc selftest Sascha Hauer
2025-11-07 14:41 ` [PATCH v2 3/4] hush: fix memory leaks Sascha Hauer
2025-11-07 14:41 ` [PATCH v2 4/4] sandbox: add memory leak debugging tooling around LeakSanitizer Sascha Hauer
2025-11-10  8:12 ` [PATCH v2 0/4] talloc and memory leak debugging Sascha Hauer

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