From nobody Thu Oct 19 10:27:03 2023 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 4SB3ml5F0yz4xGKj for ; Thu, 19 Oct 2023 10:27:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SB3ml2M6Dz3X50 for ; Thu, 19 Oct 2023 10:27:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697711223; a=rsa-sha256; cv=none; b=ZjER5xmjWLDI0rdFgF3Pj59QVbvWCpkEzqGpssCBBngawXaAlivZgNauaiK6clXwFhuz2g neJRaOC3rVvQFr1I/0JGg5NPl3tyQ4T5MNxk5r3DdKRuK0M+1KrKaGHJsfY0R8pmVxQJcb Abg/1CYMQ4B+cduTL34XXI5egsQrZr2H6adzmKY4NJ6nriQYshMkScjF78XgLLYhlp9Quq ld4DF7nFOd/3eyA7WTnbasnrW27SWvhHwufEs2pcshZxrO4GfHZfp5LJmpRolnwe+uJEpV zIDt0jj+Ke66edw7TEHP7HhG2Oo0Xms5z5NVDGjXfPhRNqYUPUAevSM1qxVRwA== 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=1697711223; 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=C5kRJj+MMr/D2SrUtOOKbC3KxXBLNSAPb19CP04MN8U=; b=e8de5f9nTYuivygGQSRqc5Wu9UYwsZ3EG8y+aci8g83BFk1ulAzd7MZ4SAFUTRhkU2wErA nD6KULPxMyy8gRXLiz10S5P6CgdE/EnHQbzDmGn+mWZCSxYAvlPei87GpgGfzdb9mv8w4O S0EwmmM4IhXicnlwCB647OsHbocpg6U5WeFDbLAhO31Xz2h5PzhqO22dOe1xXD3d/uXLse TltnZjw5PZjieEiL5upYoKDALMMmV5OzLRL22fefwnTXqTpc1KrmY86IRIipurAGMhF6h1 cg9zyzbK1gFeKD79gxCfH9FNhsArBU2dG2sFpbXzYQl2zmzXI0tYSWVY6ZUGtA== 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 4SB3ml1Rn6zm10 for ; Thu, 19 Oct 2023 10:27:03 +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 39JAR3FD068055 for ; Thu, 19 Oct 2023 10:27:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39JAR3qZ068054 for bugs@FreeBSD.org; Thu, 19 Oct 2023 10:27:03 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 274588] lock order reversal updating vtnet IPv6 state Date: Thu, 19 Oct 2023 10:27:03 +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 Only Me X-Bugzilla-Who: jfc@mit.edu 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-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: 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=3D274588 Bug ID: 274588 Summary: lock order reversal updating vtnet IPv6 state Product: Base System Version: 15.0-CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: jfc@mit.edu Running CURRENT (c989957f28ef5b03f594265612e3437c1e826ed4) in bhyve on a 13.2-STABLE host I see the warnings below. It only happened once so far. My rc.conf contains ifconfig_vtnet0=3D"DHCP" ifconfig_vtnet0_ipv6=3D"inet6 accept_rtadv" vtnet0: link state changed to UP Invoking IPv6 network device address event may sleep with the following non-sleepable locks held: exclusive sleep mutex vtnet0-rx0 (vtnet0-rx0) r =3D 0 (0xfffff80005057480) = locked @ /usr/src/sys/dev/virtio/network/if_vtnet.c:2181 stack backtrace: #0 0xffffffff80b9ce65 at witness_debugger+0x65 #1 0xffffffff80b9dfa9 at witness_warn+0x3e9 #2 0xffffffff80d43d06 at in6_update_ifa+0xcb6 #3 0xffffffff80d6f7af at in6_ifadd+0x1ef #4 0xffffffff80d6beff at nd6_ra_input+0x100f #5 0xffffffff80d3e746 at icmp6_input+0x856 #6 0xffffffff80d56d85 at ip6_input+0xc95 #7 0xffffffff80c7b8cd at netisr_dispatch_src+0xad #8 0xffffffff80c5e48a at ether_demux+0x17a #9 0xffffffff80c5fa9a at ether_nh_input+0x39a #10 0xffffffff80c7b8cd at netisr_dispatch_src+0xad #11 0xffffffff80c5e8e9 at ether_input+0xd9 #12 0xffffffff80959b6e at vtnet_rxq_eof+0x73e #13 0xffffffff8095937c at vtnet_rx_vq_process+0x9c #14 0xffffffff80ae4416 at ithread_loop+0x266 #15 0xffffffff80ae0832 at fork_exit+0x82 #16 0xffffffff80fec85e at fork_trampoline+0xe lock order reversal: (sleepable after non-sleepable) 1st 0xfffff80005057480 vtnet0-rx0 (vtnet0-rx0, sleep mutex) @ /usr/src/sys/dev/virtio/network/if_vtnet.c:2181 2nd 0xffffffff81aaabb0 in6_multi_sx (in6_multi_sx, sx) @ /usr/src/sys/netinet6/in6_mcast.c:1217 lock order vtnet0-rx0 -> in6_multi_sx attempted at: #0 0xffffffff80b9ca2c at witness_checkorder+0xbac #1 0xffffffff80b358b0 at _sx_xlock+0x60 #2 0xffffffff80d4c411 at in6_joingroup+0x31 #3 0xffffffff80d440bf at in6_update_ifa+0x106f #4 0xffffffff80d6f7af at in6_ifadd+0x1ef #5 0xffffffff80d6beff at nd6_ra_input+0x100f #6 0xffffffff80d3e746 at icmp6_input+0x856 #7 0xffffffff80d56d85 at ip6_input+0xc95 #8 0xffffffff80c7b8cd at netisr_dispatch_src+0xad #9 0xffffffff80c5e48a at ether_demux+0x17a #10 0xffffffff80c5fa9a at ether_nh_input+0x39a #11 0xffffffff80c7b8cd at netisr_dispatch_src+0xad #12 0xffffffff80c5e8e9 at ether_input+0xd9 #13 0xffffffff80959b6e at vtnet_rxq_eof+0x73e #14 0xffffffff8095937c at vtnet_rx_vq_process+0x9c #15 0xffffffff80ae4416 at ithread_loop+0x266 #16 0xffffffff80ae0832 at fork_exit+0x82 #17 0xffffffff80fec85e at fork_trampoline+0xe --=20 You are receiving this mail because: You are the assignee for the bug.=