From owner-freebsd-net@freebsd.org Tue Dec 8 06:33:28 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1BD584739DC for ; Tue, 8 Dec 2020 06:33:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4Cqr3X05ppz4t9V for ; Tue, 8 Dec 2020 06:33:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 018414738E8; Tue, 8 Dec 2020 06:33:28 +0000 (UTC) Delivered-To: net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 014A84738E7 for ; Tue, 8 Dec 2020 06:33:28 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cqr3W6Xwfz4tLZ for ; Tue, 8 Dec 2020 06:33:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 CA5BC78F0 for ; Tue, 8 Dec 2020 06:33:27 +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 0B86XR9w014137 for ; Tue, 8 Dec 2020 06:33:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0B86XRS3014136 for net@FreeBSD.org; Tue, 8 Dec 2020 06:33:27 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 240609] iflib: Panic with INVARIANTS: sleeping in an epoch section (12.1-pre-QA) (vlan + lagg involved) Date: Tue, 08 Dec 2020 06:33:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-STABLE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: afedorov@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: glebius@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: cc 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 MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2020 06:33:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240609 Aleksandr Fedorov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |afedorov@FreeBSD.org --- Comment #7 from Aleksandr Fedorov --- Hi, the panic is still here. It's easily reproduced using the bhyve + e1000 device emulation. # sh /usr/share/examples/bhyve/vmrun.sh -c 2 -m 1024M -n e1000 -t tap0 -t t= ap1 -d head.img freebsd-head root@vm-13:~ # ifconfig em0 up root@vm-13:~ # ifconfig em1 up root@vm-13:~ # ifconfig lagg create lagg0 root@vm-13:~ # ifconfig lagg0 laggproto lacp laggport em0 laggport em1 192.168.1.1 netmask 255.255.255.0 root@vm-13:~ # ifconfig vlan create vlan 1001 vlandev lagg0 panic: sleepq_add: td 0xfffffe00497c6e00 to sleep on wchan 0xffffffff815ac3= d1 with sleeping prohibited cpuid =3D 1 time =3D 1607417902 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0049b0a= 470 vpanic() at vpanic+0x181/frame 0xfffffe0049b0a4c0 panic() at panic+0x43/frame 0xfffffe0049b0a520 sleepq_add() at sleepq_add+0x359/frame 0xfffffe0049b0a570 _sleep() at _sleep+0x20c/frame 0xfffffe0049b0a620 pause_sbt() at pause_sbt+0xfe/frame 0xfffffe0049b0a650 e1000_reset_hw_82540() at e1000_reset_hw_82540+0x177/frame 0xfffffe0049b0a6= 80 em_if_stop() at em_if_stop+0x1b/frame 0xfffffe0049b0a6a0 iflib_stop() at iflib_stop+0xbd/frame 0xfffffe0049b0a6f0 iflib_vlan_register() at iflib_vlan_register+0xe8/frame 0xfffffe0049b0a730 lagg_register_vlan() at lagg_register_vlan+0x102/frame 0xfffffe0049b0a790 vlan_config() at vlan_config+0x553/frame 0xfffffe0049b0a7f0 vlan_clone_create() at vlan_clone_create+0x2a2/frame 0xfffffe0049b0a860 if_clone_createif() at if_clone_createif+0x4a/frame 0xfffffe0049b0a8b0 ifioctl() at ifioctl+0x783/frame 0xfffffe0049b0a980 kern_ioctl() at kern_ioctl+0x289/frame 0xfffffe0049b0a9f0 sys_ioctl() at sys_ioctl+0x12a/frame 0xfffffe0049b0aac0 amd64_syscall() at amd64_syscall+0x12e/frame 0xfffffe0049b0abf0 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0049b0abf0 --- syscall (54, FreeBSD ELF64, sys_ioctl), rip =3D 0x80042629a, rsp =3D 0x7fffffffe168, rbp =3D 0x7fffffffe180 --- KDB: enter: panic [ thread pid 891 tid 100072 ] Stopped at kdb_enter+0x37: movq $0,0x10aa456(%rip) db>=20 The patch from Gleb solves the issue. So, maybe commit it? --=20 You are receiving this mail because: You are on the CC list for the bug.=