Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2019549rdf; Mon, 6 Nov 2023 02:11:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHOAUaqzPLRjKjVJ4RbQ+vUngFU+JeWLICni6ylcRcyv67yBd2+MzqVtsmLVY+6XixwrBZr X-Received: by 2002:a05:6358:7249:b0:169:845b:3420 with SMTP id i9-20020a056358724900b00169845b3420mr26587192rwa.25.1699265493192; Mon, 06 Nov 2023 02:11:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699265493; cv=none; d=google.com; s=arc-20160816; b=g+LG13y+rDVo7L0bx7Ap42/vUu2GA8hEzkBMaEIA3WaTeIkNnmAZ6COmdTsDHvmofK alEkrwh8n5JjWMvJNca5PH3WnqA89G3mgS6lWM526ErPAzT3A/g8soz0iRvemKmj9UaX NMdTd4nFpvhjDFXRjXUv23yqsw7+evijITtEj9g+oD8zh5m8srK9ZqrkD/zxvJM2WmyH CcQKjH+L3Y5SL/0ZKkHAGzCvrEYoEdPgzT0OI6ukb2MD3wxXiX0HoEnfxZxqxi7o7blb b1t7EKOh+J3KIHq7iQWsf6cV6w4UY2dc+PDHdyQQwjj+5FGLfGFP/KYDt6zo+ahtr4X+ 0XlQ== 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=2SLQ/Wqk67DvCUXDf1rBOrUW/6TNwDniGkEYZ3FJd7E=; fh=ALAf64wWtr5chlw3NrvZyxqSFiqHZK9jJ3Ru4Mbb2I4=; b=NFcaQxQx+nIgJ9IQ3vn13GPcbzcsDiVurHCIf88tDdIya8v+W3EhJFx1jcVAa0UQci 8TeTUM+Lsqj2ToMSdMhHSt0/gi4Yeu6bHRFV7Ngq4gwYTKPcYdkYiuI40j7w9molxkvW 6maTQfo6BziunQlD3HdZUA7YilZ0AlQgDDGfWuuhjZvNKN+BJuTjGIsElRN0vMf/waSg okF6jmtnz0tIUMpN7S9D0y7tYTFcyAlIhwszPeMlDW7Ir3oAKAZ9lmYcSceZ+gQ6qk2f u23o1/0Pw0TuJsbICS/JFnQ9IJaJREcqBvnN13wkyxDZclQRz4kQQlJLkif7Zjgc9CDN xnXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id cl15-20020a056a02098f00b005b55df27b44si8425910pgb.340.2023.11.06.02.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 02:11:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 62ECE8078601; Mon, 6 Nov 2023 02:11:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229478AbjKFKL3 (ORCPT + 99 others); Mon, 6 Nov 2023 05:11:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229689AbjKFKL2 (ORCPT ); Mon, 6 Nov 2023 05:11:28 -0500 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E43D9A9 for ; Mon, 6 Nov 2023 02:11:25 -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 1qzwZY-00EXk2-2P; Mon, 06 Nov 2023 18:11:09 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Mon, 06 Nov 2023 18:11:15 +0800 Date: Mon, 6 Nov 2023 18:11:15 +0800 From: Herbert Xu To: Eric Biggers Cc: agk@redhat.com, snitzer@kernel.org, dm-devel@lists.linux.dev, linux-crypto@vger.kernel.org, gilad@benyossef.com, samitolvanen@google.com Subject: Re: [PATCH] dm-verity: hash blocks with shash import+finup when possible Message-ID: References: <20231030023351.6041-1-ebiggers@kernel.org> <20231101054856.GA140941@sol.localdomain> <20231102054008.GG1498@sol.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231102054008.GG1498@sol.localdomain> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 06 Nov 2023 02:11:28 -0800 (PST) On Wed, Nov 01, 2023 at 10:40:08PM -0700, Eric Biggers wrote: > > Do you have in mind making struct ahash_request specify the data by either > scatterlist or by virtual address? It might be possible. It would be necessary > to wire up all possible combinations of (SG, virt) x (ahash_alg, shash_alg), > with the vmalloc_to_page() hack for the virt + ahash_alg case. Yes that's what I had in mind. We need to do something similar for akcipher now that the top-level interface is linear only but the drivers are still SG-based. > Well, struct shash_desc used to have that flag, but it never did anything. The > few use cases like this might be more simply served by just having a helper > function crypto_shash_update_large() that passes the data in chunks to > crypto_shash_update(). Are you volunteering to add this interface? :) The module signature path is really broken right now, at least on non-preemptible kernels. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt