Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1816734rwd; Fri, 9 Jun 2023 02:34:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5fgWoPdD13f7hAOWCxwt3sz0KGMo7mSg0tSDwJAjwPmBgU3rxym/gMWS8kI7IUpdF03c+n X-Received: by 2002:a05:6a20:a108:b0:111:77cf:96dd with SMTP id q8-20020a056a20a10800b0011177cf96ddmr1064796pzk.5.1686303262979; Fri, 09 Jun 2023 02:34:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686303262; cv=none; d=google.com; s=arc-20160816; b=W+rBTs60wErf2poVxCHY6v+owd/Frk9hZLSfrqoUC1g7doiZICGrEpAjDw4PZBBMyC H1GQfnfK2ECYm3vk17MsvVAEIwE+8j9R3h7Beo8j5sHP2XyZp3R1XouXU/hnWPYa7J42 RaKTSV10WE0EMhWL07BO8+v9LPTx0rJbndDx6voOkVAUbiVnsgLlGIRRV/Ab3L5pyq4X Kq+eVCOA1aY0qKBJdf9Ik9GuNmAu0rOfXacXPY6BU04IbqS26S9SmEYL8w4WaQ39GYvM CGbJqqopyjxJzCn8/gpF6fVfWa7nyBuyFOypaGTdELtXMFuMEXYlB/jQ5enXNK8Xej80 3cbg== 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=vOBzqi6FzvJ1mO2egkUV61Apswb1Wn57BOJk96lWa9o=; b=WsRPiy45Xvo/M7PYENu1yjcSHxXQRFR151CbgAJSWUBR3gCAhFuiWb6k6ATOAZAIVM kcyCgU67zQp/GJKGdhH9YHZUeoE3MmzIH//86wZvMpuV1x6A4ftph4m7jhIOblg9arr9 Luny2aXFSmlAn1YYX/BZhK/AkLmP5sZi0LdnpD1mvkLACDfHiJyB9bWqV0sRc9BiOvA/ ej3gXyDLS36DNvXEaOz4IsfieMq7X9iZ4ZxTTXLeA2DhQkuknBfHeAcQ4Lh5QAV6AEp7 xdHMWXQtG+PoeUVXNME/U2gkoxnk/Q4B48hyIjlwbiVeDUBpw2zwRCeWBEuDmClyqTEX 2kWA== 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 l132-20020a633e8a000000b005340840c0c0si2526793pga.11.2023.06.09.02.34.09; Fri, 09 Jun 2023 02:34:22 -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 S230423AbjFIJaY (ORCPT + 99 others); Fri, 9 Jun 2023 05:30:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241648AbjFIJ36 (ORCPT ); Fri, 9 Jun 2023 05:29:58 -0400 Received: from 167-179-156-38.a7b39c.syd.nbn.aussiebb.net (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26EE483D3; Fri, 9 Jun 2023 02:24:19 -0700 (PDT) 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 1q7YLk-000wZ8-RU; Fri, 09 Jun 2023 17:24:05 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 09 Jun 2023 17:24:04 +0800 Date: Fri, 9 Jun 2023 17:24:04 +0800 From: Herbert Xu To: Giovanni Cabiddu Cc: Eric Biggers , "meenakshi.aggarwal@nxp.com" , "horia.geanta@nxp.com" , "V.sethi@nxp.com" , "pankaj.gupta@nxp.com" , "gaurav.jain@nxp.com" , "davem@davemloft.net" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "iuliana.prodan@nxp.com" , lucas.segarra.fernandez@intel.com Subject: Re: [PATCH 0/5] Remove CRYPTO_ALG_ALLOCATES_MEMORY flag Message-ID: References: <20230523153421.1528359-1-meenakshi.aggarwal@nxp.com> <20230523165503.GA864814@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00,HELO_DYNAMIC_IPADDR2, PDS_RDNS_DYNAMIC_FP,RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS,TVD_RCVD_IP, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** 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 Thu, Jun 01, 2023 at 12:23:58PM +0100, Giovanni Cabiddu wrote: > > BTW, some time ago we did an assessment of the users of > !CRYPTO_ALG_ALLOCATES_MEMORY and we came to the conclusion that we > cannot just update the documentation. > dm-crypt uses scatterlists with at most 4 entries. dm-integrity, > instead, might allocate memory for scatterlists with an arbitrary number > of entries. dm-integrity shouldn't be using ALLOCATES_MEMORY at all. It's using GFP_KERNEL allocations right next to the crypto operations. But those are some seriously big crypto operations, 16 thousand 4K pages in one hit? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt