witness: lock order reversal: 1st 0xffff8000299dee00 &cq->cq_mtx (&cq->cq_mtx) 2nd 0xffffffff83925508 &sched_lock (&sched_lock) lock order [1] &cq->cq_mtx (&cq->cq_mtx) -> [2] &sched_lock (&sched_lock) #0 mtx_enter+0x4a sys/kern/kern_lock.c:254 #1 sleep_setup+0xc6 sys/kern/kern_synch.c:302 #2 msleep_nsec+0x119 sys/kern/kern_synch.c:217 #3 dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:576 #4 dtclose+0x105 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] #4 dtclose+0x105 sys/dev/dt/dt_dev.c:232 #5 spec_close+0x45f sys/kern/spec_vnops.c:-1 #6 VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 #7 vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] #7 vn_closefile+0x12b sys/kern/vfs_vnops.c:615 #8 fdrop+0x126 sys/kern/kern_descrip.c:1267 #9 closef+0x192 sys/kern/kern_descrip.c:1251 #10 fdfree+0x116 sys/kern/kern_descrip.c:1182 #11 exit1+0x59c sys/kern/kern_exit.c:215 #12 sys_exit+0x1a sys/kern/kern_exit.c:-1 #13 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #13 syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 #14 Xsyscall+0x128 lock order [2] &sched_lock (&sched_lock) -> [1] &cq->cq_mtx (&cq->cq_mtx) #0 mtx_enter+0x4a sys/kern/kern_lock.c:254 #1 clockintr_cancel+0x2f sys/kern/kern_clockintr.c:323 #2 mi_switch+0x172 x86_atomic_clearbits_u32 machine/atomic.h:-1 [inline] #2 mi_switch+0x172 sys/kern/sched_bsd.c:372 #3 ast+0x165 mi_ast sys/sys/syscall_mi.h:252 [inline] #3 ast+0x165 sys/arch/amd64/amd64/trap.c:543 #4 intr_user_exit+0x3c Stopped at db_enter+0x25: addq $0x8,%rsp ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 witness_checkorder(ffffffff83925508,9,0) at witness_checkorder+0x10fb sys/kern/subr_witness.c:-1 mtx_enter(ffffffff839254f8) at mtx_enter+0x4a sys/kern/kern_lock.c:254 sleep_setup(ffff8000299dee50,220,ffffffff833ae09e) at sleep_setup+0xc6 sys/kern/kern_synch.c:302 msleep_nsec(ffff8000299dee50,ffff8000299dedf0,220,ffffffff833ae09e,ffffffffffffffff) at msleep_nsec+0x119 sys/kern/kern_synch.c:217 dt_ioctl_record_stop(ffff80000147e000) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:576 dtclose(61e5f,81,2000,ffff80003c4be7e8) at dtclose+0x105 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(61e5f,81,2000,ffff80003c4be7e8) at dtclose+0x105 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c443ab0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80639de200,81,fffffd80097fb410,ffff80003c4be7e8) at VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 vn_closefile(fffffd80607edd98,ffff80003c4be7e8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80607edd98,ffff80003c4be7e8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd80607edd98,ffff80003c4be7e8) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd80607edd98,ffff80003c4be7e8) at closef+0x192 sys/kern/kern_descrip.c:1251 fdfree(ffff80003c4be7e8) at fdfree+0x116 sys/kern/kern_descrip.c:1182 exit1(ffff80003c4be7e8,0,0,1) at exit1+0x59c sys/kern/kern_exit.c:215 sys_exit(ffff80003c4be7e8,ffff80003c443e20,ffff80003c443d70) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c443e20) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c443e20) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7711f020d1c0, count: -17 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003c4437b0 rbx 0xfffffd8004705330 rdx 0 rcx 0xffff80003c4be7e8 rax 0xffffffff83854ff0 cpu_info_full_primary+0x1ff0 r8 0xffff80003c443690 r9 0x8080808080808080 r10 0x139be968ba63478c r11 0xb34f3a949a67036e r12 0 r13 0xfffffd8003f58300 r14 0x3 r15 0xffffffff rip 0xffffffff812ce7b5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c4437a0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=53142 pid=4 tcnt=0 stat=onproc flags process=1018 proc=2000 runpri=32, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003c4be7e8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a296f80,0xffff80003c4bf4c8 process=0xffff80003c4c09d8 user=0xffff80003c43e000, vmspace=0xfffffd8065a27b68 estcpu=34, cpticks=3, pctcpu=0.5, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 94262 35226 6261 0 2 0 syz-executor 94262 359819 6261 0 3 0x4000080 fsleep syz-executor 69840 187656 74714 0 2 0 syz-executor 69840 147683 74714 0 3 0x4000080 fsleep syz-executor 73591 324435 76024 0 2 0 syz-executor 73591 238352 76024 0 3 0x4000080 fsleep syz-executor 5813 174199 88950 60928 2 0x10 syz-executor 5813 340462 88950 60928 3 0x4000090 fsleep syz-executor 95470 348940 63700 0 2 0 syz-executor 95470 299992 63700 0 3 0x4000080 fsleep syz-executor 95470 98554 63700 0 3 0x4000080 fsleep syz-executor 24924 326336 927 0 2 0x10 syz-executor 24924 245538 927 0 3 0x4000090 fsleep syz-executor 25207 366995 96959 0 2 0 syz-executor 25207 138849 96959 0 3 0x4000080 fsleep syz-executor 25207 398353 96959 0 3 0x4000080 fsleep syz-executor 96959 342040 66631 0 3 0x82 nanoslp syz-executor 37826 142070 0 0 3 0x14200 bored sosplice 76370 488575 1 0 3 0x100083 ttyin getty 88950 107459 66631 0 3 0x82 nanoslp syz-executor 63700 61996 66631 0 3 0x82 nanoslp syz-executor 85659 23085 66631 0 3 0x82 nanoslp syz-executor 76024 31440 66631 0 3 0x82 nanoslp syz-executor 74714 193271 66631 0 3 0x82 nanoslp syz-executor 6261 123001 66631 0 3 0x82 nanoslp syz-executor 927 155862 66631 0 3 0x82 nanoslp syz-executor 66631 235773 5003 0 3 0x82 kqread syz-executor 5003 481085 59214 0 3 0x10008a sigsusp ksh 59214 323521 99939 0 3 0x98 kqread sshd-session 99939 379831 11480 0 3 0x92 kqread sshd-session 11480 225218 1 0 3 0x88 kqread sshd 49224 370294 42204 74 3 0x1100092 bpf pflogd 42204 158287 1 0 3 0x80 sbwait pflogd 3136 38831 90529 73 3 0x1100090 kqread syslogd 90529 458721 1 0 3 0x100082 sbwait syslogd 23577 280287 1 0 3 0x100080 kqread resolvd 15615 523693 32260 77 3 0x100092 kqread dhcpleased 73919 400968 32260 77 3 0x100092 kqread dhcpleased 32260 401274 1 0 3 0x80 kqread dhcpleased 69276 370287 0 0 3 0x14200 bored smr 279 16849 0 0 2 0x14200 zerothread 18253 318179 0 0 3 0x14200 aiodoned aiodoned 15183 366843 0 0 3 0x14200 syncer update 75555 520056 0 0 3 0x14200 cleaner cleaner 31785 108889 0 0 2 0x14200 reaper 41955 466071 0 0 3 0x14200 pgdaemon pagedaemon 80016 203100 0 0 3 0x14200 bored viomb 54783 342300 0 0 3 0x40014200 acpi0 acpi0 44667 234391 0 0 7 0x40014200 idle1 50697 9104 0 0 3 0x14200 bored softnet3 23768 234312 0 0 3 0x14200 bored softnet2 45897 144488 0 0 3 0x14200 bored softnet1 62356 137791 0 0 3 0x14200 bored softnet0 29385 87874 0 0 3 0x14200 bored systqmp 76384 263916 0 0 3 0x14200 bored systq 39172 364051 0 0 3 0x14200 tmoslp softclockmp 87971 415337 0 0 3 0x40014200 tmoslp softclock 58352 235690 0 0 3 0x40014200 idle0 1 454340 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &cq->cq_mtx r = 0 (0xffff8000299dee00) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 mtx_enter_try+0x1ad sys/kern/kern_lock.c:298 #2 mtx_enter+0x13b sys/kern/kern_lock.c:255 #3 clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 #4 dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:576 #5 dtclose+0x105 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] #5 dtclose+0x105 sys/dev/dt/dt_dev.c:232 #6 spec_close+0x45f sys/kern/spec_vnops.c:-1 #7 VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 #8 vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] #8 vn_closefile+0x12b sys/kern/vfs_vnops.c:615 #9 fdrop+0x126 sys/kern/kern_descrip.c:1267 #10 closef+0x192 sys/kern/kern_descrip.c:1251 #11 fdfree+0x116 sys/kern/kern_descrip.c:1182 #12 exit1+0x59c sys/kern/kern_exit.c:215 #13 sys_exit+0x1a sys/kern/kern_exit.c:-1 #14 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #14 syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 #15 Xsyscall+0x128 Process 31785 (reaper) thread 0xffff8000ffffd718 (108889) exclusive rwlock kmmaplk r = 0 (0xffffffff83962c90) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x377 sys/kern/kern_rwlock.c:310 #2 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5168 #3 uvm_unmap+0x81 sys/uvm/uvm_map.c:1792 #4 km_free+0x87 sys/uvm/uvm_km.c:831 #5 uvm_uarea_free+0x4f sys/uvm/uvm_glue.c:285 #6 reaper+0x1cb sys/kern/kern_exit.c:493 #7 proc_trampoline+0x10 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10318 11277K 11472K 166960K 12524 0 pcb 18 15K 17K 166960K 122 0 rtable 206 7K 8K 166960K 554 0 pf 38 18K 67485K 166960K 108 0 ifaddr 43 7K 8K 166960K 74 0 ifgroup 60 2K 2K 166960K 117 0 sysctl 4 1K 9K 166960K 17 0 counters 74 37K 37K 166960K 118 0 ioctlops 0 0K 4K 166960K 1583 0 iov 0 0K 16K 166960K 45 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1418 89K 89K 166960K 2112 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 12 1K 1K 166960K 32 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 97K 166960K 850 0 sigio 2 0K 0K 166960K 21 0 proc 72 91K 152K 166960K 640 0 subproc 72 4K 4K 166960K 82 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 80 0 in_multi 97 7K 7K 166960K 138 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 7 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 229 1023K 1023K 166960K 229 0 exec 0 0K 1K 166960K 461 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 261 185K 189K 166960K 9616 0 UVM aobj 15 2K 4K 166960K 17 0 pinsyscall 43 86K 104K 166960K 1963 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 38 0 NDP 13 0K 2K 166960K 49 0 temp 71 8694K 8767K 166960K 42688 0 kqueue 13 20K 30K 166960K 142 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 86 0 82 1 0 1 1 0 8 0 rtentry 176 169 0 77 6 0 6 6 0 8 0 unpcb 144 501 0 479 3 2 1 2 0 8 0 syncache 336 4 0 4 2 2 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 736 350 0 345 10 9 1 10 0 8 0 arp 128 22 0 7 1 0 1 1 0 8 0 inpcb 328 828 0 817 9 7 2 9 0 8 0 nd6 144 29 0 6 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 1 0 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1192 16 0 13 2 1 1 1 0 8 0 pppxif 1504 2 0 2 2 1 1 1 0 8 1 pffrag 232 9 0 2 1 0 1 1 0 482 0 pffrnode 88 8 0 2 1 0 1 1 0 8 0 pffrent 40 15 0 8 1 0 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 pfrktable 1344 2 0 2 2 2 0 1 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pftag 88 3 0 2 1 0 1 1 0 8 0 pfstitem 24 66 0 29 1 0 1 1 0 8 0 pfstkey 128 66 0 29 2 0 2 2 0 8 0 pfstate 384 66 0 29 5 0 5 5 0 8 0 pfrule 1344 32 0 24 2 1 1 2 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 590 0 156 31 2 29 31 0 8 1 art_table 32 592 0 156 5 1 4 5 0 8 0 art_node 16 134 0 51 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 8 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 29 0 19 1 0 1 1 0 8 0 shmpl 112 14 0 2 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2929 0 1419 96 0 96 96 0 8 0 ffsino 288 2929 0 1419 109 0 109 109 0 8 0 nchpl 144 4124 0 2422 64 0 64 64 0 8 0 uvmvnodes 80 3473 0 0 71 0 71 71 0 8 0 vnodes 216 3473 0 0 193 0 193 193 0 8 0 namei 1024 13908 0 13908 3 2 1 2 0 8 1 percpumem 16 74 0 22 1 0 1 1 0 8 0 kstatmem 264 64 0 36 4 1 3 3 0 8 0 scsiplug 72 9 0 9 3 2 1 1 0 8 1 scxspl 216 13384 0 13384 11 10 1 8 1 8 1 plimitpl 152 166 0 149 1 0 1 1 0 8 0 sigapl 424 1171 0 1120 9 2 7 9 0 8 0 knotepl 120 563 0 0 18 0 18 18 0 8 1 kqueuepl 224 269 0 258 4 3 1 3 0 8 0 pipepl 336 165 0 138 3 0 3 3 0 8 0 fdescpl 520 1130 0 1098 3 0 3 3 0 8 0 filepl 160 6422 0 6196 18 5 13 14 0 8 1 lockfpl 104 473 0 471 2 1 1 2 0 8 0 lockfspl 48 125 0 123 1 0 1 1 0 8 0 sessionpl 144 25 0 16 1 0 1 1 0 8 0 pgrppl 48 52 0 35 1 0 1 1 0 8 0 ucredpl 104 796 0 776 1 0 1 1 0 8 0 zombiepl 144 1231 0 1230 1 0 1 1 0 8 0 processpl 1240 1171 0 1120 6 0 6 6 0 8 0 procpl 656 2420 0 2359 8 2 6 8 0 8 0 srpgc 96 4 0 4 2 2 0 1 0 8 0 sosppl 168 6 0 6 3 2 1 1 0 8 1 sockpl 728 1447 0 1410 14 10 4 13 0 8 0 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 103 0 0 13 0 13 13 0 8 0 mcl2k 2048 32 0 0 4 0 4 4 0 8 0 mtagpl 96 18 0 0 1 0 1 1 0 8 0 mbufpl 256 1143 0 0 72 0 72 72 0 8 0 bufpl 280 4174 0 139 289 0 289 289 0 8 0 anonpl 32 7703 0 0 62 0 62 62 0 246 0 amapchunkpl 152 31530 0 30914 40 13 27 31 0 158 2 amappl16 200 3705 0 3671 26 22 4 15 0 8 0 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 120 0 108 1 0 1 1 0 8 0 amappl13 176 4 0 4 3 3 0 1 0 8 0 amappl12 168 1790 0 1758 3 1 2 2 0 8 0 amappl11 160 48 0 34 1 0 1 1 0 8 0 amappl10 152 6 0 6 1 1 0 1 0 8 0 amappl9 144 263 0 262 2 1 1 1 0 8 0 amappl8 136 23 0 20 1 0 1 1 0 8 0 amappl7 128 107 0 95 1 0 1 1 0 8 0 amappl6 120 192 0 188 1 0 1 1 0 8 0 amappl5 112 134 0 124 1 0 1 1 0 8 0 amappl4 104 319 0 298 1 0 1 1 0 8 0 amappl3 96 6097 0 5973 4 0 4 4 0 8 0 amappl2 88 655 0 591 2 0 2 2 0 8 0 amappl1 80 11235 0 10634 16 1 15 15 0 8 0 amappl 88 8789 0 8604 5 0 5 5 0 92 0 dma32768 32768 1 0 1 1 1 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 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 256 0 256 4 3 1 1 0 8 1 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 16 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1130 0 1098 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1130 0 1098 1 0 1 1 0 8 0 vmmpekpl 168 10736 0 10687 4 1 3 3 0 8 0 vmmpepl 168 75983 0 73935 107 16 91 99 0 357 0 vmsppl 480 1129 0 1098 6 1 5 5 0 8 0 rwobjpl 72 25412 0 20967 83 2 81 81 0 8 0 pdppl 4096 2267 0 2196 107 36 71 87 0 8 0 pvpl 32 15859 0 0 129 1 128 129 0 265 0 pmappl 256 1129 0 1098 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 466 0 55 13 0 13 13 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 witness_checkorder(ffffffff83925508,9,0) at witness_checkorder+0x10fb sys/kern/subr_witness.c:-1 mtx_enter(ffffffff839254f8) at mtx_enter+0x4a sys/kern/kern_lock.c:254 sleep_setup(ffff8000299dee50,220,ffffffff833ae09e) at sleep_setup+0xc6 sys/kern/kern_synch.c:302 msleep_nsec(ffff8000299dee50,ffff8000299dedf0,220,ffffffff833ae09e,ffffffffffffffff) at msleep_nsec+0x119 sys/kern/kern_synch.c:217 dt_ioctl_record_stop(ffff80000147e000) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:576 dtclose(61e5f,81,2000,ffff80003c4be7e8) at dtclose+0x105 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(61e5f,81,2000,ffff80003c4be7e8) at dtclose+0x105 sys/dev/dt/dt_dev.c:232 spec_close(ffff80003c443ab0) at spec_close+0x45f sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd80639de200,81,fffffd80097fb410,ffff80003c4be7e8) at VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 vn_closefile(fffffd80607edd98,ffff80003c4be7e8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd80607edd98,ffff80003c4be7e8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd80607edd98,ffff80003c4be7e8) at fdrop+0x126 sys/kern/kern_descrip.c:1267 closef(fffffd80607edd98,ffff80003c4be7e8) at closef+0x192 sys/kern/kern_descrip.c:1251 fdfree(ffff80003c4be7e8) at fdfree+0x116 sys/kern/kern_descrip.c:1182 exit1(ffff80003c4be7e8,0,0,1) at exit1+0x59c sys/kern/kern_exit.c:215 sys_exit(ffff80003c4be7e8,ffff80003c443e20,ffff80003c443d70) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c443e20) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c443e20) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7711f020d1c0, count: -17 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff8000299ddff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 mtx_enter(ffff8000299dedf0) at mtx_enter+0xd2 sys/kern/kern_lock.c:258 clockintr_dispatch(ffff80002a2285a0) at clockintr_dispatch+0x3b4 sys/kern/kern_clockintr.c:215 lapic_clockintr(0,0) at lapic_clockintr+0x51 sys/arch/amd64/amd64/lapic.c:489 Xresume_lapic_ltimer() at Xresume_lapic_ltimer+0x2a acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu_x86.c:1218 sched_idle(ffff8000299ddff0) at sched_idle+0x4d8 sys/kern/kern_sched.c:191 end trace frame: 0x0, count: -9