[PATCH] dlmalloc: remove in favor of TLSF

Sascha Hauer s.hauer at pengutronix.de
Mon Jun 16 23:54:49 PDT 2025


On Mon, 16 Jun 2025 15:04:30 +0200, Ahmad Fatoum wrote:
> We have had a TLSF implementation in barebox for >= 13 years now and it
> has more features than the dlmalloc, which we inherited from U-Boot,
> like multiple pools and KASAN integration.
> 
> We didn't have pressure to retire dlmalloc in that time, but bugs like
> those fixed in commit 7cf25e0733f0 ("dlmalloc: Fix integer overflow in
> request2size()") show that there's a security cost associated with
> keeping bitrotted code, especially as we didn't document TLSF as being
> the recommended allocator anywhere.
> 
> [...]

Applied, thanks!

[1/1] dlmalloc: remove in favor of TLSF
      https://git.pengutronix.de/cgit/barebox/commit/?id=6c094fca7ca2 (link may not be stable)

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




More information about the barebox mailing list