Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1398958ybm; Wed, 22 May 2019 23:54:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5rx92hm/uu5o9MKVHW7oeUNJg5LOT+Irj1zN8gp/PASkNC+raaHpugSG2G0VJQ6goNAzk X-Received: by 2002:a17:902:4283:: with SMTP id h3mr73498354pld.214.1558594446190; Wed, 22 May 2019 23:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558594446; cv=none; d=google.com; s=arc-20160816; b=TOeAlmO+xxOThMwp4laadSWtrRFUMTlAWQjDi0/JxYVp9gnwJfWcvJ2CiPRwnWBDi6 W7+m5hn4SnKpYA2Qx+UMXLGM308Mzvwn3bSMdP9HRzbjEwRYSzo5DfWApcHBKwszFZNh HvQkKC2W+/YGoPIYxZBIAz/Xrp5O5g28eeS2I3S+aMaOmvgnNCqZPbSHBWhdMEYiKQlh /ZlfyreT5wV0MG2sTY8AdyJbwpOrzdjsZrjeZl66Yh4Udt1WX5sNfKVMYYN+qRlKXXvn is/zwwRBoNYVaIA8eFQ6kD8ma5Qc5dA8ZLRepTNn/L+2DqR1qs5CCdsqlZNf77Rrd4D7 9KhA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=PjbWaX3yCJmet/Gnv+QWiW+qaUxiaB302SoDiYF+YZA=; b=hU6LcZOFrKUublyCWfiDbeIJO+t2wLUQ052LiwMFa3tEcfHMVgu/UUkBF/Z5PwPjV/ rUM8+HdUb/5NJ1mekaqqLEsJQZrGYNrHzAaRdKeKVZQ/LGpqvy36AmhOWvujI2cD4p58 aJsUV4VqOnTvxl9AT4IDJ078gd+9V+Lry7SpoTamW2M4qpzTkinqYQL7uIn1obnRiOHK QjL/oMQuoi3tn+mXuRvJMbMF40lhIfdD5z5iEOUXRmGTFw+82dxyWqqc8O6PZiWyRF+u mlwwscqMsFDQBer8YJ3YZcVFwK+Dnnvm9TLUz6UdE/zdmZ4lrrvcVZl/uqJ3BImtHWGq KlvQ== 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 d24si29055880pgm.405.2019.05.22.23.53.51; Wed, 22 May 2019 23:54:06 -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 S1725873AbfEWGwU (ORCPT + 99 others); Thu, 23 May 2019 02:52:20 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:47802 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725806AbfEWGwU (ORCPT ); Thu, 23 May 2019 02:52:20 -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 1hThaN-0001pq-G1; Thu, 23 May 2019 14:52:19 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1hThaL-0006CV-L7; Thu, 23 May 2019 14:52:17 +0800 Date: Thu, 23 May 2019 14:52:17 +0800 From: Herbert Xu To: Sascha Hauer Cc: linux-crypto@vger.kernel.org, Horia =?utf-8?Q?Geant=C4=83?= , kernel@pengutronix.de Subject: Re: [PATCH] crypto: caam - print debugging hex dumps after unmapping Message-ID: <20190523065217.7zf7vqf6zbbit6oo@gondor.apana.org.au> References: <20190516142442.32537-1-s.hauer@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190516142442.32537-1-s.hauer@pengutronix.de> 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 Thu, May 16, 2019 at 04:24:42PM +0200, Sascha Hauer wrote: > For encryption the destination pointer was still mapped, so the hex dump > may be wrong. The IV still contained the input IV while printing instead > of the output IV as intended. > > For decryption the destination pointer was still mapped, so the hex dump > may be wrong. The IV dump was correct. > > Do the hex dumps consistenly after the buffers have been unmapped and > in case of IV copied to their final destination. > > Signed-off-by: Sascha Hauer > Reviewed-by: Horia Geantă > --- > drivers/crypto/caam/caamalg.c | 21 +++++++++++---------- > 1 file changed, 11 insertions(+), 10 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt