Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp68712pxb; Wed, 6 Apr 2022 22:25:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkRU/o8e7UcwO+kkGMlxtwUVW19U8km33ue/iT75ADQcJtDpTamsKkFkVE8Vv7sq/x51SE X-Received: by 2002:a17:90b:4a0b:b0:1c7:221a:a600 with SMTP id kk11-20020a17090b4a0b00b001c7221aa600mr13913204pjb.112.1649309110899; Wed, 06 Apr 2022 22:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649309110; cv=none; d=google.com; s=arc-20160816; b=iAvMB7mqCpvk1Y6d2XX/WljIJkop1KEUH4XlE316ZMhQ9nMxsxVL5diyRJY/+6zU59 rplX6FyukMgPFl4+QxYW/NqTyLPOAxNzKPtXEgB6XqM7S1X0K54lxBA0KwWLcyEIAj1o BNO4bGoYRwpCLgPzO/Mu03J5jWjzsQCBWycVle7mV5MblkpsJMK2kpfqC80POqa+8jYY BIDJq/nMiwzpob4GlRDN6K+JeKT0BKSpJ8mitj6f6dA1VbYpnnavzG8lQMXTAkYTj6FH G9sbqJmQI6FjYbHzwjw7GNaWc57KdT5RzZtWA7HWRMwnYJlgvetfi5nGhmL4xMTC4pfn YpwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=rtTcjhNybPZlUd6n7u4cLSDNz3fmFdq4yPI/4wgboSw=; b=r0gO26V7XnAwDU6sCQdHNv3L+FjfXe7YjeP4tDhEpAdJt3n3Nn34xxVnUkGVX5KIe8 vTFZslzi3HotaWU6P66TWY9NrJVOWo2Stx/I+yElKV+78Ior9lsJR42zCHJWibke1Z8A 9IXoWXwiHpXFcXX7wLlsbPD+SrflY9GUMS+h/X+U+BwcJu8jkaPEO3YmQPpwIrIRd1ii hIzEkUc2KdSS86+5GezezCOieDQb2TLkbNC/+RJoxHrtdf6yyLJGfdRf/q8vRRVOSwIJ XGiz5yUxeAKR6x+b+LnkbH/lx0E94lLI7RakujbU+PjvA0rLVcP7pM5NyDGzFyDOpFuH EU2g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j19-20020a17090a841300b001c6f8b9aea5si827219pjn.42.2022.04.06.22.23.46; Wed, 06 Apr 2022 22:25:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240736AbiDGEev (ORCPT + 99 others); Thu, 7 Apr 2022 00:34:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240722AbiDGEep (ORCPT ); Thu, 7 Apr 2022 00:34:45 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFB931EDA2D for ; Wed, 6 Apr 2022 21:32:46 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1ncJp5-001Y5X-3r; Thu, 07 Apr 2022 14:32:44 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 07 Apr 2022 14:32:43 +1000 Date: Thu, 7 Apr 2022 14:32:43 +1000 From: Herbert Xu To: Ard Biesheuvel Cc: linux-crypto@vger.kernel.org, keescook@chromium.org Subject: Re: [PATCH 2/8] crypto: safexcel - take request size after setting TFM Message-ID: References: <20220406142715.2270256-1-ardb@kernel.org> <20220406142715.2270256-3-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220406142715.2270256-3-ardb@kernel.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Apr 06, 2022 at 04:27:09PM +0200, Ard Biesheuvel wrote: > > +#define EIP197_SKCIPHER_REQ_SIZE (ALIGN(sizeof(struct skcipher_request), \ > + CRYPTO_MINALIGN) + \ The whole point of CRYPTO_MINALIGN is that it comes for free via kmalloc. If you need alignment over and above that of kmalloc, you need to do it explicitly in the driver. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt