Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8311330ybi; Tue, 9 Jul 2019 13:10:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjANhHHzfbHG/XWk+mtHzPamQ8xQ/99eCKqfZYa6eFOF6CCkgh2vK8BuMY4/f4o6x5bIyy X-Received: by 2002:a17:902:9f8e:: with SMTP id g14mr34196919plq.67.1562703045697; Tue, 09 Jul 2019 13:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562703045; cv=none; d=google.com; s=arc-20160816; b=Bn36yuVuSOgdf3EIFVGQqascM6WjOxqn2+tRCZDYF6W+F4kysVM51BlQlgAJ/gDkup AsdP2CYuaaqodHgPLk1/mhQC1AOOQuD8HdSQbwoW8qL4LaGp9NjFVXo/0CoFk5z5Rh9P JW4ZiwCSP7FyUAYoUaj9uqxwkPVBNBWPgZWpZy4q7SX5pxaDkU2r0w5XhUMLaZkBtmHZ ORBBIqzBUI1oeyF5M6+ltr0RYsIAPBhwnpLhj8Iu/lRu+0u7PGZdAn9f/R7TIQmneFvk DpfpgDB3hF0Hb+YfealdsXG1FhGx6miAUkZJY57DtbtNLuMmwuEEZJ4GqemADe7GTXW+ en+A== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=/ak/VvRYCEdBmX+wQAKmX4H9wdS51bvt7jNKO9XQLxo=; b=VXJzLERibpbs6SlvnOVVzj63D2Ves3t7S6NltcANoWmqp1WZ/fSvSwQFEkWAfBi4gX uZ2KRV/JEJkUxszmj4M2Wr/SKu8GWu/3LbIKlF77FY/HBdFMlEXYRYCXOLidnn/bquQo +BYlGmYDDm+u6y/CkyTUtWwmW8TgsvM52hl546t5LdEO1uR2k1Koh7VUZ+4bOD7qSDFk 25/pvhaNBMx342wPTL7UB6tuA0nZZ5SaFvn6Bp8MTX9gAi5oJ6EI1tbT9CoPUU7AWnf5 gyXyCDnWx1u7Aa3nUgdXVfv8/NpVZDqOg/hNtAE4a+TkuQqDAQRzGfSMD/TM7tpKN8+2 2Jmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Zvxo/An+"; 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 q191si23549809pfq.63.2019.07.09.13.10.24; Tue, 09 Jul 2019 13:10:45 -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="Zvxo/An+"; 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 S1729544AbfGIUKR (ORCPT + 99 others); Tue, 9 Jul 2019 16:10:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:44192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726679AbfGIUKQ (ORCPT ); Tue, 9 Jul 2019 16:10:16 -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 B5CB72073D; Tue, 9 Jul 2019 20:10:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562703015; bh=C2Qh9EeeUhrM/1fa+cpaXtK8WHXbqcHpSVD+ialRHTw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Zvxo/An+MlPtqSCOQ/U7InOBf1uYLDYp5mViU3NrJaZTeyBlmgMhJkPeea4RmAFK0 CQg5qEQH+WACd6EPZScnlt1NYO0oh0j3Y4I29MkJ8owpkABXQWcbXMBDc5yoOL0FvN kd38fOsdohicn/XxN+y9TOsyf3kLea6B4EAmyfcI= Date: Tue, 9 Jul 2019 13:10:14 -0700 From: Eric Biggers To: Gary R Hook Cc: "Hook, Gary" , "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: <20190709201014.GH641@sol.localdomain> Mail-Followup-To: Gary R Hook , "Hook, Gary" , "linux-crypto@vger.kernel.org" , "Lendacky, Thomas" , "herbert@gondor.apana.org.au" , "davem@davemloft.net" References: <156218168473.3184.15319927087462863547.stgit@sosrh3.amd.com> <20190705194028.GB4022@sol.localdomain> <2cc5e065-0fce-5278-9c38-3bdd4755f21f@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2cc5e065-0fce-5278-9c38-3bdd4755f21f@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 On Mon, Jul 08, 2019 at 05:08:09PM +0000, Gary R Hook wrote: > On 7/5/19 2:40 PM, Eric Biggers wrote: > > 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? > > Yessir, that is the intention. Apologies for not clarifying that point. > > grh > > Okay, it would be helpful if you'd explain that in the commit message. Also, what branch does this patch apply to? It doesn't apply to cryptodev. - Eric