Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1063264rwd; Wed, 7 Jun 2023 10:25:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7InbtOvkWc9+NLawvwkCipQF5MNWrqSSYb2/e7MRlAFu63t9ENWXst7BMImaU9q09+pSyz X-Received: by 2002:a17:902:7796:b0:1b0:522d:8ff4 with SMTP id o22-20020a170902779600b001b0522d8ff4mr4837605pll.21.1686158710909; Wed, 07 Jun 2023 10:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686158710; cv=none; d=google.com; s=arc-20160816; b=oK23hHbdn4IjWr6nGU1CnJ2ejeCt/AOZ8kU2WHVcWA7a/devSxt2zT/+8/mAAUJLdL tR10CtHIsC7gconrGY8WV396kTlBkDKxGxpTZRRqgQRQEGQCTZX0o3S/9Qe/CPjeAdXF Z4Uz7LCAJ1VSWTi4ULhuaw7LhINKiFkxPCwutVCsVXlLMwTZcidXqTlJ5TMh/PtSHT8u MRwe2j9b8O79oYzMk2rxg+fntFeRXSUdILlm1GzLv4F6ymRr8xxDGEFezx3xWWD5O5co IyQrp+oBaY1zqvjiGS8mX3JUPzLT+SP7TwB84KBTb3RTnwBfIKWiG8BG4hh9SNUgLsEu a7PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=zfZjzNI2337pPNa0rVLc9QMgxVyQPZ3+UghqNa41gVc=; b=v1qEfN8LARgC3U0T5J8V6psheIRnfdvXkZybVTb0Lspue/DVv1PvxPqOgjBQZvt/9f ec7Lm1Yjol9z5GcsYNit6oczwg5XXvgkMyFBTKXyTFNBytLxWue5Gvl6dVaykASLrXn4 9AiAREmZHHaO0sK8IeJPE/7qlhNU5Adu6Dpro+Tl9US+FeOqhoGDWUfWBdarXd94A73b 8VhWvHYva6rfV68iRWuj7CzHqLfR/GXDLmOiE7ELvWs7hSwiqCUMDOd0NkK+yfzU2t3x DXcapnYabVaP8XXbdrRd0XeJK/UDYot7WtfUocRXsV3AMjctT4n7Ost8lyErp4ExrcjH y6sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tNgxGoQ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a170902ce8300b0019d038765f6si9300344plg.449.2023.06.07.10.24.55; Wed, 07 Jun 2023 10:25:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tNgxGoQ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231320AbjFGQ5q (ORCPT + 99 others); Wed, 7 Jun 2023 12:57:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231308AbjFGQ5p (ORCPT ); Wed, 7 Jun 2023 12:57:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C0CC1FC2 for ; Wed, 7 Jun 2023 09:57:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C5B9561459 for ; Wed, 7 Jun 2023 16:57:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83317C433A0; Wed, 7 Jun 2023 16:57:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686157063; bh=lmG/iO4yCH/y6BZzMgEzghnezPPBrnzSLbgdr+z6b0Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tNgxGoQ0gPVV6m9sXjcItYlUSPzWY69mHwmYp2o9RLQ/1mqxCliU+wlW2xMneoWzC eUVJ+njWX0VKJLEdtS+raXSkIh/Lyz/cqrGHv4a0bJMrPI5LzBvWG3F6F/3DZADS8u MLkx72637FQN/GCcz30xpzaz1TLR0Aq8hXzoYjSCw/mCRa7Y4vg/oRkXQ0Rql9F6L5 NrhQBSSd9ktD2Ijy2WawHszVdVHtwjqs65PKO46Aw0autkh7HPSPutb4ZljhyfDjGQ bIloblYGEHqhDpUz98zVWqvlsl9xnVOBx+m+QYiDbBz9TY8R65a/6bIur/FL7xdlzm kpMbNUvYAniQg== Date: Wed, 7 Jun 2023 09:57:41 -0700 From: Jakub Kicinski To: David Howells Cc: netdev@vger.kernel.org, Linus Torvalds , Chuck Lever , Boris Pismenny , John Fastabend , "David S. Miller" , Eric Dumazet , Paolo Abeni , Willem de Bruijn , David Ahern , Matthew Wilcox , Jens Axboe , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v5 05/14] tls/sw: Use splice_eof() to flush Message-ID: <20230607095741.223689c1@kernel.org> In-Reply-To: <20230607140559.2263470-6-dhowells@redhat.com> References: <20230607140559.2263470-1-dhowells@redhat.com> <20230607140559.2263470-6-dhowells@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org On Wed, 7 Jun 2023 15:05:50 +0100 David Howells wrote: > Allow splice to end a TLS record after prematurely ending a splice/sendfile > due to getting an EOF condition (->splice_read() returned 0) after splice > had called TLS with a sendmsg() with MSG_MORE set when the user didn't set > MSG_MORE. > > Suggested-by: Linus Torvalds > Link: https://lore.kernel.org/r/CAHk-=wh=V579PDYvkpnTobCLGczbgxpMgGmmhqiTyE34Cpi5Gg@mail.gmail.com/ > Signed-off-by: David Howells Reviewed-by: Jakub Kicinski