From nobody Sun Aug 31 22:56:37 2025 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 4cFS6t1xGGz65G7s 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 4cFS6s5c0Cz46C2 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=+YSu9gbZbpjjwyh7RfQm2eKslZAYZNArxMHLRpvEV18=; b=NCEm4igCcPnYe00IaSyubsnRR3H6kHHuHp8novoIid6JtYJ519awEsQW6TSytVh0klWojq V2KiyExkeV72LbDx6KdMFccLDqbzgU6lhwdwyHgjYKGVDzmgKedjrqxBAWTcSl6qeknnbv JLcbbFunZXUYcSXWrSg1qyF9OmZxWBC5wByK9iLcP3WMPiFvHIkVEghpQtoZ8oxynvik5g UpEb6ACC+Lu9yMGFBXn0s0rUDoPEvJsEzL9d4+pOfqV8B+VPHUJyUfmz8G+emDjvEtm7ss 2+Z7s9QGDS31P342AjUqeOus59BOYsm2IQiKqI2d9hCWI0Gb/RCn/oze9Mu2DQ== 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=+YSu9gbZbpjjwyh7RfQm2eKslZAYZNArxMHLRpvEV18=; b=qW5ygh+z4qyGv6KbIbV0Vqr/PoCfjgJBgggVcMJ2iAGxLdvaiR9hvuUI6jvj22M91tz+3o KI1T+p33CwnuSu6U/8V6WaBkyc4L8G8xeDykEMrN8y2sf3BfUKE160Ezu2kLQyp8IJ52Re BTg8VgLUkqGROICrf6qiUcwVc2t1nM59TOO66or1152n8zDa9FlUT/Fepb/UcK923/ZZws wM9AUb39p1K0qmOb4DIvlTeI4fvsf+ogJYbCKL9PIHrQy3tYV0TE3/ZYb6Mxjbx5UH5CR6 PAriZ1kTjlY+k0rNGmcoaXzLjesiAk/LFhabKqPkrHnFI3sQkwYcT/JI4m4oGg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1756680997; a=rsa-sha256; cv=none; b=A7VTWJ9wXqhJXXtPzzklg8k+fNCVeuEnbydvVKyOi10wfoRUnP2XmB6GzdwkMVfCF28Qhf p0nDLn9m+uAWTOukIQItPaAZgrY+tBt2dGcyTb1W2EJaqMGADRkdvJmNKX57LMORpPDZkR 6SkHjgQLYJ7CwF6L27I6bOV4+exupmTMs1JfA+DMSEedIIbLs2L7lSSrfWEDJi4wsleioR RR7+Fp59Y0HhUyeu1T/uWkS7DQenBlvw8U57tGe3e+U+JtMKgs/i2iplahncPclD3yBA/h 78vi3DcxSR62rCJZk9CxmmooYbCBnm5ZQ5VVim7DfeGUddxx2te3VgIjv2V39A== 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 4cFS6s4xYRzYPj 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 57VMubTg082169 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 57VMubnW082168 for bugs@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: bugs@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: AssignedTo 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: 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 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 the assignee for the bug.=