[PATCH 6/8 v2] crypto: replace memset by memzero_explicit

Michael Ellerman mpe at ellerman.id.au
Mon Dec 1 11:58:17 AEDT 2014


On Sun, 2014-11-30 at 18:03 +0100, Julia Lawall wrote:
> From: Julia Lawall <Julia.Lawall at lip6.fr>
> 
> Memset on a local variable may be removed when it is called just before the
> variable goes out of scope.  Using memzero_explicit defeats this
> optimization.  A simplified version of the semantic patch that makes this
> 
> Signed-off-by: Julia Lawall <Julia.Lawall at lip6.fr>
> 
> ---
> Daniel Borkmann suggested that these patches could go through Herbert Xu's
> cryptodev tree.

That's fine by me:

Acked-by: Michael Ellerman <mpe at ellerman.id.au>

cheers




More information about the Linuxppc-dev mailing list