From nobody Fri Oct 18 13:25:43 2024 X-Original-To: net@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 4XVQSS4BdGz5ZDJX for ; Fri, 18 Oct 2024 13:25:44 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XVQSS0zgQz4PD5 for ; Fri, 18 Oct 2024 13:25:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729257944; 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=Xlp3nwHsiFlsGfQWhf4vz/vaBUTMVfrKQixduNPDZp0=; b=xr0fdI3LLSQ//zbpLSNEHTow/HfurfkAuctXOCyr/mKUQli2jPw2P2GMA3DOV90aKxVatw MSf6ipXkXGM9RIzzF55Fm3HhzW9kcGEQxqI/3UexTBRpwopRvskFODIpwQH9QhoUF5ncRF nj7RtEblhgKDZeCNGG+4IJVOT4ZZQMtIkrKYfi1cfC7Y9FSw7KJbNUFO3+C6wUR8CG93Am gjNyXvggdwxaU1J7AZhVlZ+ZHlGQiaDxgdzpl1bSR+z4hNvasK2JbbwXog+Ws+sSOHdsGx +ljCUhK5j+2H/8A/CjPHRGdyQD9DeHmy5PkBpDXjftzzFxwFu+d9JTSeoo2/zQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729257944; a=rsa-sha256; cv=none; b=t298WegFxtM9pdRtru5V8t3quNowAZkPGEu7TllW1QsHIl48MNXOJy54jAn6BM4T5IOf/K Lm7pnwZhFBM2w2clTMfusfBr9uOQP28b1ZmhtoOtgqonCcAWDa+GeWrSMMkeUSdt5h7WEb dTHxdm/HX8R5Eb1tzzYxB760EUtaZim2IcR7W73dGkfkwxwgj1pCPY8IIA6v8YzkkRKPiP b2VXVs3XfZI4dishQtneYjI7Cxozn1lhM1tHib5/ixfGekBlEqusaB4wXE2UT9q+IRk9GE kTrI+PSZl+BItbRILMdvjZJb1cjyBA9zz+7hUHrDpXDtpl7d1YvykKtESlnMfA== 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 4XVQSS0Tdvzb6S for ; Fri, 18 Oct 2024 13:25:44 +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 49IDPhLe076963 for ; Fri, 18 Oct 2024 13:25:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49IDPhCT076962 for net@FreeBSD.org; Fri, 18 Oct 2024 13:25:43 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: net@FreeBSD.org Subject: [Bug 282168] vtnet(4): panic in if_attach_internal() when kldloading Date: Fri, 18 Oct 2024 13:25:43 +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-CURRENT X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@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: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282168 --- Comment #6 from Mark Johnston --- This is due to a VNET bug. When a network driver attaches, it needs to have the current VNET set, e.g., because if_attach_internal()->if_addgroup() accesses the VNET-global variable V_ifg_head. Normally this happens in device_probe_and_attach(), which is how drivers get attached if they're compiled into the kernel, but we're taking a different path here. I posted a patch here which fixes the problem for me: https://reviews.freebsd.org/D47174 --=20 You are receiving this mail because: You are the assignee for the bug.=