From nobody Sun Aug 31 22:56:37 2025 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 4cFS6t1smMz65Fy2 for ; Sun, 31 Aug 2025 22:56:38 +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 4cFS6s4zYnz46HQ for ; Sun, 31 Aug 2025 22:56:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756680997; 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=qRR7oO3uwX/q/AjNtpa8R9hStVb/QJ9Iu4sLPmFF8so=; b=mijIZ940MufAYRQ6/w/EF1BeldCkAp3tNWlTqS68lkx2xWQcuQdaHr6rGgERZXD2TGgy8p BAN4Pb8rtm51+wsMo4jTnar52Z4US+xuEa1A6gb4aGssX+yUIen3yRgQDZKgZDtdYs/ToS lb7uuKjsm/7wg0SOt4BuyiUIlzoeNMax8du9tOSzn+y/OAZKROO9CCZJQ9tJIDh1Bovb3b L8K9le2PEUBkvNa7B1tIKAaqdM3ojyrnkgTypsn1O4nQiMFyPWLJoBkMhmmS+dWyTQFXrX /pG34ChiuAxe8OlYbSe78mwpVXbqu6+8J8dkiN//s+4Pl6RyczLFWzBZSJtZ/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756680997; 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=qRR7oO3uwX/q/AjNtpa8R9hStVb/QJ9Iu4sLPmFF8so=; b=BBFI1rjh2sTBgchpgnDGbRiNVsaJ6uHZbLu4TnuEap9tO1N66Vas5GIURjSDjKoaPQ0MXr rLMAMsexYr4uNRLmOo9Nje9Uqmj9jbBj3t9jQAu97lFHa+mE4ejRrod/8uwtf0Bh8FsOYv wZtFR6yUMpbf8dQvTEXn8QFCQhxVicBJRG0aIHeo85r4mhwmUq3Apqzy6GHQ/3GrQkpLe5 3Kwk1itHZoUgLONZ/ZDYhMiym7aV5s6oatvr4ibU/YvumMWPB8BgKhUU08dmuNfsMDNfd9 2bOl6EbqWbgdlhUr01G3ciAJ+ZJr6eVzMsE1a3KkyEbgowjgC1r432r6kjyf3Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1756680997; a=rsa-sha256; cv=none; b=xD43m2C81ecRBXBS/iCQVMDDR/r/0nc4YaV2124InIUtCb8s70HuqED7BtzneEyHuzErmt KvxF+ozza2Vr2gDaRvVMz7mZk49BWhUrIOEL83Ssa6r6DAZfQ1dQWJ136yREt4YDiAt3LL aU1KHjKuOukzRojCyEZsdnBtVCUtVtd9ZXDyw2pUuSP+cEeC0GoyEXYxoavivkmkTu9abx O9g0SArz5aumH1i+TXDunFGkfvM5n5TxttTP6huv77jWV3LlX5KSs+G9Pg4mbrZOEjnDNn PDqwNk2PjW3AHjLLghaMI4zMgzBPr2RxZUvOusWtkkw2ZAcUGyI9XF+RyTUg2A== 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 4cFS6s4HlMzZ8t for ; Sun, 31 Aug 2025 22:56:37 +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 57VMubbg082165 for ; Sun, 31 Aug 2025 22:56:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 57VMub73082164 for net@FreeBSD.org; Sun, 31 Aug 2025 22:56:37 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 289219] lock order reversal between vtnet1-rx0 (if_vtnet.c:2213) and in6_multi_sx (in6_mcast.c:1217) Date: Sun, 31 Aug 2025 22:56:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: p.mousavizadeh@protonmail.com 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 cc 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: 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=3D289219 Bug ID: 289219 Summary: lock order reversal between vtnet1-rx0 (if_vtnet.c:2213) and in6_multi_sx (in6_mcast.c:1217) Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: p.mousavizadeh@protonmail.com CC: net@FreeBSD.org I see this lock order reversal on 15-PRERELEASE (778bfd4e1033715de6cf21e2e2454bdea2a0f1ab) as a guest vm inside bhyve. Here is the log: ``` vtnet0: link state changed to UP vtnet1: link state changed to UP Invoking IPv6 network device address event may sleep with the following non-sleepable locks held: exclusive sleep mutex vtnet1-rx0 (vtnet1-rx0) r =3D 0 (0xfffff80003680480) = locked @ /usr/src/sys/dev/virtio/network/if_vtnet.c:2213 stack backtrace: #0 0xffffffff80bff62c at witness_debugger+0x6c #1 0xffffffff80c00840 at witness_warn+0x430 #2 0xffffffff80dc7c97 at in6_update_ifa+0xc97 #3 0xffffffff80df45b0 at in6_ifadd+0x1e0 #4 0xffffffff80df0c83 at nd6_ra_input+0x1023 #5 0xffffffff80dc1986 at icmp6_input+0x5b6 #6 0xffffffff80ddb3a8 at ip6_input+0xc98 #7 0xffffffff80cf0ea4 at netisr_dispatch_src+0xb4 #8 0xffffffff80cd319a at ether_demux+0x16a #9 0xffffffff80cd483e at ether_nh_input+0x3ce #10 0xffffffff80cf0ea4 at netisr_dispatch_src+0xb4 #11 0xffffffff80cd35f5 at ether_input+0xd5 #12 0xffffffff809a40ca at vtnet_rxq_eof+0x74a #13 0xffffffff809a38cc at vtnet_rx_vq_process+0x9c #14 0xffffffff80b3d326 at ithread_loop+0x266 #15 0xffffffff80b39602 at fork_exit+0x82 #16 0xffffffff810abd9e at fork_trampoline+0xe lock order reversal: (sleepable after non-sleepable) 1st 0xfffff80003680480 vtnet1-rx0 (vtnet1-rx0, sleep mutex) @ /usr/src/sys/dev/virtio/network/if_vtnet.c:2213 2nd 0xffffffff81edd170 in6_multi_sx (in6_multi_sx, sx) @ /usr/src/sys/netinet6/in6_mcast.c:1217 lock order vtnet1-rx0 -> in6_multi_sx attempted at: #0 0xffffffff80bff201 at witness_checkorder+0xbe1 #1 0xffffffff80b925a0 at _sx_xlock+0x60 #2 0xffffffff80dcffe1 at in6_joingroup+0x31 #3 0xffffffff80dc805a at in6_update_ifa+0x105a #4 0xffffffff80df45b0 at in6_ifadd+0x1e0 #5 0xffffffff80df0c83 at nd6_ra_input+0x1023 #6 0xffffffff80dc1986 at icmp6_input+0x5b6 #7 0xffffffff80ddb3a8 at ip6_input+0xc98 #8 0xffffffff80cf0ea4 at netisr_dispatch_src+0xb4 #9 0xffffffff80cd319a at ether_demux+0x16a #10 0xffffffff80cd483e at ether_nh_input+0x3ce #11 0xffffffff80cf0ea4 at netisr_dispatch_src+0xb4 #12 0xffffffff80cd35f5 at ether_input+0xd5 #13 0xffffffff809a40ca at vtnet_rxq_eof+0x74a #14 0xffffffff809a38cc at vtnet_rx_vq_process+0x9c #15 0xffffffff80b3d326 at ithread_loop+0x266 #16 0xffffffff80b39602 at fork_exit+0x82 #17 0xffffffff810abd9e at fork_trampoline+0xe ``` With the configuration below (especially accept_rtadv), it happens immediat= ely after boot: ipv6_activate_all_interfaces=3D"YES" ifconfig_DEFAULT=3D"inet6 accept_rtadv" ifconfig_vtnet0_ipv6=3D"inet6 fdb5:c59b:114e::a" --=20 You are receiving this mail because: You are on the CC list for the bug.=