From nobody Tue Jun 23 16:29:05 2026 X-Original-To: scsi@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 4gl9W53pCBz6hhrG for ; Tue, 23 Jun 2026 16:29:05 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gl9W51Zjnz3PGY for ; Tue, 23 Jun 2026 16:29:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782232145; 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=Q/FP6oVdSx8yFwVg0saRJythQ5yNO5nO/LjCAoFg99k=; b=WL0OS0wF1gl/AGsnfdYritUgNqqC8wa/2W4KwhfXXyh7pTDh6g5f5vl3gVopDSYWFaz6E3 RAxQdOwmbLr/u5NkUYWwbZ+jbmwO969PQMQIcwIKN2EtxsjGgGcYQTwd1JhFL4JOq2/xze D1I5Z+RjezARscFITfGJPn39TI8jtktuQDhkMke0KpLb1Vz6Q2AdqjVyyVhHqv2D2mHH+I 16Mii5u+pKYvrU8VHVuN5h0NQIm7HHuvRk51OfFQTvsGGV/HtnfBlTNOK1p+TWerEYwo1p AmD5NKAc00xkZCZXh4+RUTnXVMbVYYxvq4n0ht5zR+A4HA/7VZNhqec91okoJQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782232145; a=rsa-sha256; cv=none; b=B9qQJLiQbykbJqyIAzDCs2nO6TIEYJQNqvPeyRbjClc2cDanOZqHS10CU0FwuORY1243Fd z4Ti0ubauKbhi7bTvz3V4Lo3TeSUDMf0aXXeQlsWn1lIOGCnX0iPEHRJpbDkupiXfF8GMX jXKPilB6VyVrw2Ags8i/x/4likLDSf8Xtzn4wrmHE5Dzak9B/PsrOOg5BXQ8drUYExjk9M ewnftl/Ly9T1CcuBMOIMKojkmmU/21LxvZibY3ETgqf10yaVeTRn0zlOdLUaDt+DE1Fhk/ ii3ygrXuehD+0677cAg4w5iagbAbCnH2rkgaKnU7K/iwK46g8Yk4LrD0hjIKbg== 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=1782232145; 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=Q/FP6oVdSx8yFwVg0saRJythQ5yNO5nO/LjCAoFg99k=; b=j+D/s4aMqrVfJbNav/1SrwoB9q6zczuH3BESQ3n0bH9lS/DDP3RdiAtL8VWQiuHLGmnHfn VfKpCeKt8jStZrUJj3s4pmtgpjRNY08n2QX8MUlJbKGxNEFuuyzg3prB/tcS0cGTE7adDF z6P806i/t0FGWP2G2xj5pGoz6/bw7HK8OpegfpuxCodC7ICkIgYnRAog/2lnhQZfuRLKOR 3pUTtlKjHUZnX+lQhWP1+W/3LuGRBfdvPcB1wT33ueonlcgsm45vP6BWpMfevKKL7cMp3l EeWrZW896BI4u+7IbynoOFPGaK9i+We8g57Eou4/u3Bz55chaUOW6DCZn/j16w== 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 4gl9W50bjvzj3G for ; Tue, 23 Jun 2026 16:29:05 +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 65NGT51I039832 for ; Tue, 23 Jun 2026 16:29:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 65NGT5dZ039831 for scsi@FreeBSD.org; Tue, 23 Jun 2026 16:29:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: scsi@FreeBSD.org Subject: [Bug 293076] ctld regression in FreeBSD 15: multiple physical ports per target rejected and ports not enabled automatically Date: Tue, 23 Jun 2026 16:29:05 +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: 15.0-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: scsi@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: SCSI subsystem List-Archive: https://lists.freebsd.org/archives/freebsd-scsi List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-scsi@freebsd.org Sender: owner-freebsd-scsi@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293076 --- Comment #31 from commit-hook@FreeBSD.org --- A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dcb2d8649148f451ac7fc6f45870cd7d5a= a78736a commit cb2d8649148f451ac7fc6f45870cd7d5aa78736a Author: John Baldwin AuthorDate: 2026-05-27 20:57:38 +0000 Commit: John Baldwin CommitDate: 2026-06-23 16:17:31 +0000 ctld: Only check physical port linking in a single configuration context Commit 969876fcee57 moved struct pport from being per-configuration to being a "global" object shared across multiple configurations. As a result, the check for duplicate ports actually spanned across configurations, such that reloading a configuration would now think that existing physical ports were already linked. The linking field in pport added in the C++-ification (commit 6acc7afa34aa) faithfully replicated this bug (albeit simpler as I had noticed that the TAILQ links weren't used after the earlier commit). To restore the desired behavior, remove the linking field from struct pport entirely and use a local unordered_map in conf::add_pports which tracks if a given pport is claimed by more than one target. PR: 293076 Reported by: Ken J. Thomson Fixes: 969876fcee57 ("ctld: parse config file independently of getting kernel info") Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D57093 (cherry picked from commit d1a8fa2e0f415f941e628f959fa0e70f23058fdb) usr.sbin/ctld/ctld.cc | 12 +++++++----- usr.sbin/ctld/ctld.hh | 4 ---- 2 files changed, 7 insertions(+), 9 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=