Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2926019iob; Mon, 16 May 2022 09:08:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHPUVo3/8njKN5wW+yfCsiBVPHjDZKN5uZ8lBk/kdJQ9Aunh10ILPI8eL8nHi0Q8izcqV5 X-Received: by 2002:a17:907:629a:b0:6d7:b33e:43f4 with SMTP id nd26-20020a170907629a00b006d7b33e43f4mr16399907ejc.149.1652717316769; Mon, 16 May 2022 09:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652717316; cv=none; d=google.com; s=arc-20160816; b=Xh/v/5cCCQqgkLJJVAduxsDri9+07PFjhCns95ITTVH1ngBzpSJ1t4kBZjvW4OXxXs 2vtNmIEuxjU/W80UnVQll7okHupKiJmbB3BgEERWxalJP/uEkP9Oh3hhBWH4atAGi6TK UIvIfKFgvz8FRhQDUerkBBd2eIBgwqza0n7heY3eGVayJF/0PTnFlV5BPjCW1UGVsp24 2JWYy2tT8/Ks+hXcVREvDAp5pDPZIq/TxiC1Qtxh4J2obE1NZExm01T/h34JtCd0OJpe ZHy2x2W1hAbv2Qo+S2BpnIuLj49AT4n7yJdT1/dpMBk17y8oykgKSSpPS5rw/XLEDsUC n7rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references; bh=fiMVGpU1in8Q9U76DMiIoDMDA9sQNcyEv0K2EpcFve0=; b=xZzk013R0aZfhz0FklmWtS7ab/ffmCnscuugNXMgMSpeQpaDEDuE8BUw+8+ttumL9p fnICcA1DqoK2371QFo9e4TxC9YDJVY1TZPBZO4VcA8ICjL68hxBMUBWsrF32TrxLWv0b pqZqIgmTutE4KRj+bv1ZqD2AnMjLDPHmvg5ByIY7ynKhYyzmjwXm0iJ/uqbv9RBJ0Klc HgR+t3PhiBo6gUpBI6Qwtfv5cevhHit/eLBggGQsJ2cas2qPOpS5AP5okem/cHvGyFti ZMVXKxq1SqYZy5+oOrXVFbE5aKnNM8ZgkNksGQOzIrc/E7X5DKyBNHStALw/Qmv7/AKp 4A2A== 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 y8-20020a056402270800b00427e39bf3d4si12051127edd.480.2022.05.16.09.07.57; Mon, 16 May 2022 09:08:36 -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 S241562AbiEPKIF (ORCPT + 99 others); Mon, 16 May 2022 06:08:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241408AbiEPKH3 (ORCPT ); Mon, 16 May 2022 06:07:29 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38F969FFE for ; Mon, 16 May 2022 03:07:21 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0] helo=igor.pengutronix.de) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nqXd9-0000Hs-8p; Mon, 16 May 2022 12:07:11 +0200 References: <878rrqrgaj.fsf@pengutronix.de> <20220505192046.hczmzg7k6tz2rjv3@pengutronix.de> <20220505171000.48a9155b@kernel.org> User-agent: mu4e 1.4.13; emacs 29.0.50 From: Steffen Trumtrar To: Jakub Kicinski Cc: Marc Kleine-Budde , linux-crypto@vger.kernel.org, io-uring@vger.kernel.org, kernel@pengutronix.de, Horia =?utf-8?Q?Geant?= =?utf-8?Q?=C4=83?= , Pankaj Gupta , Gaurav Jain , Jens Axboe , Pavel Begunkov , Boris Pismenny , John Fastabend , Daniel Borkmann , netdev@vger.kernel.org Subject: Re: [BUG] Layerscape CAAM+kTLS+io_uring Date: Mon, 16 May 2022 12:06:27 +0200 In-reply-to: <20220505171000.48a9155b@kernel.org> Message-ID: <87sfp9vlig.fsf@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: s.trumtrar@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Jakub Kicinski writes: > On Thu, 5 May 2022 21:20:46 +0200 Marc Kleine-Budde wrote: >> Hello, >> >> no one seems to care about this problem. :/ >> >> Maybe too many components are involved, I'm the respective maintainers >> on Cc. >> >> Cc += the CAAM maintainers >> Cc += the io_uring maintainers >> Cc += the kTLS maintainers >> >> On 27.04.2022 10:20:40, Steffen Trumtrar wrote: >> > Hi all, >> > >> > I have a Layerscape-1046a based board where I'm trying to use a >> > combination of liburing (v2.0) with splice, kTLS and CAAM (kernel >> > v5.17). The problem I see is that on shutdown the last bytes are >> > missing. It looks like io_uring is not waiting for all completions >> > from the CAAM driver. >> > >> > With ARM-ASM instead of the CAAM, the setup works fine. >> >> What's the difference between the CAAM and ARM-ASM crypto? Without >> looking into the code I think the CAAM is asynchron while ARM-ASM is >> synchron. Is this worth investigating? > > Sounds like > 20ffc7adf53a ("net/tls: missing received data after fast remote close") That fixes something in tls_sw. I have a kernel that includes this patch. So this sounds right, but can't be it, right? Best regards, Steffen -- Pengutronix e.K. | Dipl.-Inform. Steffen Trumtrar | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686| Fax: +49-5121-206917-5555 |