Dead store elimination in the kernel?

Patrick Lamaiziere patfbsd at davenulle.org
Sun Mar 7 23:38:40 UTC 2010


Hello,

I'm asking if FreeBSD is safe regarding dead store elimination made by
gcc? 

By example, in crypto drivers, sensitive datas are cleared by a
bzero() after use to avoid potential leakages.  But the bzero() by
itself is useless, is it removed by gcc?

Thanks, regards.


More information about the freebsd-hackers mailing list