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

Tom Rini
2024-04-13T16:18:17Z

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