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=202512 header.b=VWyorl+0; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id D08145A0626 for ; Thu, 11 Dec 2025 04:54:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202512; t=1765425278; bh=Ny8n8/p4mYIuKTpNgaJjuh76e+/1lV7KLN0T3TvE+jg=; h=From:To:Cc:Subject:Date:From; b=VWyorl+03kUfCID704GF5CxJ5ctXLLH00rC0si/BHB8WnI9dk8excII9cZqznPhGz AgNY/DQdCO6ffIfoCYapswa06J45IMJaZxkTTBEBal7nLNLAszpImGPYb2GRWXL7Dv cNwt9ONBRhhguxb1BggkTDn/ChtM1mAAjqJJp3sqQGZkd9siZh/ysUDmfWXCPnmQou XFincLfXq7SivPwS1FGAKDV1gy6Nz3C8zHVw54O+lE6XQ1GR6Er5+xpWzO1RpcIYlX oG9m7ibBw5uAh+0NjUUSNjAQr7/YNUcI+g9+Tm3XtR7hZ+noLC+Uy0pLjTpHN9dzzV x7+L2sCeRjlqw== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4dRdy60R2Vz4wDl; Thu, 11 Dec 2025 14:54:38 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH v2 0/3] Improved exit()/_exit() handling Date: Thu, 11 Dec 2025 14:54:33 +1100 Message-ID: <20251211035436.2844623-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.52.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: DUF4FPQPPI7KIGGRV2SSKYKBUISZRH57 X-Message-ID-Hash: DUF4FPQPPI7KIGGRV2SSKYKBUISZRH57 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: As discussed on IRC, while working on the forwarding extensions, I discovered that failures at certain points of initialisation (in particular tcp_init() or udp_init() can result in a zombie pasta child process. Here's a fix. v2: * Fix a typo * Use PR_SET_PDEATHSIG instead of explicit kill() * Include updated version of Laurent's cppcheck bug workaround David Gibson (2): treewide: Introduce passt_exit() helper pasta: Clean up waiting pasta child on failures Laurent Vivier (1): tcp: Suppress new instance of cppcheck bug 14191 conf.c | 11 ++++------- log.h | 9 +++++++-- passt.c | 5 ++--- pasta.c | 21 +++++++++++++++------ tap.c | 6 ++---- tcp.c | 10 ++++++---- util.c | 25 +++++++++++++++++++------ util.h | 1 - vhost_user.c | 4 ++-- 9 files changed, 57 insertions(+), 35 deletions(-) -- 2.52.0