From patchwork Thu Jul 30 20:46:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 5191 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7000:fd0b:b0:87d:ab56:3700 with SMTP id cw11csp3871013mac; Thu, 30 Jul 2026 13:46:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AHgh+RpzUEH7UWJ6hf3nG7xWzl6dfmwTfAa9+B6OMsA+ubznzwGyJEmpaN3RxnoJ/q0rMYbJoligBOKJ4ZI=@openvpn.net X-Received: by 2002:a05:6830:6998:b0:7e6:69f:d208 with SMTP id 46e09a7af769-7f039b8bc5cmr1472564a34.2.1785444417749; Thu, 30 Jul 2026 13:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1785444417; cv=none; d=google.com; s=arc-20260327; b=fiMosBSXNt7dQ1SPQg26wOUiZvGSEtJ5/CRQHaWfwLiDN3V6an6L9EWuLoUDqBigmz UO8kHy/rV8oJHuF0QkJdHYCu8XkiJhVHAvxh3IkODo1xUeIjblR0VdaOfPVe5V+R4vkJ yWtJgcn+B5/un8Z/yppo9Ybz3bFOURIAsJNAPbnhtoyu0IiS/2qYxApuluL5mMJlVD9E hoBE0aHMyYNJN8aByMAmkaSIXD21ehnrH/s3tD8jaduvmLLW0At4q6Vj4Lsi2Evmxtni 1BijoHqZHI8R3eOZo5OGSaCkwH0gWy/GKlsmYiKL7XG3PCcYTY04NbIL0IpCVDkabSi2 lLtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-signature:dkim-signature; bh=p/fUC7o+SCBZ7FLq6+Yn4mCBtWkVCcGcei1swHwpKFw=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=dD3Na7eljyyGk+l9jSkpAiS/6BkIAIVP8b+ex2A3bSq7b4NswuiOmRhsjEWVjxpGkR DEeJronS6F1Zeeez1pfn0RueK6rSnCYbWQN3uWTaHEZ13ObgTMTHz2LACHPo9XOCw/kT XqmLPXPJoM8FdEXzPHbRTva3+X2qTWFNrM5yhDckNpDf6mX20a0QoBq59k9hfbirrGZA K1Q3XCqJgqd0A5G02npG76CuvNQeVRRKd2sw967FWZ8j2tYg+OR/OLrrMG8DpmesdxPR 1Ivkjczq5xXy6fsS04iG0/CnPT6xuA1GOZmw4XEXgwsT99rXrcSnHw322qpOxADt3HqY gW6w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=Qy+NrTGg; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=fOmJMHc8; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=DkEHsVbP; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id 46e09a7af769-7f00da59391si5686791a34.93.2026.07.30.13.46.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2026 13:46:57 -0700 (PDT) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=Qy+NrTGg; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=fOmJMHc8; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=DkEHsVbP; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=p/fUC7o+SCBZ7FLq6+Yn4mCBtWkVCcGcei1swHwpKFw=; b=Qy+NrTGgcXdfW9TQ0iYAzhT9EY eYA+cMGPvQIfk85c3F4bGmkdOsnDK55mOKC9ni52II6vpYHu1816Um7wyF5cDXG5N9PskJnb3jrYE iiepJRLk27r4nRTvcGfyz0tMSjfOmUngcr7/GoUfpONYU4rmUXVI74HXfy+FThxTC0II=; Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1wpXeY-0003yr-4o; Thu, 30 Jul 2026 20:46:54 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1wpXeW-0003yh-Iv for openvpn-devel@lists.sourceforge.net; Thu, 30 Jul 2026 20:46:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iIryvvHPHGK6mfxjXN87UhEHkKJOMNTdxx55PoJrZpA=; b=fOmJMHc8jJ1UxVncd/i8vA939O Ltlb2lP5yDkm3066gm9IEWKDtcOROa4l+sYGFJDAEt86ETruaJi4NtKQsoH3CXdfPYga2iKgSpNYU PitpXbBXeuGaHdGvSsPvKB0WRZ8uQeO6CeWEoWchr7GZZgOrcZ+93TcErENdVP9NsgC8=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=iIryvvHPHGK6mfxjXN87UhEHkKJOMNTdxx55PoJrZpA=; b=DkEHsVbPep/aDSLr3PyJKhqc0t ls/NlgukFMel3OIXv4Xg/fKl01NRP44ZvfbU3gYuNNFeamZkor8TgoJ5g8SEB5lwDr8uZO1XWzD9t 9MPSKLPBsgeOzyNWltni4h6P5VW/4QL9365ztohsjSeVw2NLl7zwEDDM9h4Zw1zmozv0=; Received: from [193.149.48.129] (helo=blue.greenie.muc.de) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1wpXeU-00079p-TP for openvpn-devel@lists.sourceforge.net; Thu, 30 Jul 2026 20:46:51 +0000 Received: from blue.greenie.muc.de (localhost [127.0.0.1]) by blue.greenie.muc.de (8.18.1/8.18.1) with ESMTP id 66UKkhE8027265 for ; Thu, 30 Jul 2026 22:46:43 +0200 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 66UKkh28027264 for openvpn-devel@lists.sourceforge.net; Thu, 30 Jul 2026 22:46:43 +0200 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Thu, 30 Jul 2026 22:46:37 +0200 Message-ID: <20260730204642.27250-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "sfi-spamd-1.hosts.colo.sdot.me", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: "ulimit -t" will hard limit the usable CPU time for any process started to the specified number of seconds. So if we have a stuck-and-looping server process (which was observed frequently) this will m [...] Content analysis details: (1.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Headers-End: 1wpXeU-00079p-TP Subject: [Openvpn-devel] [PATCH v2] t_server_null: run server processes with 'ulimit -t 300' X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: 1872174165618751552 X-GMAIL-MSGID: 1872174165618751552 "ulimit -t" will hard limit the usable CPU time for any process started to the specified number of seconds. So if we have a stuck-and-looping server process (which was observed frequently) this will make sure the situation will fix itself eventually. Change-Id: I7e5ac9b4a8594251c3b5c4655f9d74b021950098 Signed-off-by: Gert Doering Acked-by: Arne Schwabe Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/777 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/777 This mail reflects revision 2 of this Change. Signed-off-by line for the author was added as per our policy. Acked-by according to Gerrit (reflected above): Arne Schwabe diff --git a/tests/t_server_null_server.sh b/tests/t_server_null_server.sh index acf8479..40ce94b 100755 --- a/tests/t_server_null_server.sh +++ b/tests/t_server_null_server.sh @@ -11,6 +11,10 @@ # Allow reading this file even umask values are strict touch "$log" + # limit CPU time of processes to "5 minutes" + # (so a stuck-and-looping process will auto-terminate) + ulimit -t 300 + if [ -z "${RUN_SUDO}" ]; then "${server_exec}" \ $server_conf \