witness: lock order reversal: 1st 0xffffffff83892e30 &cq->cq_mtx (&cq->cq_mtx) 2nd 0xffffffff838d0e38 &sched_lock (&sched_lock) lock order [1] &cq->cq_mtx (&cq->cq_mtx) -> [2] &sched_lock (&sched_lock) #0 mtx_enter+0x95 sys/kern/kern_lock.c:406 #1 sleep_setup+0xed sys/kern/kern_synch.c:304 #2 msleep_nsec+0x10b sys/kern/kern_synch.c:217 #3 dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:589 #4 dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] #4 dtclose+0x109 sys/dev/dt/dt_dev.c:239 #5 spec_close+0x466 sys/kern/spec_vnops.c:-1 #6 VOP_CLOSE+0x132 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+0x121 sys/kern/kern_descrip.c:1280 #9 closef+0x192 sys/kern/kern_descrip.c:1264 #10 fdfree+0x116 sys/kern/kern_descrip.c:1195 #11 exit1+0x576 sys/kern/kern_exit.c:215 #12 sys_exit+0x1a sys/kern/kern_exit.c:-1 #13 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #13 syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 #14 Xsyscall+0x128 lock order [2] &sched_lock (&sched_lock) -> [1] &cq->cq_mtx (&cq->cq_mtx) #0 mtx_enter+0x95 sys/kern/kern_lock.c:406 #1 clockintr_cancel+0x2f sys/kern/kern_clockintr.c:323 #2 mi_switch+0x187 sys/kern/sched_bsd.c:376 #3 sleep_finish+0x2d8 sys/kern/kern_synch.c:369 #4 sys_futex+0xb90 futex_wait sys/kern/sys_futex.c:306 [inline] #4 sys_futex+0xb90 sys/kern/sys_futex.c:155 #5 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775 #6 Xsyscall+0x128 Stopped at db_enter+0x25: addq $0x8,%rsp ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 witness_checkorder(ffffffff838d0e38,9,0) at witness_checkorder+0x10d1 sys/kern/subr_witness.c:-1 mtx_enter(ffffffff838d0e28) at mtx_enter+0x95 sys/kern/kern_lock.c:406 sleep_setup(ffffffff83892e80,220,ffffffff83430a37) at sleep_setup+0xed sys/kern/kern_synch.c:304 msleep_nsec(ffffffff83892e80,ffffffff83892e20,220,ffffffff83430a37,ffffffffffffffff) at msleep_nsec+0x10b sys/kern/kern_synch.c:217 dt_ioctl_record_stop(ffff8000016e9000) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:589 dtclose(21e5f,81,2000,ffff80002a35ad30) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(21e5f,81,2000,ffff80002a35ad30) at dtclose+0x109 sys/dev/dt/dt_dev.c:239 spec_close(ffff80003c3f1dd0) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd800c6c3b10,81,fffffd80097fd548,ffff80002a35ad30) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd8073f1d468,ffff80002a35ad30) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8073f1d468,ffff80002a35ad30) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd8073f1d468,ffff80002a35ad30) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd8073f1d468,ffff80002a35ad30) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff80002a35ad30) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff80002a35ad30,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80002a35ad30,ffff80003c3f2140,ffff80003c3f2090) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c3f2140) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3f2140) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x778e70f30690, count: -17 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003c3f1aa0 rbx 0 rdx 0 rcx 0xffff80002a35ad30 rax 0xffff8000299ddff0 r8 0xffff80003c3f1980 r9 0x8080808080808080 r10 0xbc53a6bf3676c9a5 r11 0x9f9b52bebb87a08d r12 0xfffffd8003f53e40 r13 0xfffffd8004741d58 r14 0x3 r15 0xffffffff83422553 substchar+0xe586 rip 0xffffffff82a953f5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c3f1a90 ss 0 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=260871 pid=50719 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a35ad30 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a35aa98,0xffffffff83a10568 process=0xffff8000fffe5d00 user=0xffff80003c3ed000, vmspace=0xfffffd806c7c49a8 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 63265 8020 23410 0 3 0x80 nanoslp syz-executor 63265 490785 23410 0 3 0x4000080 fsleep syz-executor 63265 323944 23410 0 3 0x4000080 fsleep syz-executor 35861 412633 19002 0 2 0 syz-executor 35861 24553 19002 0 3 0x4000080 ttyretype syz-executor 35861 790 19002 0 3 0x4000080 fsleep syz-executor 63155 119644 68818 0 2 0 syz-executor 63155 444709 68818 0 7 0x4000001 syz-executor 10736 77265 71173 0 3 0x80 nanoslp syz-executor 10736 303932 71173 0 3 0x4000080 fifor syz-executor 10736 111115 71173 0 3 0x4000080 fsleep syz-executor 6110 308790 57459 0 3 0x80 nanoslp syz-executor 6110 301073 57459 0 3 0x4000080 kqsel syz-executor 6110 199971 57459 0 3 0x4000080 fsleep syz-executor 5449 86547 0 0 3 0x14200 acct acct 57459 460105 97468 0 3 0x82 nanoslp syz-executor 24957 338663 1 0 3 0x100083 ttyin getty 34494 37179 0 0 3 0x14280 nfsidl nfsio 10710 133362 0 0 3 0x14280 nfsidl nfsio 57086 422359 0 0 3 0x14280 nfsidl nfsio 68778 243429 0 0 3 0x14280 nfsidl nfsio 44098 111813 0 0 3 0x14280 nfsidl nfsio 97164 312547 0 0 3 0x14280 nfsidl nfsio 34386 145684 0 0 3 0x14280 nfsidl nfsio 2848 505879 0 0 3 0x14280 nfsidl nfsio 78313 287992 0 0 3 0x14280 nfsidl nfsio 93292 20496 0 0 3 0x14280 nfsidl nfsio 66688 221688 0 0 3 0x14280 nfsidl nfsio 99519 488421 0 0 3 0x14280 nfsidl nfsio 44824 246659 0 0 3 0x14280 nfsidl nfsio 9143 183722 0 0 3 0x14280 nfsidl nfsio 71864 192935 0 0 3 0x14280 nfsidl nfsio 72264 290194 0 0 3 0x14280 nfsidl nfsio 52867 409909 0 0 3 0x14280 nfsidl nfsio 51900 118499 0 0 3 0x14280 nfsidl nfsio 4411 416020 0 0 3 0x14280 nfsidl nfsio 22658 71238 0 0 3 0x14280 nfsidl nfsio 68818 166232 97468 0 3 0x82 nanoslp syz-executor 19002 298182 97468 0 3 0x82 nanoslp syz-executor 75759 290864 97468 0 2 0x2 syz-executor 57391 28800 97468 0 3 0x82 nanoslp syz-executor 71173 54711 97468 0 3 0x82 nanoslp syz-executor 23410 486441 97468 0 3 0x82 nanoslp syz-executor 48934 459673 97468 0 3 0x82 nanoslp syz-executor 97468 156901 79528 0 3 0x82 kqread syz-executor 79528 480900 18013 0 3 0x10008a sigsusp ksh 18013 185017 12951 0 3 0x98 kqread sshd-session 12951 402226 29234 0 3 0x92 kqread sshd-session 29234 399792 1 0 3 0x88 kqread sshd 62594 327041 85685 74 3 0x1100092 bpf pflogd 85685 104611 1 0 3 0x80 sbwait pflogd 7105 474239 86616 73 3 0x1100090 kqread syslogd 86616 353843 1 0 3 0x100082 sbwait syslogd 36225 380812 1 0 3 0x100080 kqread resolvd 12114 487743 29714 77 3 0x100092 kqread dhcpleased 7060 405452 29714 77 3 0x100092 kqread dhcpleased 29714 395207 1 0 3 0x80 kqread dhcpleased 9300 452333 0 0 3 0x14200 pause smr 68590 500932 0 0 2 0x14200 zerothread 488 168260 0 0 3 0x14200 aiodoned aiodoned 88345 118416 0 0 3 0x14200 syncer update 96082 451328 0 0 3 0x14200 cleaner cleaner 31589 72762 0 0 3 0x14200 reaper reaper 56336 253269 0 0 3 0x14200 pgdaemon pagedaemon 75255 23530 0 0 3 0x14200 bored viomb 30631 110866 0 0 3 0x40014200 acpi0 acpi0 58377 354645 0 0 3 0x40014200 idle1 60616 200350 0 0 3 0x14200 bored softnet1 28437 70148 0 0 3 0x14200 bored softnet0 51257 447605 0 0 3 0x14200 bored systqmp 83393 520099 0 0 3 0x14200 bored systq 72248 502686 0 0 3 0x14200 tmoslp softclockmp 28376 465901 0 0 3 0x40014200 tmoslp softclock 7304 25751 0 0 3 0x40014200 idle0 1 441804 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex &cq->cq_mtx r = 0 (0xffffffff83892e30) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 mtx_enter+0x4b4 sys/kern/kern_lock.c:487 #2 clockintr_unbind+0x56 sys/kern/kern_clockintr.c:375 #3 dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:589 #4 dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] #4 dtclose+0x109 sys/dev/dt/dt_dev.c:239 #5 spec_close+0x466 sys/kern/spec_vnops.c:-1 #6 VOP_CLOSE+0x132 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+0x121 sys/kern/kern_descrip.c:1280 #9 closef+0x192 sys/kern/kern_descrip.c:1264 #10 fdfree+0x116 sys/kern/kern_descrip.c:1195 #11 exit1+0x576 sys/kern/kern_exit.c:215 #12 sys_exit+0x1a sys/kern/kern_exit.c:-1 #13 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #13 syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 #14 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11105 12136K 13932K 166960K 13747 0 pcb 24 19K 21K 166960K 490 0 rtable 170 9K 9K 166960K 574 0 pf 37 18K 22K 166960K 180 0 ifaddr 30 4K 8K 166960K 115 0 ifgroup 52 2K 2K 166960K 186 0 sysctl 4 1K 9K 166960K 13 0 counters 70 37K 37K 166960K 216 0 ioctlops 0 0K 4K 166960K 1754 0 iov 0 0K 24K 166960K 53 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1490 94K 94K 166960K 2508 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 17K 166960K 23 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 134 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 240K 166960K 1109 0 sigio 0 0K 0K 166960K 17 0 proc 78 131K 164K 166960K 716 0 subproc 72 4K 4K 166960K 99 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 100 0 in_multi 52 3K 7K 166960K 162 0 ether_multi 1 0K 0K 166960K 8 0 mrt 0 0K 0K 166960K 6 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 617 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 250 175K 193K 166960K 12140 0 UVM aobj 125 13K 13K 166960K 130 0 pinsyscall 42 84K 102K 166960K 2347 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 1K 166960K 195 0 NDP 12 0K 2K 166960K 85 0 temp 70 8681K 8759K 166960K 37645 0 kqueue 13 20K 32K 166960K 252 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 26 0 0 1 0 1 1 0 8 0 rtpcb 120 291 0 288 5 2 3 3 0 8 2 rtentry 176 161 0 103 6 0 6 6 0 8 0 unpcb 144 898 0 876 11 5 6 6 0 8 5 syncache 336 12 0 12 2 1 1 1 0 8 1 tcpqe 32 5 0 5 2 2 0 1 0 8 0 tcpcb 736 210 0 198 3 1 2 2 0 8 0 arp 136 26 0 15 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 3 0 3 1 1 0 1 0 8 0 inpcb 328 1558 0 1535 23 13 10 13 0 8 7 nd6 152 35 0 22 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 kcovpl 48 11 0 3 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1192 61 0 61 2 1 1 1 0 8 1 pppxif 1504 5 0 5 2 1 1 1 0 8 1 pfstscr 40 3 0 3 1 0 1 1 0 8 1 pffrag 232 8 0 2 1 0 1 1 0 482 0 pffrnode 88 7 0 2 1 0 1 1 0 8 0 pffrent 40 11 0 5 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 4 0 4 3 2 1 1 0 8 1 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pftag 88 5 0 3 2 1 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 18 0 16 1 0 1 1 0 8 0 pfstate 448 11 0 9 1 0 1 1 0 8 0 pfrule 1360 75 0 75 2 1 1 1 0 8 1 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 667 0 411 29 4 25 29 0 8 5 art_table 40 671 0 411 5 0 5 5 0 8 0 art_node 32 160 0 109 1 0 1 1 0 8 0 sysvmsgpl 40 79 0 78 2 1 1 1 0 8 0 semapl 112 129 0 119 1 0 1 1 0 8 0 shmpl 112 121 0 4 4 0 4 4 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 3570 0 2058 96 0 96 96 0 8 0 ffsino 296 3570 0 2058 119 1 118 118 0 8 0 nchpl 144 5049 0 3342 64 0 64 64 0 8 0 rtmask 32 8 0 8 2 1 1 1 0 8 1 vnodes 216 4270 0 0 238 0 238 238 0 8 0 namei 1024 18133 0 18133 3 2 1 2 0 8 1 percpumem 16 123 0 73 1 0 1 1 0 8 0 vcpupl 3968 5 0 0 1 0 1 1 0 8 0 vmpool 848 6 0 1 1 0 1 1 0 8 0 kstatmem 264 126 0 98 4 1 3 3 0 8 0 scsiplug 72 7 0 7 2 1 1 1 0 8 1 scxspl 216 40433 0 40433 11 8 3 8 1 8 3 plimitpl 152 274 0 256 1 0 1 1 0 8 0 sigapl 424 1431 0 1363 9 1 8 8 0 8 0 knotepl 120 815 0 0 24 0 24 24 0 8 0 kqueuepl 224 412 0 402 3 0 3 3 0 8 2 pipepl 344 266 0 239 9 6 3 9 0 8 0 fdescpl 528 1392 0 1361 3 0 3 3 0 8 0 filepl 160 9784 0 9550 22 5 17 17 0 8 4 lockfpl 104 289 0 287 1 0 1 1 0 8 0 lockfspl 48 127 0 125 1 0 1 1 0 8 0 sessionpl 144 35 0 26 1 0 1 1 0 8 0 pgrppl 48 59 0 42 1 0 1 1 0 8 0 ucredpl 104 1606 0 1593 1 0 1 1 0 8 0 zombiepl 144 1365 0 1363 1 0 1 1 0 8 0 processpl 1232 1431 0 1363 6 0 6 6 0 8 0 procpl 664 3156 0 3079 8 0 8 8 0 8 0 sosppl 176 7 0 7 2 1 1 1 0 8 1 sockpl 752 2854 0 2806 43 30 13 21 0 8 7 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 127 0 0 16 0 16 16 0 8 0 mcl2k 2048 32 0 0 4 0 4 4 0 8 0 mtagpl 96 6 0 0 1 0 1 1 0 8 0 mbufpl 256 199 0 0 12 0 12 12 0 8 0 bufpl 280 17478 0 11342 439 0 439 439 0 8 0 anonpl 32 12102 0 0 99 1 98 98 0 246 0 amapchunkpl 152 40213 0 39715 34 5 29 30 0 158 6 amappl16 200 6446 0 6407 39 23 16 29 0 8 3 amappl15 192 21 0 21 1 1 0 1 0 8 0 amappl14 184 6 0 6 2 2 0 1 0 8 0 amappl13 176 498 0 497 1 0 1 1 0 8 0 amappl12 168 1796 0 1754 3 1 2 3 0 8 0 amappl11 160 4 0 4 1 1 0 1 0 8 0 amappl10 152 52 0 38 1 0 1 1 0 8 0 amappl9 144 250 0 249 2 1 1 1 0 8 0 amappl8 136 32 0 29 1 0 1 1 0 8 0 amappl7 128 91 0 89 1 0 1 1 0 8 0 amappl6 120 325 0 311 1 0 1 1 0 8 0 amappl5 112 81 0 70 1 0 1 1 0 8 0 amappl4 104 489 0 459 1 0 1 1 0 8 0 amappl3 96 6905 0 6809 4 1 3 3 0 8 0 amappl2 88 1561 0 1484 2 0 2 2 0 8 0 amappl1 80 15861 0 15268 14 0 14 14 0 8 0 amappl 88 11130 0 10960 5 0 5 5 0 92 0 uvmvnodes 80 141 0 0 3 0 3 3 0 8 0 dma65536 65536 1 0 1 1 1 0 1 0 8 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 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma512 512 1 0 1 1 1 0 1 0 8 0 dma256 256 7 0 7 2 2 0 1 0 8 0 dma128 128 256 0 256 3 2 1 1 0 8 1 dma64 64 8 0 8 2 2 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 129 0 5 3 0 3 3 0 8 0 uaddrrnd 24 1392 0 1361 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1392 0 1361 1 0 1 1 0 8 0 vmmpekpl 168 13885 0 13838 3 0 3 3 0 8 0 vmmpepl 168 99430 0 97488 110 5 105 109 0 357 7 vmsppl 488 1391 0 1361 5 0 5 5 0 8 0 rwobjpl 80 30971 0 29764 35 1 34 34 0 8 0 pdppl 4096 2803 0 2729 108 31 77 83 0 8 3 pvpl 32 21238 0 0 172 0 172 172 0 265 0 pmappl 256 1397 0 1362 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 297 0 46 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff83891ff0) 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(ffffffff83892e20) at mtx_enter+0x377 sys/kern/kern_lock.c:454 clockintr_dispatch(ffff8000378810f0) at clockintr_dispatch+0x401 sys/kern/kern_clockintr.c:215 lapic_clockintr(0,0) at lapic_clockintr+0x51 sys/arch/amd64/amd64/lapic.c:482 Xresume_lapic_ltimer() at Xresume_lapic_ltimer+0x2a __mp_lock(ffffffff8394ba00) at __mp_lock+0x19e __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff8394ba00) at __mp_lock+0x19e sys/kern/kern_lock.c:173 ktrsysret(ffff80002a260a78,36,6,ffff8000378812e0) at ktrsysret+0xde ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff80002a260a78,36,6,ffff8000378812e0) at ktrsysret+0xde sys/kern/kern_ktrace.c:209 syscall(ffff800037881390) at syscall+0xa50 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff800037881390) at syscall+0xa50 sys/arch/amd64/amd64/trap.c:796 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1beb10b8e0, count: -11 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 witness_checkorder(ffffffff838d0e38,9,0) at witness_checkorder+0x10d1 sys/kern/subr_witness.c:-1 mtx_enter(ffffffff838d0e28) at mtx_enter+0x95 sys/kern/kern_lock.c:406 sleep_setup(ffffffff83892e80,220,ffffffff83430a37) at sleep_setup+0xed sys/kern/kern_synch.c:304 msleep_nsec(ffffffff83892e80,ffffffff83892e20,220,ffffffff83430a37,ffffffffffffffff) at msleep_nsec+0x10b sys/kern/kern_synch.c:217 dt_ioctl_record_stop(ffff8000016e9000) at dt_ioctl_record_stop+0xbc sys/dev/dt/dt_dev.c:589 dtclose(21e5f,81,2000,ffff80002a35ad30) at dtclose+0x109 dt_pcb_purge sys/dev/dt/dt_dev.c:-1 [inline] dtclose(21e5f,81,2000,ffff80002a35ad30) at dtclose+0x109 sys/dev/dt/dt_dev.c:239 spec_close(ffff80003c3f1dd0) at spec_close+0x466 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd800c6c3b10,81,fffffd80097fd548,ffff80002a35ad30) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffd8073f1d468,ffff80002a35ad30) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8073f1d468,ffff80002a35ad30) at vn_closefile+0x12b sys/kern/vfs_vnops.c:615 fdrop(fffffd8073f1d468,ffff80002a35ad30) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd8073f1d468,ffff80002a35ad30) at closef+0x192 sys/kern/kern_descrip.c:1264 fdfree(ffff80002a35ad30) at fdfree+0x116 sys/kern/kern_descrip.c:1195 exit1(ffff80002a35ad30,0,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80002a35ad30,ffff80003c3f2140,ffff80003c3f2090) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003c3f2140) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3f2140) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x778e70f30690, count: -17