linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* memset() in crypto code?
@ 2014-10-05  3:09 Sandy Harris
  2014-10-05 10:33 ` Daniel Borkmann
  2014-10-06 17:44 ` Jason Cooper
  0 siblings, 2 replies; 9+ messages in thread
From: Sandy Harris @ 2014-10-05  3:09 UTC (permalink / raw)
  To: linux-crypto

There was recently a patch to the random driver to replace memset()
because, according to the submitter, gcc sometimes optimises memset()
away which might leave data unnecessarily exposed. The solution
suggested was a function called memzero_explicit(). There was a fair
bit of discussion and the patch was accepted.

In the crypto directory of the kernel source I have:

$ grep memset *.c | wc -l
133
$

I strongly suspect some of these should be fixed.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-10-08  7:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-05  3:09 memset() in crypto code? Sandy Harris
2014-10-05 10:33 ` Daniel Borkmann
2014-10-06 17:44 ` Jason Cooper
2014-10-06 17:59   ` Sandy Harris
2014-10-06 18:23     ` Jason Cooper
2014-10-06 18:52   ` Sandy Harris
2014-10-06 19:02     ` Daniel Borkmann
2014-10-08  2:30       ` Sandy Harris
2014-10-08  7:18         ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).