Re: [PATCH v2 13/14] crypto: sun8i-ce: Add support for the PRNG

26 views
Skip to first unread message

Stephan Mueller

unread,
Apr 27, 2020, 5:23:31 AM4/27/20
to LABBE Corentin, da...@davemloft.net, her...@gondor.apana.org.au, mri...@kernel.org, we...@csie.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org, linux-...@vger.kernel.org, linux...@googlegroups.com
Am Montag, 27. April 2020, 10:41:37 CEST schrieb LABBE Corentin:

Hi Corentin,

> > Shouldn't they all be kzfree?
>
> Yes
> Probably it miss also a memzero_explicit, I think that seeds/data are
> sensitive

kzfree uses memset_secure since very recently. So, kzfree should be all you
need.


Ciao
Stephan


Stephan Mueller

unread,
Jun 15, 2020, 9:16:32 AM6/15/20
to LABBE Corentin, da...@davemloft.net, her...@gondor.apana.org.au, mri...@kernel.org, we...@csie.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org, linux-...@vger.kernel.org, linux...@googlegroups.com
Am Montag, 15. Juni 2020, 15:02:53 CEST schrieb LABBE Corentin:

Hi,


> I still dont see any memset_secure in kzfree (mm/slab_common.c).
> Does I miss something ?

Nope, you do not miss anything, it seems that the patch that I had seen did
not go in.
>
> Regards


Ciao
Stephan


Reply all
Reply to author
Forward
0 new messages