From nobody Wed Nov 5 00:28:28 2025 X-Original-To: testing@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 4d1R4r6d1hz6Fs9m for ; Wed, 05 Nov 2025 00:28:28 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d1R4r6C22z3f7h for ; Wed, 05 Nov 2025 00:28:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762302508; 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=Hp4L07fxJO4d9mz3ivjsqBM7PzUwwDRaOKfZVl5ony4=; b=bseRpv1IiluDi1nWaNjhmzQE3eQji9W3xbXaNNXkgB+H8b4JIpzW4jkgA8KnuMAeuqDrxR mSRymaxZhbEI+euF2F3snS1EF2rxjZsnkwiXarpWhX4IOlTHWDTmZBC7TXX2P8pmxkBm0F F/gpt1g3MpOASZUL2LmrNNSdiN1tCpomOL4bL5iCFDXhdvSnHDlwqKDMjyPbF7rX0zXusO cqIgx63bJ50CHHLwWmwO/ZOwZQS6ybngJ7zK7AEHmuNqbfTsSi6m7RL3Su+4DOam3hQlNv 4U8277QKG7fHv9PFe1+gwp5Jr6uteXtzh+HYe5dhT/F3sp7zuKnPGuYW2w4Xjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762302508; 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=Hp4L07fxJO4d9mz3ivjsqBM7PzUwwDRaOKfZVl5ony4=; b=QRXdoCvNQwD8lUnDhImInhxsSli4eDHUf+qKzhFqI4Qp8aY5HaoE+xsslBe/wgYrmuOfeB oBObXGnlL4YpOLCrVtojOCtgGXle1lSxmDWHMxDdoJv56wl5fPjWAvLQ/y696QsmWWBFaV BsivkVvriRx3pQ+dGFRK8FdzvwaHrjFO9IvmljkJvL3sDpgNn2ZmQ5AYL+/MptdVaiZeET h8tx1s5U2N1npmp54UcI5CBYjjN9Q6VY3QjyyUtMszkrjJLOU3hRyvyCqVaQvbD1BkFEeI 3tzkL5zJog6aMRGQ6zUQzXShU7wG+3vwwTiZy+Mgnk87REbSpdY7A6aw1JfLkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1762302508; a=rsa-sha256; cv=none; b=HP5Sb5gmGrsmdiUtFT/z24HZp+WP9cmOukVR3cShkkulrAlyrJpDucfSdIYYivemmWSiFs 8rAwZDykkrCXvuPjES2oivQzZlDzV2IC9UhAZRc4XfcLsEfsjq9MLpbMoQ8EZWr3wwTv1D Vo302zlqJ5w5kcef6BFK12wM6uJTSS0U+AHOWvZjWIWIqP7STTkU/yu4IXLnF6MGUC71QK qgJzMC2hdpeE+7iH+pdbgE/PSJ2oKXW37hOHWY3mpSsMlD9Q6w5JsAINiKMy+RYvyJeAii 3d/qF9/IdPSkJ7jumTFMnkoaYbXFjwg551QJNVd7CB8rD3u8s5nsz0Da1bCj6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4d1R4r5pdPz4Fk for ; Wed, 05 Nov 2025 00:28:28 +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 5A50SSNp090540 for ; Wed, 5 Nov 2025 00:28:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5A50SSYj090539 for testing@FreeBSD.org; Wed, 5 Nov 2025 00:28:28 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: testing@FreeBSD.org Subject: [Bug 290575] sys/net/if_tun_test:transient test fails intermittently in CI Date: Wed, 05 Nov 2025 00:28:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: tests X-Bugzilla-Version: 16.0-CURRENT X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kevans@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: Testing List-Archive: https://lists.freebsd.org/archives/freebsd-testing List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-testing@freebsd.org Sender: owner-freebsd-testing@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D290575 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D96c1d8db39dfeea78ea3f27d67649252a= 39bbf2e commit 96c1d8db39dfeea78ea3f27d67649252a39bbf2e Author: Kyle Evans AuthorDate: 2025-11-05 00:28:02 +0000 Commit: Kyle Evans CommitDate: 2025-11-05 00:28:02 +0000 if_tuntap: defer transient destroy_dev() to a taskqueue We're in the dtor, so we can't destroy it now without deadlocking after recent changes to make destroy_dev() provide a barrier. However, we know there isn't any other dtor to run, so we can go ahead and clean up our state and just prevent a use-after-free if someone races to open the device while we're trying to destroy it. tunopen() now uses the net epoch to protect against softc release by a concurrent tun_destroy(). While we're here, allow a destroy operation to proceed if we caught a signal in cv_wait_sig() but tun_busy dropped to 0 while we were waiting to acquire the lock. This was more of an inherent design flaw, rather than a bug in the below-refed commit. PR: 290575 Fixes: 4dbe6628179d ("devfs: make destroy_dev() a release [...]") Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D53438 sys/net/if_tuntap.c | 63 ++++++++++++++++++++++++++++++++++++++++++++++++-= ---- 1 file changed, 57 insertions(+), 6 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=