panic: kernel diagnostic assertion "nlevel >= IPL_NONE" failed: file "/syzkaller/managers/multicore/kernel/sys/arch/amd64/amd64/intr.c", line 775 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *431484 30577 0 0 0x4000000 1 syz-executor 455085 14148 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830f2722) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a3cce,ffffffff83003332,307,ffffffff8305c134) at __assert+0x29 splraise(deadbeef) at splraise+0xbd sys/arch/amd64/amd64/intr.c:775 mtx_enter_try(ffff8000012fc208) at mtx_enter_try+0x97 sys/kern/kern_lock.c:266 mtx_enter(ffff8000012fc208) at mtx_enter+0x60 sys/kern/kern_lock.c:239 klist_mutex_lock(ffff8000012fc208) at klist_mutex_lock+0x32 sys/kern/kern_event.c:2352 klist_invalidate(ffff8000012fc2c8) at klist_invalidate+0xef klist_lock sys/kern/kern_event.c:2317 [inline] klist_invalidate(ffff8000012fc2c8) at klist_invalidate+0xef sys/kern/kern_event.c:2283 bpfsdetach(ffff8000012ba8c0) at bpfsdetach+0x12f sys/net/bpf.c:1800 bpfdetach(ffff8000012b2000) at bpfdetach+0xa6 if_detach(ffff8000012b2000) at if_detach+0x14f sys/net/if.c:1193 tun_clone_destroy(ffff8000012b2000) at tun_clone_destroy+0x2d6 sys/net/if_tun.c:338 if_clone_destroy(ffff8000347951f0) at if_clone_destroy+0x1d7 sys/net/if.c:1382 ifioctl(ffff800010fd4fe0,80206979,ffff8000347951f0,ffff80003619cf58) at ifioctl+0x5c5 end trace frame: 0xffff8000347952f0, count: 0 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: kernel diagnostic assertion "nlevel >= IPL_NONE" failed: file "/syzkaller/managers/multicore/kernel/sys/arch/amd64/amd64/intr.c", line 775 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830f2722) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a3cce,ffffffff83003332,307,ffffffff8305c134) at __assert+0x29 splraise(deadbeef) at splraise+0xbd sys/arch/amd64/amd64/intr.c:775 mtx_enter_try(ffff8000012fc208) at mtx_enter_try+0x97 sys/kern/kern_lock.c:266 mtx_enter(ffff8000012fc208) at mtx_enter+0x60 sys/kern/kern_lock.c:239 klist_mutex_lock(ffff8000012fc208) at klist_mutex_lock+0x32 sys/kern/kern_event.c:2352 klist_invalidate(ffff8000012fc2c8) at klist_invalidate+0xef klist_lock sys/kern/kern_event.c:2317 [inline] klist_invalidate(ffff8000012fc2c8) at klist_invalidate+0xef sys/kern/kern_event.c:2283 bpfsdetach(ffff8000012ba8c0) at bpfsdetach+0x12f sys/net/bpf.c:1800 bpfdetach(ffff8000012b2000) at bpfdetach+0xa6 if_detach(ffff8000012b2000) at if_detach+0x14f sys/net/if.c:1193 tun_clone_destroy(ffff8000012b2000) at tun_clone_destroy+0x2d6 sys/net/if_tun.c:338 if_clone_destroy(ffff8000347951f0) at if_clone_destroy+0x1d7 sys/net/if.c:1382 ifioctl(ffff800010fd4fe0,80206979,ffff8000347951f0,ffff80003619cf58) at ifioctl+0x5c5 sys_ioctl(ffff80003619cf58,ffff8000347953d0,ffff800034795320) at sys_ioctl+0x67c syscall(ffff8000347953d0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000347953d0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc3941433010, count: -17 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800034794d50 rbx 0xffff800029b7cdbf rdx 0xffff8000012a2100 rcx 0xffff80003619cf58 rax 0xffff800029b7bff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x7ff913a1e0743fbe r11 0xd211a1b937972d54 r12 0xffff800029b7cbc0 r13 0 r14 0 r15 0x1 rip 0xffffffff81d0d485 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800034794d40 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=431484 pid=30577 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003619c538,0xffff8000ffff76f8 process=0xffff800037280918 user=0xffff800034790000, vmspace=0xfffffd806bd338e8 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 82622 347103 5201 0 2 0 syz-executor 82622 117257 5201 0 3 0x4000080 fsleep syz-executor 32316 380118 55673 60929 2 0x10 syz-executor 32316 391176 55673 60929 3 0x4000090 fsleep syz-executor 40615 85098 97510 0 2 0 syz-executor 40615 438934 97510 0 2 0x4000080 syz-executor 37786 496274 84213 0 3 0x1 inode syz-executor 37786 361171 84213 0 2 0x4000001 syz-executor 37786 64059 84213 0 3 0x4000080 fsleep syz-executor 30577 340973 80066 0 3 0x1 inode syz-executor *30577 431484 80066 0 7 0x4000000 syz-executor 30577 277834 80066 0 3 0x4000080 fsleep syz-executor 87067 392778 26706 0 3 0x1 inode syz-executor 87067 394244 26706 0 3 0x4000080 rest syz-executor 36852 175329 0 0 3 0x14280 nfsidl nfsio 85676 485340 0 0 3 0x14280 nfsidl nfsio 69558 466898 0 0 3 0x14280 nfsidl nfsio 3159 36693 0 0 3 0x14280 nfsidl nfsio 6134 115751 0 0 3 0x14280 nfsidl nfsio 42487 517119 0 0 3 0x14280 nfsidl nfsio 23890 190440 0 0 3 0x14280 nfsidl nfsio 26964 28238 0 0 3 0x14280 nfsidl nfsio 56436 427416 0 0 3 0x14280 nfsidl nfsio 83904 508806 0 0 3 0x14280 nfsidl nfsio 94784 463265 0 0 3 0x14280 nfsidl nfsio 68426 450310 0 0 3 0x14280 nfsidl nfsio 34817 68209 0 0 3 0x14280 nfsidl nfsio 2601 293396 0 0 3 0x14280 nfsidl nfsio 40503 265117 0 0 3 0x14280 nfsidl nfsio 23670 208406 0 0 3 0x14280 nfsidl nfsio 94161 205819 0 0 3 0x14280 nfsidl nfsio 70521 106077 0 0 3 0x14280 nfsidl nfsio 85821 59647 0 0 3 0x14280 nfsidl nfsio 60151 202145 0 0 3 0x14280 nfsidl nfsio 18583 30135 0 0 3 0x14200 acct acct 94836 412595 0 0 3 0x14200 bored sosplice 84213 489777 14712 0 3 0x3 inode syz-executor 26706 438758 14712 0 3 0x3 inode syz-executor 55673 196782 14712 0 3 0x3 inode syz-executor 97510 206582 14712 0 3 0x3 inode syz-executor 91272 255665 14712 0 3 0x3 inode syz-executor 80066 279482 14712 0 3 0x3 inode syz-executor 92700 220064 14712 0 3 0x3 inode syz-executor 5201 47320 14712 0 3 0x3 inode syz-executor 14712 23896 44252 0 3 0x82 kqread syz-executor 44252 159657 34888 0 3 0x10008a sigsusp ksh 34888 417775 67016 0 3 0x98 kqread sshd-session 67016 51912 16057 0 3 0x92 kqread sshd-session 90978 429844 1 0 3 0x100083 ttyin getty 16057 431176 1 0 3 0x88 kqread sshd 29750 166421 94551 74 3 0x1100092 bpf pflogd 94551 425092 1 0 3 0x80 sbwait pflogd 17892 478967 32626 73 3 0x1100090 kqread syslogd 32626 490678 1 0 3 0x100082 sbwait syslogd 72605 283358 1 0 3 0x100080 kqread resolvd 39059 8167 98743 77 3 0x100092 kqread dhcpleased 89294 277583 98743 77 3 0x100092 kqread dhcpleased 98743 315987 1 0 3 0x80 kqread dhcpleased 13903 405627 0 0 3 0x14200 bored smr 24699 121883 0 0 2 0x14200 zerothread 22977 105415 0 0 3 0x14200 aiodoned aiodoned 27734 240632 0 0 3 0x14200 syncer update 34216 410323 0 0 3 0x14200 cleaner cleaner 14148 455085 0 0 7 0x14200 reaper 78825 457605 0 0 3 0x14200 pgdaemon pagedaemon 71763 161873 0 0 3 0x14200 bored viomb 46376 349877 0 0 3 0x40014200 acpi0 acpi0 61598 241479 0 0 3 0x40014200 idle1 28921 370310 0 0 3 0x14200 bored softnet3 37513 253761 0 0 3 0x14200 bored softnet2 8016 120069 0 0 3 0x14200 bored softnet1 60222 475298 0 0 3 0x14200 bored softnet0 52034 456731 0 0 3 0x14200 bored systqmp 26818 189481 0 0 3 0x14200 bored systq 91479 405715 0 0 3 0x14200 tmoslp softclockmp 22026 348586 0 0 3 0x40014200 tmoslp softclock 63142 110646 0 0 3 0x40014200 idle0 1 523287 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 37786 (syz-executor) thread 0xffff80003619c7c0 (361171) exclusive rrwlock inode r = 0 (0xfffffd8061823e78) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #5 vget+0x2bd sys/kern/vfs_subr.c:678 #6 ktrwriteraw+0x172 sys/kern/kern_ktrace.c:679 #7 ktrstruct+0x19a sys/kern/kern_ktrace.c:308 #8 sys_kevent+0x389 sys/kern/kern_event.c:1137 #9 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #9 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #10 Xsyscall+0x128 Process 30577 (syz-executor) thread 0xffff80003619cf58 (431484) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff835a85b8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 __mp_acquire_count+0x58 #2 mi_switch+0x4b7 sys/kern/sched_bsd.c:441 #3 sleep_finish+0x2e7 sys/kern/kern_synch.c:425 #4 rw_enter+0x348 sys/kern/kern_rwlock.c:285 #5 lf_purgelocks+0x2f sys/kern/vfs_lockf.c:731 #6 vgonel+0x497 sys/kern/vfs_subr.c:1208 #7 vop_generic_revoke+0x3e6 sys/kern/vfs_default.c:128 #8 VOP_REVOKE+0x65 sys/kern/vfs_vops.c:291 #9 vdevgone+0x17b #10 bpfsdetach+0x117 sys/net/bpf.c:1802 #11 bpfdetach+0xa6 #12 if_detach+0x14f sys/net/if.c:1193 #13 tun_clone_destroy+0x2d6 sys/net/if_tun.c:338 #14 if_clone_destroy+0x1d7 sys/net/if.c:1382 #15 ifioctl+0x5c5 #16 sys_ioctl+0x67c #17 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #17 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #18 Xsyscall+0x128 exclusive rwlock clonelk r = 0 (0xffffffff834793c0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 if_clone_destroy+0x67 #2 ifioctl+0x5c5 #3 sys_ioctl+0x67c #4 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #4 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #5 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10196 11177K 11322K 166960K 11500 0 pcb 17 13K 14K 166960K 127 0 rtable 236 6K 6K 166960K 428 0 pf 34 17K 19K 166960K 59 0 ifaddr 43 7K 8K 166960K 54 0 ifgroup 55 2K 2K 166960K 75 0 sysctl 2 0K 0K 166960K 2 0 counters 64 36K 36K 166960K 74 0 ioctlops 0 0K 4K 166960K 1494 0 iov 0 0K 16K 166960K 46 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1396 88K 88K 166960K 1539 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 10 0K 0K 166960K 10 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 16 57K 97K 166960K 319 0 sigio 0 0K 0K 166960K 6 0 proc 72 91K 152K 166960K 542 0 subproc 104 6K 6K 166960K 104 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 22 0 in_multi 99 7K 7K 166960K 111 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 390 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 221 72K 74K 166960K 4704 0 UVM aobj 11 2K 2K 166960K 12 0 pinsyscall 41 82K 104K 166960K 1408 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 17 0 NDP 12 0K 1K 166960K 35 0 temp 41 6819K 6930K 166960K 6072 0 kqueue 14 22K 28K 166960K 67 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 47 0 44 1 0 1 1 0 8 0 rtentry 112 116 0 5 4 0 4 4 0 8 0 unpcb 144 133 0 114 2 1 1 2 0 8 0 syncache 336 7 0 7 3 2 1 1 0 8 1 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 157 0 151 8 0 8 8 0 8 7 arp 120 20 0 1 1 0 1 1 0 8 0 inpcb 336 427 0 417 9 2 7 7 0 8 5 nd6 136 25 0 0 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1168 1 0 1 1 0 1 1 0 8 1 pffrag 232 4 0 1 2 1 1 1 0 482 0 pffrnode 88 4 0 1 2 1 1 1 0 8 0 pffrent 40 48 0 45 2 1 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 40 0 1 1 0 1 1 0 8 0 pfstkey 128 40 0 1 2 0 2 2 0 8 0 pfstate 376 40 0 1 4 0 4 4 0 8 0 pfrule 1344 22 0 16 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 456 0 2 29 0 29 29 0 8 0 art_table 32 457 0 2 4 0 4 4 0 8 0 art_node 16 115 0 16 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semapl 112 8 0 0 1 0 1 1 0 8 0 shmpl 112 9 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1869 0 365 95 0 95 95 0 8 0 ffsino 272 1869 0 365 102 1 101 102 0 8 0 nchpl 144 2339 0 655 63 0 63 63 0 8 0 uvmvnodes 80 2085 0 0 43 0 43 43 0 8 0 vnodes 216 2085 0 0 116 0 116 116 0 8 0 namei 1024 7572 0 7572 3 2 1 2 0 8 1 percpumem 16 51 0 5 1 0 1 1 0 8 0 kstatmem 264 34 0 10 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 0 1 1 0 8 1 scxspl 216 7008 0 7008 10 2 8 8 1 8 8 plimitpl 152 45 0 28 1 0 1 1 0 8 0 sigapl 424 644 0 572 11 2 9 9 0 8 0 futexpl 64 3006 0 3002 1 0 1 1 0 8 0 knotepl 120 550 0 0 17 0 17 17 0 8 0 kqueuepl 216 86 0 76 1 0 1 1 0 8 0 pipepl 320 139 0 112 3 0 3 3 0 8 0 fdescpl 496 604 0 574 6 1 5 6 0 8 1 filepl 152 3035 0 2783 19 6 13 16 0 8 3 lockfpl 104 73 0 71 1 0 1 1 0 8 0 lockfspl 48 30 0 28 1 0 1 1 0 8 0 sessionpl 144 25 0 16 1 0 1 1 0 8 0 pgrppl 48 38 0 21 1 0 1 1 0 8 0 ucredpl 104 213 0 197 1 0 1 1 0 8 0 zombiepl 144 679 0 677 1 0 1 1 0 8 0 processpl 1160 644 0 572 7 1 6 6 0 8 0 procpl 648 1001 0 921 9 1 8 8 0 8 0 srpgc 96 2 0 2 1 0 1 1 0 8 1 sosppl 168 5 0 4 2 1 1 1 0 8 0 sockpl 664 608 0 576 11 2 9 9 0 8 5 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 147 0 0 19 0 19 19 0 8 0 mcl2k 2048 17 0 0 3 0 3 3 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 279 0 0 17 0 17 17 0 8 0 bufpl 280 2559 0 99 176 0 176 176 0 8 0 anonpl 24 186213 0 182761 48 18 30 46 0 185 0 amapchunkpl 152 15361 0 14911 24 1 23 23 0 158 3 amappl16 200 5411 0 5382 16 13 3 14 0 8 0 amappl15 192 35 0 35 1 1 0 1 0 8 0 amappl14 184 141 0 128 1 0 1 1 0 8 0 amappl13 176 53 0 53 1 1 0 1 0 8 0 amappl12 168 1248 0 1218 4 1 3 3 0 8 0 amappl11 160 62 0 48 1 0 1 1 0 8 0 amappl10 152 9 0 9 1 1 0 1 0 8 0 amappl9 144 211 0 211 1 1 0 1 0 8 0 amappl8 136 17 0 15 1 0 1 1 0 8 0 amappl7 128 117 0 105 1 0 1 1 0 8 0 amappl6 120 169 0 167 1 0 1 1 0 8 0 amappl5 112 166 0 155 1 0 1 1 0 8 0 amappl4 104 325 0 306 1 0 1 1 0 8 0 amappl3 96 2818 0 2731 3 0 3 3 0 8 0 amappl2 88 903 0 820 3 0 3 3 0 8 0 amappl1 80 8796 0 8230 15 0 15 15 0 8 0 amappl 88 4302 0 4143 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 11 0 1 1 0 1 1 0 8 0 uaddrrnd 24 604 0 574 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 604 0 574 1 0 1 1 0 8 0 vmmpekpl 168 6851 0 6812 3 0 3 3 0 8 0 vmmpepl 168 48119 0 46319 106 11 95 96 0 357 10 vmsppl 448 603 0 574 6 2 4 5 0 8 0 rwobjpl 56 20810 0 17800 44 1 43 43 0 8 0 pdppl 4096 1215 0 1148 113 42 71 87 0 8 4 pvpl 32 13808 0 0 112 0 112 112 0 265 0 pmappl 248 603 0 574 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 417 0 53 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83413ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff835a83b0) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835a83b0) at __mp_lock+0x199 sys/kern/kern_lock.c:144 reaper(ffff800029fd91c0) at reaper+0x24b sys/kern/kern_exit.c:478 end trace frame: 0x0, count: 10 ddb{0}> trace x86_ipi_db(ffffffff83413ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff835a83b0) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835a83b0) at __mp_lock+0x199 sys/kern/kern_lock.c:144 reaper(ffff800029fd91c0) at reaper+0x24b sys/kern/kern_exit.c:478 end trace frame: 0x0, count: -5 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830f2722) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a3cce,ffffffff83003332,307,ffffffff8305c134) at __assert+0x29 splraise(deadbeef) at splraise+0xbd sys/arch/amd64/amd64/intr.c:775 mtx_enter_try(ffff8000012fc208) at mtx_enter_try+0x97 sys/kern/kern_lock.c:266 mtx_enter(ffff8000012fc208) at mtx_enter+0x60 sys/kern/kern_lock.c:239 klist_mutex_lock(ffff8000012fc208) at klist_mutex_lock+0x32 sys/kern/kern_event.c:2352 klist_invalidate(ffff8000012fc2c8) at klist_invalidate+0xef klist_lock sys/kern/kern_event.c:2317 [inline] klist_invalidate(ffff8000012fc2c8) at klist_invalidate+0xef sys/kern/kern_event.c:2283 bpfsdetach(ffff8000012ba8c0) at bpfsdetach+0x12f sys/net/bpf.c:1800 bpfdetach(ffff8000012b2000) at bpfdetach+0xa6 if_detach(ffff8000012b2000) at if_detach+0x14f sys/net/if.c:1193 tun_clone_destroy(ffff8000012b2000) at tun_clone_destroy+0x2d6 sys/net/if_tun.c:338 if_clone_destroy(ffff8000347951f0) at if_clone_destroy+0x1d7 sys/net/if.c:1382 ifioctl(ffff800010fd4fe0,80206979,ffff8000347951f0,ffff80003619cf58) at ifioctl+0x5c5 end trace frame: 0xffff8000347952f0, count: 0 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830f2722) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a3cce,ffffffff83003332,307,ffffffff8305c134) at __assert+0x29 splraise(deadbeef) at splraise+0xbd sys/arch/amd64/amd64/intr.c:775 mtx_enter_try(ffff8000012fc208) at mtx_enter_try+0x97 sys/kern/kern_lock.c:266 mtx_enter(ffff8000012fc208) at mtx_enter+0x60 sys/kern/kern_lock.c:239 klist_mutex_lock(ffff8000012fc208) at klist_mutex_lock+0x32 sys/kern/kern_event.c:2352 klist_invalidate(ffff8000012fc2c8) at klist_invalidate+0xef klist_lock sys/kern/kern_event.c:2317 [inline] klist_invalidate(ffff8000012fc2c8) at klist_invalidate+0xef sys/kern/kern_event.c:2283 bpfsdetach(ffff8000012ba8c0) at bpfsdetach+0x12f sys/net/bpf.c:1800 bpfdetach(ffff8000012b2000) at bpfdetach+0xa6 if_detach(ffff8000012b2000) at if_detach+0x14f sys/net/if.c:1193 tun_clone_destroy(ffff8000012b2000) at tun_clone_destroy+0x2d6 sys/net/if_tun.c:338 if_clone_destroy(ffff8000347951f0) at if_clone_destroy+0x1d7 sys/net/if.c:1382 ifioctl(ffff800010fd4fe0,80206979,ffff8000347951f0,ffff80003619cf58) at ifioctl+0x5c5 sys_ioctl(ffff80003619cf58,ffff8000347953d0,ffff800034795320) at sys_ioctl+0x67c syscall(ffff8000347953d0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000347953d0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc3941433010, count: -17