Tom Rini 977fc15e98 Merge patch series "mcheck implementation for U-Boot"
Eugene Uriev <eugeneuriev@gmail.com> says:

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.

The core file of the set is included into the C-file, not complied
separately in order to enable (potential) coexisting of
mcheck-protectors, e.g. malloc_simple(.) and dlmalloc simultaneously.

My tests were for ARM SoC, 64bit, so the patch is
aware of alignment.

Primary this patch is for using by developers: to verify,
if a change doesn't break the heap integrity.
By default the mcheck is disabled and wouldn't affect the boot.

I used pedantic mode, canary=16byte, registry-size=6608.
For my system the overhead was 230ms.
2024-04-12 16:23:19 -06:00
..
2024-04-02 07:03:25 -04:00
2023-11-14 20:04:01 -07:00
2024-03-20 17:13:05 -04:00
2024-04-12 08:53:31 -06:00
2022-11-02 08:42:03 +01:00
2024-04-12 16:23:06 -06:00
2013-04-01 16:33:52 -04:00
2022-01-19 18:11:34 +01:00
2022-08-04 16:18:47 -04:00
2024-03-07 09:23:10 -05:00
2024-02-13 15:38:49 -05:00
2024-02-13 15:38:49 -05:00
2023-06-23 14:38:16 -04:00
2023-11-29 09:32:15 -05:00
2023-10-09 15:24:31 -04:00
2023-05-13 09:52:32 -04:00