Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp675981rdg; Thu, 12 Oct 2023 18:45:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGhWqwa1ZOF9krrgqFYUQrWFTY2ztEa7o0LZJEnWiORD2hGZTvwd0FNVs9Qcrc2By3uhpIw X-Received: by 2002:a17:90b:3008:b0:27c:f315:8b14 with SMTP id hg8-20020a17090b300800b0027cf3158b14mr8675366pjb.33.1697161556911; Thu, 12 Oct 2023 18:45:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697161556; cv=none; d=google.com; s=arc-20160816; b=agbKNHQfR0LrwTSnBlxrE3OwUAMMedTg9dmWHDUbU5GH4FzNMI0XATy/Q5jQ8h4Tw+ aW0vvB77uHCIf9HhuWlppWxAs7FKkllyuRpLkONaD5X8vsG/XCRsXSJOqHAlwVcAqT8N t9WqMuKPCgY+Yf9UVbsVIFeMtIvMbzc/mQuQuXr4mhPsGhN1g8eNZtOAikGHxfS/Rq2m Kg9ujx57TF9Qa8/Wg3gAA/V8RAwXLv/wOgVwOh7T52xiYBesee96KBVWNV7zmfsSVzzq JoJqx4YL0aOIWFIdbV+K6s4+hCnDn31JrqzeSm6a/CwyAqbjGMDMbuEAEr1GihDLDmTH soMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=NkKDwESUMv6DmJniI4kRJ0Fze3BlCpWsKbtTeuEzRoQ=; fh=RS5xk2Yo9202uD/sfCsf4nBVuUGQaJEuWklJtn7kn6c=; b=aEZEKjrnqYOnWWc9La9J1ONtsIbqo84AMX9TIK6l22l5+piAn7wr03XTbVZFoeMaKl tx8x93vH661+8CHOM8xLR5MZXT8qHa+HGO950oTmBezTuMrfLH57yJ3z0E/OCt/SlmXv huzQTo5TuzdEMJ/GMxSOYxpvfuc0ke4ueyLazta+3hyQ0lUzCqfov3y115ZdpZg78Ygv GQt1chblDxNUWtf8MQnMACZwHFOAtO3FeZrmximTNW1lJvJLt9+x/GPOZUW9UpbNMcTe YZs9T+Hq8xvYwYXDQWnhU0mlzllKEqmsfqf1t0MK+jLtRcN8G1WP4pH6kQzBGJ0Myq7Z IuOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=wctTAqWM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id h15-20020a17090acf0f00b00278ea235413si3439853pju.31.2023.10.12.18.45.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 18:45:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=wctTAqWM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 5BEF58085994; Thu, 12 Oct 2023 18:45:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229469AbjJMBpN (ORCPT + 99 others); Thu, 12 Oct 2023 21:45:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjJMBpM (ORCPT ); Thu, 12 Oct 2023 21:45:12 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F3C4C9 for ; Thu, 12 Oct 2023 18:45:10 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-690d935dbc2so328234b3a.1 for ; Thu, 12 Oct 2023 18:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1697161510; x=1697766310; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=NkKDwESUMv6DmJniI4kRJ0Fze3BlCpWsKbtTeuEzRoQ=; b=wctTAqWM+C+AavijPGVNcXf4bwP+E/t8KAOEKi+zZG4WomkiYnQOuVGojNwl+bo1Fy kfVb9Y0l2NAq0k2sjYQSOnJdfEbR134ajyLXqORuY+Qph83AwRWE/6T3z7aTb1ubtMtQ xKOQ2jc67GIJXMkuJliRocizaVmoAx2MyjAfUzU4XvUrgvEAaSHQ/2qOqXxJEJF+abvJ sfERUcLnEhb6LnDv0ya5fLIlGmUwirNgqnIlxI7WdWz5s5xnwAmlnkvHmHGb4SqYVjul y5u9bI9EGvU8QWeR6dqxsq6h04/a32jq64ZNoIeYqn9uj1ezriMuQoRbHEs3K8KIZNSE pbUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697161510; x=1697766310; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NkKDwESUMv6DmJniI4kRJ0Fze3BlCpWsKbtTeuEzRoQ=; b=HxZ62kjFMb5HP7tX1RWTKzrt36AYQkt2aysJ1Bw/aXlu4khvVZQLVEOC64/G8eNNt6 Ftd0QpxhhDQmhv2O18dX7RgV2F+AyWPC7Uw97s7hpw3mIOFAQ2BNalWJcrQAdye7g2q5 +8SYtZR+kY7O1sPv6N/Q6BRRJU2zYd545+YmtQ3Nw20SiysSmh6RfK3epaw/sXaEuFUZ uy7E00z64O5DbE0qeUTwMg8CscKUchsGvTbE2FH2SC9H62jeBRW6p5HPWI5m0NqUhUYl IrX0IaCbfdjLS+U/ixqTMBL0Fo6HoEehpqegzWDzViweb99LUz5XazCniu/z/r1LkJ8y cOuw== X-Gm-Message-State: AOJu0YwvVPuZDaOc0PRVmeNLnt4DI6CWctQlevUOF7uLwOBwm0YS3dCV 5fomDYfB6lKZ7lsJ0OAh/j0/xA== X-Received: by 2002:a05:6a20:7da2:b0:15d:6fd3:8e74 with SMTP id v34-20020a056a207da200b0015d6fd38e74mr31715422pzj.3.1697161509881; Thu, 12 Oct 2023 18:45:09 -0700 (PDT) Received: from [192.168.1.136] ([198.8.77.194]) by smtp.gmail.com with ESMTPSA id l21-20020a170902d35500b001c737950e4dsm2659672plk.2.2023.10.12.18.45.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Oct 2023 18:45:09 -0700 (PDT) Message-ID: Date: Thu, 12 Oct 2023 19:45:07 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Problem with io_uring splice and KTLS Content-Language: en-US To: Sascha Hauer Cc: Pavel Begunkov , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Boris Pismenny , John Fastabend , Jakub Kicinski , netdev@vger.kernel.org References: <20231010141932.GD3114228@pengutronix.de> <20231012133407.GA3359458@pengutronix.de> From: Jens Axboe In-Reply-To: <20231012133407.GA3359458@pengutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 12 Oct 2023 18:45:23 -0700 (PDT) On 10/12/23 7:34 AM, Sascha Hauer wrote: > In case you don't have encryption hardware you can create an > asynchronous encryption module using cryptd. Compile a kernel with > CONFIG_CRYPTO_USER_API_AEAD and CONFIG_CRYPTO_CRYPTD and start the > webserver with the '-c' option. /proc/crypto should then contain an > entry with: > > name : gcm(aes) > driver : cryptd(gcm_base(ctr(aes-generic),ghash-generic)) > module : kernel > priority : 150 I did a bit of prep work to ensure I had everything working for when there's time to dive into it, but starting it with -c doesn't register this entry. Turns out the bind() in there returns -1/ENOENT. For the life of me I can't figure out what I'm missing. I tried this with both arm64 and x86-64. On the latter there's some native AES that is higher priority, but I added a small hack in cryptd to ensure it's the highest one. But I don't even get that far... -- Jens Axboe