From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202602 header.b=V0pmCbEI; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id D825C5A0265 for ; Wed, 20 May 2026 15:08:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202602; t=1779282534; bh=M7sstybeL7Aov/1BttSw7r0SItgmlXwrul6jw0lmbGs=; h=From:To:Cc:Subject:Date:From; b=V0pmCbEIrFcx8vBH87CpJA8Q1XZUlv8JWocsmOpVktd4oQvBdxO4QvqTqw49HXowV K/Yi/KNwLm5O+5s0zKeL8/QCVxJFWjfv2FKDzGMe0w4q2qQEQmfLgdTADfKM9AYaQO cVQ4pxoU2kZgVd2xLL2B1aBd46zGlv2pUA7ooOdfRIe3CNNNIpwTO6ASYJnuVje0U7 vfLXXTLdGo4iA5SP6mjhN3oA3flJWPWWnEDWjEYPPamEGHQlT7MfHV9rGvxcoBhTXE FkS6tkD3FrdW5L4eOBk2xjI3aeuFav3dF0KFbTN9DdDFufOg2n9tzo1CSuhP5J4+Id v9WITVBkNBfXA== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4gLBgp0rklz59Bm; Wed, 20 May 2026 23:08:54 +1000 (AEST) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH 0/6] Fix race condition while closing spliced connections Date: Wed, 20 May 2026 23:08:45 +1000 Message-ID: <20260520130851.436931-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.54.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: YNYUPWWU5EHPMDXK7EPMVQLQ2UIQNAAB X-Message-ID-Hash: YNYUPWWU5EHPMDXK7EPMVQLQ2UIQNAAB X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Paul Holzinger , David Gibson X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Fix bug 202, where a race condition could cause connections to be incorrectly reset in certain circumstances. Patch 2/6 is the bug fix proper. 1/6 improves error reporting and debugging messages in the vicinity. Patches 3..6/6 are some cleanups I noticed in the area while working on the fix. Link: https://bugs.passt.top/show_bug.cgi?id=202 David Gibson (6): tcp_splice: Improve error reporting tcp_splice: Avoid missing EOF recognition while forwarding tcp_splice: Clean up flow control path for splice forwarding tcp_splice: Simplify tracking of read/written bytes tcp_splice: Simplify EPOLLRDHUP / eof / FIN handling tcp_splice: Simplify shutdown(2) handling tcp_conn.h | 6 +- tcp_splice.c | 180 +++++++++++++++++++++++++++------------------------ 2 files changed, 97 insertions(+), 89 deletions(-) -- 2.54.0