From nobody Wed Jun 12 19:44:27 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VzwwW49zkz5NLWG for ; Wed, 12 Jun 2024 19:44:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VzwwW2rPFz43YJ for ; Wed, 12 Jun 2024 19:44:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718221467; a=rsa-sha256; cv=none; b=Sun1B4pDJw/cWRJ3RbM9fECqzwlUZNjKbUTMY9Q2D6NXZi9NjVz8Ti4BoYBrM9Il1/shU0 dTF8XZ3he9Z+NCQ2EDhY8B3f7gpTg4shn4TI88w/99L1gKyyd74uZVNA3y25HoRjjUuYJe 8VcR0vHzyw/saG033HZuHpXxerMiBzSFSr5gP78cbJDAqgo/ORPmuqz4kayCdc+YlUQ3uD w6Ze5z8I3OlxN6px+4u7w9S584lDz8+7/r8Ob2dzwn8VubB1UE2WS9+wP4qM6/GMJenKSl KvsdFVFw/ClW++/TyB6wprP2yRZs3x/ZdSe9p5CRO7ZJMa96LinFFW893qmwRQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718221467; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rAy/wwv5OtbO86qnDu8wj6rkppFXnRIbeZsdYJh0ehU=; b=aXzePV4bOv5VccCqkvFvwtjIsukhy4Btc6HMANgVXbb9zpURRvQMiZ+dR1vbCr0LKxe+vm o7u+1h6JqAGtBqf9+20UVBt8P3dmFlF68Ujqxv+PFg2EcKVJVQQRgfXMir/VbLBMJo7+FM wtWe6D3r0Z716IbXjWlEbLgUKkjX56t2iopaqqDJKrMnKuD0ULxOf+Mj+hrNhi8PHLodPW 2qPI0okaTDb+11lc61i/Xw9xEq3VbnCWJ89tyA1xk2/LtgXDIcGqh7D3epqn7NVDnexFfe J1FVZSNyJXTa+4+vI0MRlo+AaneOqc1qODOxXOMyU1r8i3kNF9jxy94hA1gCnQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VzwwW2LCGz15K1 for ; Wed, 12 Jun 2024 19:44:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 45CJiRtm038979 for ; Wed, 12 Jun 2024 19:44:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 45CJiRLe038978 for bugs@FreeBSD.org; Wed, 12 Jun 2024 19:44:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 271460] ctld ports become inaccessible due to concurrent service restarts Date: Wed, 12 Jun 2024 19:44:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: asomers@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271460 --- Comment #2 from Alan Somers --- I've confirmed that the cause of the problem is that ctld opens its pidfile= too late. It reads the current list of targets from the kernel, then reads the config file, then opens its pidfile, and then applies changes based on the differences between the kernel's state and the config file. But the kernel= 's state could've changed before the pidfile got opened. I've hacked ctld to open the pidfile earlier and verified that this fixes t= he problem. However, doing it properly is hard, because the code for opening = the config file is intermingled with the code for interacting with the kernel. = The biggest problem is the conf_pports list, added in 057abcb00413010898f3046f7704444b8f537bab . --=20 You are receiving this mail because: You are the assignee for the bug.=