On 12/25/2014 05:18 PM, Yury Gribov wrote:
On 12/25/2014 04:58 PM, 'Dmitry Vyukov' via address-sanitizer wrote:
What are the savings? We remove the metadata but add 32 bytes to
redzones. Seems roughly equivalent.

Only for x64 (and for small variables additional 32 bytes are not
necessary because we can fit into padding redzone).

The bss is a good point. It can be unacceptable to lots of
applications that has multi-megabyte objects in bss. Which is I would
say very frequent.

Yep, disabling bss is a no-go.

Still, what about squeezing __asan_global structs by moving module name and redzone size to a separate entry shared by all global vars in a module and also storing has_dynamic_init bit in one of other fields? For kernel we usually have at least 10K registered globals which results in 3 * 8 * 10K = 250K. This gets worse for larger Kconfigs.

-Y

--
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to