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=n1YGMdvh; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 0E3BD5A0269 for ; Mon, 18 May 2026 05:22:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202602; t=1779074566; bh=0z8Bb5O5LpSBfg4VXwc5mGvGq3OCxIcJHtEpPWdk2Kg=; h=From:To:Cc:Subject:Date:From; b=n1YGMdvhBJSvtVW2TS+viVqt610psst8Tjuq3LaImLaF8ulm/IZbjNOHuFapcn9IS NO9RjMd26dNvZkECfRGvH875FZQyznnVvyVNaVCVHD50sfDQgIhJL+Q0E6oFtI+j3G Ggrrm5wk/vHKFD9ayFrKywqeoKzvVi9GzJhrXcpJHhUu+WDwLndXHAZTW4hJ6p+6vy t7iNWbyDw4vfz0I3P91jT+rAgHskJV4ND8Tc1uDrSP7gMtrMwPD2Ui8oFk5Gf51Ugy OVT7g0rY9puTk5oURxOIOUuRVwmFTgTDtRDu0XjxnvCKbOK2cPeyK+WDoBmKymCJ1G gSSez7HdAgJLQ== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4gJjmQ3Zpjz4wL5; Mon, 18 May 2026 13:22:46 +1000 (AEST) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH v2 0/3] More caution with NONBLOCK flag on Unix sockets Date: Mon, 18 May 2026 13:22:40 +1000 Message-ID: <20260518032243.823768-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: OD25WQXIAB2FKBYHCEFU3K2SO44CKMQD X-Message-ID-Hash: OD25WQXIAB2FKBYHCEFU3K2SO44CKMQD 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 tap: Report accept() errors conf, repair, tap: Document reasons for blocking Unix sockets conf.c | 6 ++++++ repair.c | 9 +++++++-- tap.c | 13 +++++++++++-- 3 files changed, 24 insertions(+), 4 deletions(-) -- 2.54.0