From: Michael Ellerman Subject: Re: [PATCH 6/8 v2] crypto: replace memset by memzero_explicit Date: Mon, 01 Dec 2014 11:58:17 +1100 Message-ID: <1417395497.16178.0.camel@concordia> References: <1417367029-32762-1-git-send-email-Julia.Lawall@lip6.fr> <1417367029-32762-7-git-send-email-Julia.Lawall@lip6.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Herbert Xu , kernel-janitors@vger.kernel.org, "David S. Miller" , Benjamin Herrenschmidt , Paul Mackerras , linux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org To: Julia Lawall Return-path: In-Reply-To: <1417367029-32762-7-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-crypto.vger.kernel.org On Sun, 2014-11-30 at 18:03 +0100, Julia Lawall wrote: > From: Julia Lawall > > 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 > > --- > Daniel Borkmann suggested that these patches could go through Herbert Xu's > cryptodev tree. That's fine by me: Acked-by: Michael Ellerman cheers