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

2024-04-13 Thread Tom Rini
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 mu

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

2024-03-31 Thread Eugene Uriev
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 p