Sandy Harris
2014-10-05 03:09:40 UTC
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.
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.