lkml.org 
[lkml]   [2015]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [BUG/PATCH] kernel RNG and its secrets
Maybe we should add a kernel self-test that automatically checks
whether or not memset_explicit() gets optimized away? Otherwise we
might not notice when gcc or how we implement barrier() or whatever
else we end up using ends up changing.

It shold be something that is really fast, so it might be a good idea
to simply automatically run it as part of an __initcall()
unconditionally. We can debate where the __initcall() lives, but I'd
prefer that it be run even if the crypto layer isn't configured for
some reason. Hopefully such an self-test is small enough that the
kernel bloat people won't complain. :-)

-Ted


\
 
 \ /
  Last update: 2015-03-18 19:01    [W:7.023 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site