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=h2+W/qhJ; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id A71D25A061E for ; Wed, 13 May 2026 06:14:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202602; t=1778645664; bh=WDEJ51220grljS+y9jCr+xCB3WmxsheO97TPlw/AaJM=; h=From:To:Cc:Subject:Date:From; b=h2+W/qhJBqiKDph32+vRJalTRgL6EGYS+fbXWil6Jc7pALKgUkt0H307ZXFP8imJu k2rhfWoZFbkEFLJwKKyLNc/KeFBpwBSyNVMnQ/qLC/3akF8bKA3bY6QbNjVjVnjpEc 3Qngisf5TVvxzJfRglZlkuKF1B7xE6wEzoeXz/jVX31D04eyZIT1+pr6wD1B6u3h8D 9ROxaeQIanMDFqhEhjZi4ZXbfKscm7UlGhPLZohoQCQokh+cFZleb4CWfF1v3E9nF9 2VmF/jaTwopjqbpEwYOn/7gcwfmoF59p9R6ZqYUyZjO1tHh4Sh/FN21VvtdtTSdq7a o93TjGStI332g== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4gFg8J737jz4wJv; Wed, 13 May 2026 14:14:24 +1000 (AEST) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/3] More caution with NONBLOCK flag on Unix sockets Date: Wed, 13 May 2026 14:14:20 +1000 Message-ID: <20260513041423.2446716-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: GFR2H4U2XZYCPDNLU4HJWCTT4WHEOYHQ X-Message-ID-Hash: GFR2H4U2XZYCPDNLU4HJWCTT4WHEOYHQ 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: 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: This is a revision of the one patch from my pesto series that wasn't merged: a rework to the handling of the blocking flag for both listening and accepted Unix sockets. This new version is split into several pieces to make the rationales clearer at each step. It's also a bit more cautious in what it does, so should avoid the problems with the original version. David Gibson (3): treewide: Add SOCK_CLOEXEC to accept() calls that are missing it conf, tap, repair: Uniformly use non-blocking accept() on Unix sockets conf, repair, tap: More caution about blocking flag on Unix sockets conf.c | 10 +++++++--- repair.c | 13 +++++++++---- tap.c | 10 ++++++++-- util.c | 2 +- 4 files changed, 25 insertions(+), 10 deletions(-) -- 2.54.0