From nobody Tue May 26 17:29:55 2026 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 4gQ0BC5kmkz6gBM8 for ; Tue, 26 May 2026 17:29:55 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gQ0BC5FPvz3Gns for ; Tue, 26 May 2026 17:29:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1779816595; 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; bh=YYWLStdh4cdxp1ei74L3k1+hQOwzsAnpfX7CP5G2hoE=; b=u1yX1fOBl+9U+HCfESugslyExcz8qA452U7DnaB3UVtDQfymUd1qvPYRChG39fpAb0t1vZ 5Uto79fYNSTjdQ9jqPty4COTlBOK7QXzB871am0LaJzVu67IztsWyGvi16Cf/xJKuuqWKz VJKUmMZhIAc6zEy7b3FXnV3HApkNQvYHxmoBAjeQhCMU6nZJZUnGoi3YCeDYUkF+SfPeeM jKZTvE5+A+fLcNcf7v0IkR8TP10IuC6lEPISShGLav7dUiLqEP55hAbYeI+TMrn6CpPLWg mYq+UPtJyERbglhcF55y1lcxiZMsA4LnfNW0WS/X7K/n7OjglqyAQ2ZUkc4z1g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1779816595; a=rsa-sha256; cv=none; b=Z0n2HfOogg86I0xLlwzckDeGgHZbbLbIp2p8FoaaZtRJsG8R0ut2+qvjLd5ibG0x5abo3o lW7ErfvI4sfrVTH6gfTHd3SDYDNCuzu/RdV+OBkoUHfwGnfb8I4KD1LEFjmmdMB90rtJYa MHFJpczHKqjJjbDLUzlBmBAZsnAkV34bt3WYEGIAlQ69TCRqV2mmO8IXgMhYF9RyuuF6Pd pPcyooogskqsz0qkxpY63/o3W/rK4Up3HlP/ENT500BgS9xcwwLc3u79F4kAAntc6nVuNI /NW7n/bMzdj6E0wsBbWj5Fl9zXmu+j9qRKigEGc4HN2IA8s2Q1thxA+tMj77Pg== 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=1779816595; 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; bh=YYWLStdh4cdxp1ei74L3k1+hQOwzsAnpfX7CP5G2hoE=; b=rmWyh0auNy6mpAcnGXDgL6nAIrxZoCZ0HexRHtToRuNMN71YI/lErzv+94Spaug9FAXgqP qgiJ4Kn/hOahZQ+5/eag2DzVPf7O+CMMY1JnQCgJBuaZ0BEB6gSmfIR1166Afu8SCpX4Iz aG66JM+K6bycaqnut1GM1oFrdo27OwltUvwll4LZQVQ/5Rd9kW//k3+12ZQ5fG1yJXlyVG 50Db6eqvXXUVonbdA3/43BELNt5f1UU78J27AW+zSp8vkDJ1VQYNG3ILhsDl6Pa/BMJHq4 Yf0zluiCcfhDOw2y6XI/E1dZPekWiHyCaMCppvb7Rh4P3DuDLZI8yGnHP51Qkw== 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 4gQ0BC4W39z66f for ; Tue, 26 May 2026 17:29:55 +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 64QHTtbG062191 for ; Tue, 26 May 2026 17:29:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 64QHTtP0062190 for bugs@FreeBSD.org; Tue, 26 May 2026 17:29:55 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 295614] tun_destroy() holds ifnet_detach_sxlock while sleeping on tun_cv Date: Tue, 26 May 2026 17:29:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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 Many People X-Bugzilla-Who: olivier@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: 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 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=3D295614 Bug ID: 295614 Summary: tun_destroy() holds ifnet_detach_sxlock while sleeping on tun_cv Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: olivier@freebsd.org On FreeBSD 16-CURRENT (reproduced against main-n286096-490c53e9353f), `ifco= nfig tunN destroy` against a tun(4) device that has an open consumer wedges the kernel's ifnet-clone subsystem indefinitely. Reproducer (three commands, no special hardware or modules): ifconfig tun create # -> tun1 sleep 99999 < /dev/tun1 & ifconfig tun1 destroy The third command never returns. From that point on, every subsequent `ifco= nfig destroy`, `jail -R` that touches a cloned interface, and `jls` (= via the allprison cascade described below) blocks in uninterruptible-style slee= p. SIGKILL on the wedged ifconfig does not break it. Only a reboot recovers. --=20 You are receiving this mail because: You are the assignee for the bug.=