From nobody Thu May 05 18:54:41 2022 X-Original-To: freebsd-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 E76411AC5696 for ; Thu, 5 May 2022 18:54:53 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KvNDD6FC9z4hgC for ; Thu, 5 May 2022 18:54:52 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 9E90A8D4A129 for ; Thu, 5 May 2022 18:54:44 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 3D51AE707C5 for ; Thu, 5 May 2022 18:54:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id Fr9VoE59xDxf for ; Thu, 5 May 2022 18:54:42 +0000 (UTC) Received: from nv.sbone.de (nv.sbone.de [IPv6:fde9:577b:c1a9:31::2013:138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 84174E707AE for ; Thu, 5 May 2022 18:54:42 +0000 (UTC) Date: Thu, 5 May 2022 18:54:41 +0000 (UTC) From: "Bjoern A. Zeeb" To: freebsd-net@FreeBSD.org Subject: vtnet may sleep with the following non-sleepable locks held Message-ID: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 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 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 4KvNDD6FC9z4hgC X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 2a01:4f8:13b:39f::9f:25 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net X-Spamd-Result: default: False [-1.58 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; NEURAL_HAM_MEDIUM(-0.62)[-0.622]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f8:13b:39f::9f:25]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.997]; DMARC_NA(0.00)[zabbadoz.net]; NEURAL_SPAM_SHORT(0.34)[0.336]; MLMMJ_DEST(0.00)[freebsd-net]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi, not sure if the problem is from f0d8d352c06ff or older or newer in fact. I see this when enabled IPv6 on vtnet on main with GENERIC and do a rtsol vtnet0: Invoking IPv6 network device address event may sleep with the following non-sleepable locks held: exclusive sleep mutex vtnet0-rx0 (vtnet0-rx0) r = 0 (0xfffff80001793480) locked @ /main_clean_for_test/sys/dev/virtio/network/if_vtnet.c:2198 stack backtrace: #0 0xffffffff80c80405 at witness_debugger+0x65 #1 0xffffffff80c8155a at witness_warn+0x3ea #2 0xffffffff80e2263d at in6_update_ifa+0xd7d #3 0xffffffff80e4db5d at in6_ifadd+0x1fd #4 0xffffffff80e4a0a8 at nd6_ra_input+0xfb8 #5 0xffffffff80e1d01b at icmp6_input+0x76b #6 0xffffffff80e351bf at ip6_input+0xc2f #7 0xffffffff80d5cd9f at netisr_dispatch_src+0xaf #8 0xffffffff80d3f03e at ether_demux+0x16e #9 0xffffffff80d406cc at ether_nh_input+0x3fc #10 0xffffffff80d5cd9f at netisr_dispatch_src+0xaf #11 0xffffffff80d3f509 at ether_input+0x99 #12 0xffffffff80a3d1c3 at vtnet_rxq_eof+0x763 #13 0xffffffff80a3c9b7 at vtnet_rx_vq_process+0x97 #14 0xffffffff80bc91a9 at ithread_loop+0x279 #15 0xffffffff80bc5840 at fork_exit+0x80 #16 0xffffffff810c3cae at fork_trampoline+0xe lock order reversal: (sleepable after non-sleepable) 1st 0xfffff80001793480 vtnet0-rx0 (vtnet0-rx0, sleep mutex) @ /main_clean_for_test/sys/dev/virtio/network/if_vtnet.c:2198 2nd 0xffffffff81fb1ec8 in6_multi_sx (in6_multi_sx, sx) @ /main_clean_for_test/sys/netinet6/in6_mcast.c:1193 lock order vtnet0-rx0 -> in6_multi_sx attempted at: #0 0xffffffff80c7ffcd at witness_checkorder+0xbdd #1 0xffffffff80c19093 at _sx_xlock+0x63 #2 0xffffffff80e2b451 at in6_joingroup+0x31 #3 0xffffffff80e229d8 at in6_update_ifa+0x1118 #4 0xffffffff80e4db5d at in6_ifadd+0x1fd #5 0xffffffff80e4a0a8 at nd6_ra_input+0xfb8 #6 0xffffffff80e1d01b at icmp6_input+0x76b #7 0xffffffff80e351bf at ip6_input+0xc2f #8 0xffffffff80d5cd9f at netisr_dispatch_src+0xaf #9 0xffffffff80d3f03e at ether_demux+0x16e #10 0xffffffff80d406cc at ether_nh_input+0x3fc #11 0xffffffff80d5cd9f at netisr_dispatch_src+0xaf #12 0xffffffff80d3f509 at ether_input+0x99 #13 0xffffffff80a3d1c3 at vtnet_rxq_eof+0x763 #14 0xffffffff80a3c9b7 at vtnet_rx_vq_process+0x97 #15 0xffffffff80bc91a9 at ithread_loop+0x279 #16 0xffffffff80bc5840 at fork_exit+0x80 #17 0xffffffff810c3cae at fork_trampoline+0xe -- Bjoern A. Zeeb r15:7