Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp275675pxx; Thu, 29 Oct 2020 02:15:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCRIoRhQHZooZxJL+5ChZlXeSf9txgT2etfSrZSdt9uPJYIdP9M9LP2UTix48TSW0A4iqJ X-Received: by 2002:a50:da8d:: with SMTP id q13mr3028397edj.370.1603962925698; Thu, 29 Oct 2020 02:15:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603962925; cv=none; d=google.com; s=arc-20160816; b=RXDsuQUzST4RbjkT3thG+pdtynQiZRxQvuRdw8PbZ83QrPUKHMl4QfTxS0t03hErPm 3DkrobQy7X9Vou3vth1jqRHvW1iVm0ShVDnQwJvo3BfnFpPBdQ2YoLo+lX3FC1EQJlpJ Ld4VpCGF5KI52UyFszc1aZKiAcvhRMTRFfN4Pas/p/01jf5I6YysUwxMieINX4tEZlvl XUB+N5wEL9WstfSNCt0NxfdfQEInopXDZMhgQgwA2AAd+5kJMIL26tyn4PsNYr0PRDXI XYPUq5SDRWlvegAoyZkvI2A7zvYtLov4lliPpjR6kPU3iGcyty+CD82MpO5yLQcNjJow lI3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=P3sWBRvVMHL7ObF2mbDwoNI2cn+vXU3J7FmuUJo2Bzc=; b=Aqq3ktDDANRN0+ngJPQ363S9PVt7+n+8Vkm7ZjcWqZxaf9ZBnLHMlV1CsoemC6AWz0 vIIRjEhUHjlM9SnZhky+5q4QXbsO4wFHxN0LGlozr8hUvlpLXjkFfLAqyKvuFmIEu7Vv QiP8r5NG4d4qcxMg/ZmZ7e/X1jKx9RFddB3vCvyk7fW/WuyiVmnK0MJDmMkuLLhIduAL NpP6+Rq9pMRfVSNxgEe+Hr1l3CeftMac+akkbbvncT14o0ofEvxMyxIfgCwxNpU2CqRv QhYh7zqE6ZAW5t0TflidI4bx/7+UANYfaKANM0aWjvYNmboqMZZywAYN8tI3E+dWnQ9L P64g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si1591379edm.477.2020.10.29.02.14.57; Thu, 29 Oct 2020 02:15:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725536AbgJ2JOw (ORCPT + 99 others); Thu, 29 Oct 2020 05:14:52 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:58734 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725372AbgJ2JOw (ORCPT ); Thu, 29 Oct 2020 05:14:52 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1kY1un-0000dj-Rz; Thu, 29 Oct 2020 18:00:07 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 29 Oct 2020 18:00:05 +1100 Date: Thu, 29 Oct 2020 18:00:05 +1100 From: Herbert Xu To: Eric Biggers Cc: Arvind Sankar , "David S. Miller" , "linux-crypto@vger.kernel.org" , David Laight , linux-kernel@vger.kernel.org, Sami Tolvanen Subject: Re: [PATCH v2 1/6] crypto: Use memzero_explicit() for clearing state Message-ID: <20201029070005.GA20177@gondor.apana.org.au> References: <20201020203957.3512851-1-nivedita@alum.mit.edu> <20201020203957.3512851-2-nivedita@alum.mit.edu> <20201022043633.GD857@sol.localdomain> <20201023153927.GA217686@rani.riverdale.lan> <20201023155604.GA3908702@gmail.com> <20201023204536.GB27708@gondor.apana.org.au> <20201023215329.GA180517@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201023215329.GA180517@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Oct 23, 2020 at 02:53:29PM -0700, Eric Biggers wrote: > > It's doubtful that anyone will do a global conversion from memset() to > memzero_explicit(), as it's too hard to find all the places that should be > converted. They are in lots of different subsystems; the crypto subsystem will > have the most, but not all. We just need to fix as many as we can. If you'd > like to do something more comprehensive than this patch, that would be great, > but I hope we don't wait forever for a global conversion that never happens. I had thought that there were more instances of memset in crypto/ that needed converting, but a quick grep seems to indicate that most are not sensitive. So I'm OK with this patch. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt