[PATCH 0/9] mcheck implementation for U-Boot

Tom Rini trini at konsulko.com
Sat Apr 13 18:18:10 CEST 2024


On Sun, 31 Mar 2024 23:03:18 +0300, Eugene Uriev wrote:

> There was no "mcheck" for U-Boot before.
> 
> Since U-Boot has only 1 thread, and normally makes 4000+ - 6000+
> mallocs, it's better to use havier canaries to protect heap-chunks.
> My variant uses 2x8 = 16byte-long protector. And
> the multiplier could be changed to tune speed/protection tradeoff.
> This protects not only against memset()-s, but against "near" wild
> pointers too, and makes more probable to catch "distant" ones.
> 
> [...]

Applied to u-boot/master, thanks!

-- 
Tom




More information about the U-Boot mailing list