On Tue, 22 Apr 2025 07:37:39 +0200, Ahmad Fatoum wrote: > The actual allocated buffer size can be bigger than what was requested > due to alignment. > > When KASAN is enabled, only the requested size is unpoisoned. > This currently leads to problems, because with > CONFIG_INIT_ON_ALLOC_DEFAULT_ON enabled, the whole allocated > buffer will be zeroed. > > [...]
Applied, thanks! [1/2] tlsf: hardening: unpoison trailing padding before zeroing it https://git.pengutronix.de/cgit/barebox/commit/?id=bad633c5392d (link may not be stable) [2/2] tlsf: hardening: skip KASAN checks when zeroing memory https://git.pengutronix.de/cgit/barebox/commit/?id=d5c5e18f0dfe (link may not be stable) Best regards, -- Sascha Hauer <s.ha...@pengutronix.de>