Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp702611ybi; Fri, 12 Jul 2019 03:18:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLiJKZBif5A/El05vDFug922TWd+uUaY2Mf8c1w2nYS8DUwKz8L2OdayB0aVyidBCigMk9 X-Received: by 2002:a63:784c:: with SMTP id t73mr10179576pgc.268.1562926704453; Fri, 12 Jul 2019 03:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562926704; cv=none; d=google.com; s=arc-20160816; b=sBN3piPoKxR+MZCBQBlhgS5PA5vGDsg9ldSr+8CL8EwCb7u4jdGIOXDf4bnTiK7Jbq H9EPbja9njf7aohyYVqIfrT052QbQJqTkY7p1MAscApXYaRADkcus5vechX/neq2AwhM 20QIy4U+i3nWjyEIPYZZJLZX8UI4d7aGxV5E/wmdZYZ+IQW+o6ZNZCQTIUTYqqTDfh5s RpD/d+7NC+7ftUte24O6fFUjMwhnNcq1nNTH4yWD1tvoyqFDlMgJMwMSt2UwKAXUOqcf 3cqyeOYI9G4VCyeOs5C0xfzOLe37AmFt0FCdsFqpHRaqJeojQsoLiC444TxSFOFNCmMJ YsgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qU8Hf4bOKye1aHGVsQ0cta8oDu6lVq9/4zKQEH0Pi5I=; b=p7uqZOWFkzZEr2WSFIA6QJQu7jSan1+6SelIIUF0h2621RksCI3HdRax01kID8CO1M YWtyCNKmJR3min0rp71zfhhsp7LNQnI33U5gEiPCbL5JnElaz+pY+G8sTtrT9VLvuMqw wTjwLcmbHywTvIUX8xeOyNhUzz8TJFUwJVxMeDYqysA1CEuZvzS7tiZIOWjIFu9ArsMx Eoe5HwURJ3FzemcqoRPHKE1XnJEaxR6Cblh2+NLdtv7dH9agtJiw36WBZi7VsEYOX4RL f09DavvqMgVlTL1/+elfRDV8twieo6nn09SglMpSnInCyAOWabuIeplc6CSmlL4DKgf4 Y7fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x126si7801111pgx.356.2019.07.12.03.18.09; Fri, 12 Jul 2019 03:18:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726091AbfGLKSI (ORCPT + 99 others); Fri, 12 Jul 2019 06:18:08 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:44124 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbfGLKSH (ORCPT ); Fri, 12 Jul 2019 06:18:07 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1hlscw-0005dZ-Q1; Fri, 12 Jul 2019 18:18:06 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1hlsct-0008Km-Uh; Fri, 12 Jul 2019 18:18:03 +0800 Date: Fri, 12 Jul 2019 18:18:03 +0800 From: Herbert Xu To: "Hook, Gary" Cc: "linux-crypto@vger.kernel.org" , "davem@davemloft.net" , "Lendacky, Thomas" Subject: Re: [PATCH v2] crypto: ccp - memset structure fields to zero before reuse Message-ID: <20190712101803.7fhefacu6l33eu4u@gondor.apana.org.au> References: <20190710000849.3131-1-gary.hook@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190710000849.3131-1-gary.hook@amd.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Jul 10, 2019 at 12:09:22AM +0000, Hook, Gary wrote: > The AES GCM function reuses an 'op' data structure, which members > contain values that must be cleared for each (re)use. > > This fix resolves a crypto self-test failure: > alg: aead: gcm-aes-ccp encryption test failed (wrong result) on test vector 2, cfg="two even aligned splits" > > Fixes: 36cf515b9bbe ("crypto: ccp - Enable support for AES GCM on v5 CCPs") > > Signed-off-by: Gary R Hook > --- > > Changes since v1: > - Explain in the commit message that this fix resolves a failed test > > drivers/crypto/ccp/ccp-ops.c | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt