talloc and memory leak debugging
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected] change-id 20251107-talloc-68c86806dc53Versions newest first
Changes in v2 from the cover letter
- 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
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | lib: add talloc for overlaying a tree onto allocationsinclude/ include/ lib/ +2 more | +485 | 0 replies | |
| 2/4 | test: self: add talloc selftesttest/ test/ test/ | +160 | 0 replies | |
| 3/4 | hush: fix memory leakscommon/ | +25 | 0 replies | |
| 4/4 | sandbox: add memory leak debugging tooling around LeakSanitizerarch/ arch/ commands/ +4 more | +84 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/4] talloc and memory leak debugging
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
---
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,
Signature · 1 line
Sascha Hauer <[email protected]>