Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10233219rwb; Fri, 25 Nov 2022 02:33:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf4eK2aGl8WZXVnXiXWLWif5llBt/tc3xw1Hs8RfToh3/VJd1oOmtaFrwkNOaz7yodmYIFR6 X-Received: by 2002:a17:906:d977:b0:7ad:934e:b67f with SMTP id rp23-20020a170906d97700b007ad934eb67fmr18142976ejb.238.1669372428638; Fri, 25 Nov 2022 02:33:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669372428; cv=none; d=google.com; s=arc-20160816; b=j2ZRmWJVUyoukovi3uLwfqAXbMdN58+b1+FiSrTpFAJ7EJdhNWeWyD7iveBTmiCdg9 Hhwu4uz/5NGNoudTPHOGuyVXrYFxbtCYkFm5FOpseNEzkr8gGbGvDWRF8Xx7FsXujsNm iVElchwMtQMEnOtniWw2HhBeZyF1UOm3B4qBNTiV9dHro/c75oaIXTdesjIhQIAhKT3C YeCvRvDUzANaqVnBNwM0ZNYuVPIiqrQEMmMZ7QcCF1FbK/gHFpQimHgJAfC2dirqDuck ScuTDZd2v1FqL+BVEKeoFAC4LeK/iI2iTQh10MYykfjB4NbkhvKdDQ5eBCxknm1TfO5M ugvw== 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=PI8vTYWGlzwqs8W6PLBfaCGHAzn+huQnt9qK7BBvTWc=; b=T2DAc5EfWxsFomup9n3lzYF6wAJDAttNhISXgl0TdpnpjiIyEyK9RhfgNRoGi7CBpX /Fy9apEvIrjx8OOMfN0nkXJCLDveYneH8m0dHG0Se5c+IKLc9mE+BmcBa/DA52fp1eup hcFtzzTQzMq01zWAcZhndNsocaUsjOcAqDEn+CrkPQF4piJ0RZFy57KL1SvfEDKGgaY4 630d25dD0VsZbXdzimtp8gM8oSxX1R5FnuIFBrrXCywNQyW4EpmG14tReeIdBjm3n24Y 27REnmm493aHi8S00cb8LIg4dgiaPQjdVcZkmjIHiAYw0Qb+RGq9nfKk7PGWdmuQTEAM TPnQ== 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 v21-20020a50d595000000b00467570d605esi2439453edi.608.2022.11.25.02.33.22; Fri, 25 Nov 2022 02:33:48 -0800 (PST) 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 S229875AbiKYKVG (ORCPT + 99 others); Fri, 25 Nov 2022 05:21:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbiKYKVG (ORCPT ); Fri, 25 Nov 2022 05:21:06 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A63F3AC27 for ; Fri, 25 Nov 2022 02:21:02 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1oyVpB-000iux-0G; Fri, 25 Nov 2022 18:20:50 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 25 Nov 2022 18:20:49 +0800 Date: Fri, 25 Nov 2022 18:20:49 +0800 From: Herbert Xu To: Giovanni Cabiddu Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Vlad Dronov Subject: Re: [PATCH v2 11/11] crypto: qat - add resubmit logic for decompression Message-ID: References: <20221123121032.71991-1-giovanni.cabiddu@intel.com> <20221123121032.71991-12-giovanni.cabiddu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 Fri, Nov 25, 2022 at 10:14:37AM +0000, Giovanni Cabiddu wrote: > > diff --git a/include/crypto/acompress.h b/include/crypto/acompress.h > index cb3d6b1c655d..bc16e0208169 100644 > --- a/include/crypto/acompress.h > +++ b/include/crypto/acompress.h > @@ -11,6 +11,7 @@ > #include > > #define CRYPTO_ACOMP_ALLOC_OUTPUT 0x00000001 > +#define CRYPTO_ACOMP_NULL_DST_LIMIT 131072 How about simply CRYPTO_ACOMP_DST_MAX Even if it isn't enforced strictly, this is basically the ceiling on how much effort we are willing to spend on decompressing the input. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt