Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3736059ybi; Fri, 5 Jul 2019 12:55:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvdPB4pHxwpdExkgqfFhLt4lOoNW+f92vOAruN/vugYynHg/W9gFWb6ETWostBPFjSwuBN X-Received: by 2002:a17:90a:710c:: with SMTP id h12mr7483634pjk.36.1562356552325; Fri, 05 Jul 2019 12:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562356552; cv=none; d=google.com; s=arc-20160816; b=S8ENipcfZmAZ5b6n6a5Ui7/Iq0mIKF6uUU4VX3Zq/1m2eBtULKHAxX93yC7HIPlEXo atN2pUwU6HJ+88FK9ScLgwjRmZ79ehHtBu/5DAu6uqHkrffz2B8c241dr1z8YcLHBxyC rjsaZSWbEUlAYFzhtnyK0OJOj8kK5kEzZinfwYh1wmKmsp936TJSWeBSItzbq9+Esnok FLbOfPoFMArx3NxgHuUCINSKgtFrt/EPl4o8lB9YO4sYmap24nmPxQcPahzQdeXPN2w0 OGYTJBMaTqwUS1uguXa7O6uuYbdjRrRH9m8d4z+7vM/aSkt1Lr/hmlblVba8YvJoKinK nf4g== 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:dkim-signature; bh=3GWCiq7P9okTP2K2h4HYwoRZ4/bA/F5s+qVAq96Kr/w=; b=bi2VEmgs2tfFy9+P2Vt9/I2vygM626iK8q/DcR2Fub+dM5Bq073kmpxGbvQZ5cNuan d7H32lVWRj6i0it7cy2jMMduff2BZS7mZcTNz7+S4tEOHtloA0h2SpSVQTUeZXCI77qT 0DI4CzB3mmKjcGA6EvD+6sF9kfGMRB2/Bhwo9zEeyTeu9tcV06KOTXBF0ryTPOseWVSX aUKE061E26xwiJarKshLgMQU4/FkGEaN1VA+9h8s/fTngokPxeKMqTww897wJuoMsWPb +85hZSWT9bjvG/EwyZ6yq8u6PbxD01W0F1Vv6no1bV3w3jQPQ1+4qR+KkAA9i7jw8epf Hvfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=towVTwSr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d136si9839029pga.41.2019.07.05.12.55.35; Fri, 05 Jul 2019 12:55:52 -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; dkim=pass header.i=@kernel.org header.s=default header.b=towVTwSr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727905AbfGETka (ORCPT + 99 others); Fri, 5 Jul 2019 15:40:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:40614 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbfGETka (ORCPT ); Fri, 5 Jul 2019 15:40:30 -0400 Received: from sol.localdomain (c-24-5-143-220.hsd1.ca.comcast.net [24.5.143.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B7F9C216E3; Fri, 5 Jul 2019 19:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562355629; bh=33sanTgaKidShQsQ9x0gVqI6gGYyIqpvHZVzq2eJEKw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=towVTwSreztO79wTE8FZoGeBhxj6iIdN0Mb4twzTjG3q6gVs8KEMuPA67wiN8ZgeH yU3dMp7LnxW17Z85iSIW79NvkriMqYcATZ7NCmBNt73400F6G2HYiXepysJGpZfCsC 9rlnYqG+zQ2pt50DG5nfo371YLZtT5PU3boNJ5H8= Date: Fri, 5 Jul 2019 12:40:28 -0700 From: Eric Biggers To: "Hook, Gary" Cc: "linux-crypto@vger.kernel.org" , "Lendacky, Thomas" , "herbert@gondor.apana.org.au" , "davem@davemloft.net" Subject: Re: [PATCH] crypto: ccp - memset structure fields to zero before reuse Message-ID: <20190705194028.GB4022@sol.localdomain> References: <156218168473.3184.15319927087462863547.stgit@sosrh3.amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <156218168473.3184.15319927087462863547.stgit@sosrh3.amd.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Gary, On Wed, Jul 03, 2019 at 07:21:26PM +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. > > Fixes: 36cf515b9bbe ("crypto: ccp - Enable support for AES GCM on v5 CCPs") > > Signed-off-by: Gary R Hook > --- > drivers/crypto/ccp/ccp-ops.c | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) Is this patch meant to fix the gcm-aes-ccp self-tests failure? - Eric