Date: Tue, 08 Dec 2020 06:33:25 +0000 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) Message-ID: <bug-240609-7501-uvjwazkY9o@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-240609-7501@https.bugs.freebsd.org/bugzilla/> References: <bug-240609-7501@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240609 Aleksandr Fedorov <afedorov@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |afedorov@FreeBSD.org --- Comment #7 from Aleksandr Fedorov <afedorov@FreeBSD.org> --- 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240609-7501-uvjwazkY9o>