Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2951421pxv; Sun, 18 Jul 2021 06:27:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgfRZ2px5VpEgXuKpVuY14jpuGBMz5bDYSihLa34FrazbfQi/gd02BGc6FDzG37z8umezc X-Received: by 2002:a17:907:1614:: with SMTP id hb20mr22765492ejc.387.1626614866571; Sun, 18 Jul 2021 06:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626614866; cv=none; d=google.com; s=arc-20160816; b=XT6OojuBlQKGuUIe00FIuQo7fLqxBHqHYB0f6WSuGcK4jtjzu0x0ZMfFkA04YYx2xt Jehw1tZ4MGbBfiT7qLeKBH0xL5p+4cUjPpsRsfTL0zBPFEDQXZfLHP9f1QMAQLJwkTRs B6vqrPZNVtfJAOpK4zlYnOdZdrATFaLSHCgHcoEleGOPoIBOlcC/yqmjmDCCu2LadKeN cUVjKaWvkvCF5Khab7ZwATOTzPqCgjqXkyeFDtXTltzzHPl1LlKIZCV86tdZvphBNvGt aJ1xGJ28ds1OxF4E3YEvST0ds4iiG+VnL1QyiRInQyXsu6G//Yn7di1SRwsNusxhI+UH LbWA== 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=paHX1p5jV+r0pg2JIWxHYXVgx3zzTUbOPQgdRHOOmJ4=; b=u5kwxnx4u3oxiwpWE97GPBwGwSs6Mmyc2/Xl/jFmaeaQYpre6WvN1DgKuVl+R2ypPk 6Zm0kQSv2LVye5PaQgMciOeDiWdtFhgqqMNGOFYGMBHQnhpVURbWuw4jjWAB171DLSEl MmdJeJcHHom58x4kWgKLTQNisDuUp2CP+8ZpD0D9ierMdTrsh9zWWYlD1utIst4niABU nh5tN6jRdaMNDef+4rIad6Z8emKhASWTSb6nz86CrfVxE7L49tjX08F0JVJVRpqugphj jIfkUR2ebp3ALUxW+NqSoNtGDy1MqbP7HMQU/mMxT3LDeSDlr2WfZ48ut4CfJlP+Mutk 0kqQ== 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 y7si18016837eds.311.2021.07.18.06.27.12; Sun, 18 Jul 2021 06:27:46 -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 S233666AbhGRNaJ (ORCPT + 99 others); Sun, 18 Jul 2021 09:30:09 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:51438 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232859AbhGRNaJ (ORCPT ); Sun, 18 Jul 2021 09:30:09 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.92 #5 (Debian)) id 1m56om-0003cS-3J; Sun, 18 Jul 2021 21:26:52 +0800 Received: from herbert by gondobar with local (Exim 4.92) (envelope-from ) id 1m56ob-0003CV-F6; Sun, 18 Jul 2021 21:26:41 +0800 Date: Sun, 18 Jul 2021 21:26:41 +0800 From: Herbert Xu To: Hannes Reinecke Cc: Stephan =?iso-8859-1?Q?M=FCller?= , Christoph Hellwig , Sagi Grimberg , Keith Busch , linux-nvme@lists.infradead.org, "David S . Miller" , linux-crypto@vger.kernel.org Subject: Re: [PATCH 09/11] nvmet: Implement basic In-Band Authentication Message-ID: <20210718132641.GA12275@gondor.apana.org.au> References: <20210716110428.9727-1-hare@suse.de> <20210716110428.9727-10-hare@suse.de> <2510347.locV8n3378@positron.chronox.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Sun, Jul 18, 2021 at 02:37:34PM +0200, Hannes Reinecke wrote: > > > > + response = kmalloc(data->hl, GFP_KERNEL); > > > > Again, align to CRYPTO_MINALIGN_ATTR? > > Ah, _that_ alignment. > Wasn't aware that I need to align to anything. > But if that's required, sure, I'll be fixing it. Memory returned by kmalloc is guaranteed to be aligned to CRYPTO_MINALIGN_ATTR, in fact that's the whole point of that attribute. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt