panic: kernel diagnostic assertion "suser(curproc) == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/dev/dt/dt_dev.c", line 431 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 492252 8875 0 0 0 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff82457a9f) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff824c5cc1,ffffffff824f1f1b,1af,ffffffff82493db5) at __assert+0x25 sys/kern/subr_prf.c:161 dt_ioctl_record_stop(ffff800000b26300) at dt_ioctl_record_stop+0x165 sys/dev/dt/dt_dev.c:431 dtclose(11e6e,1,2000,ffff80002125aa80) at dtclose+0xe2 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline] dtclose(11e6e,1,2000,ffff80002125aa80) at dtclose+0xe2 sys/dev/dt/dt_dev.c:204 spec_close(ffff80002449f160) at spec_close+0x363 sys/kern/spec_vnops.c:572 VOP_CLOSE(fffffd8066b87e38,1,fffffd807f7d87e0,ffff80002125aa80) at VOP_CLOSE+0xe3 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806691ce60,ffff80002125aa80) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806691ce60,ffff80002125aa80) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:624 fdrop(fffffd806691ce60,ffff80002125aa80) at fdrop+0xc7 sys/kern/kern_descrip.c:1279 closef(fffffd806691ce60,ffff80002125aa80) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002125aa80) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002125aa80,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:202 sys_exit(ffff80002125aa80,ffff80002449f3f0,ffff80002449f450) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80002449f4c0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002449f4c0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 end trace frame: 0xffff80002449f540, 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 "suser(curproc) == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/dev/dt/dt_dev.c", line 431 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff82457a9f) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff824c5cc1,ffffffff824f1f1b,1af,ffffffff82493db5) at __assert+0x25 sys/kern/subr_prf.c:161 dt_ioctl_record_stop(ffff800000b26300) at dt_ioctl_record_stop+0x165 sys/dev/dt/dt_dev.c:431 dtclose(11e6e,1,2000,ffff80002125aa80) at dtclose+0xe2 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline] dtclose(11e6e,1,2000,ffff80002125aa80) at dtclose+0xe2 sys/dev/dt/dt_dev.c:204 spec_close(ffff80002449f160) at spec_close+0x363 sys/kern/spec_vnops.c:572 VOP_CLOSE(fffffd8066b87e38,1,fffffd807f7d87e0,ffff80002125aa80) at VOP_CLOSE+0xe3 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806691ce60,ffff80002125aa80) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806691ce60,ffff80002125aa80) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:624 fdrop(fffffd806691ce60,ffff80002125aa80) at fdrop+0xc7 sys/kern/kern_descrip.c:1279 closef(fffffd806691ce60,ffff80002125aa80) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002125aa80) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002125aa80,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:202 sys_exit(ffff80002125aa80,ffff80002449f3f0,ffff80002449f450) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80002449f4c0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002449f4c0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdd280, count: -15 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002449ef70 rbx 0xffff800020d39bff rdx 0 rcx 0 rax 0xffff80002125aa80 r8 0x101010101010101 r9 0x8080808080808080 r10 0x6dc190bbb615e1ac r11 0xfa1a2696af990d1 r12 0xffff800020d39a00 r13 0 r14 0 r15 0x1 rip 0xffffffff8146ad58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002449ef60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=360041 stat=onproc flags process=1018 proc=2000 pri=32, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff80002125ba40,0xffff80002125a010 process=0xffff8000211f0010 user=0xffff80002449a000, vmspace=0xfffffd8066c82a20 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 8875 492252 12770 0 7 0 syz-executor.0 12770 397897 21032 0 3 0x82 nanoslp syz-executor.0 2633 416887 21032 0 3 0x82 nanoslp syz-executor.1 17367 283072 0 0 3 0x14200 bored sosplice 21032 57224 9555 0 3 0x82 thrsleep syz-fuzzer 21032 197345 9555 0 3 0x4000082 nanoslp syz-fuzzer 21032 142860 9555 0 3 0x4000082 thrsleep syz-fuzzer 21032 409352 9555 0 3 0x4000082 thrsleep syz-fuzzer 21032 168758 9555 0 3 0x4000082 thrsleep syz-fuzzer 21032 368734 9555 0 3 0x4000082 thrsleep syz-fuzzer 21032 10086 9555 0 3 0x4000082 thrsleep syz-fuzzer 21032 516649 9555 0 3 0x4000082 kqread syz-fuzzer 9555 376825 3088 0 3 0x10008a sigsusp ksh 3088 20417 46278 0 3 0x9a poll sshd 60822 285148 1 0 3 0x100083 ttyopn getty 46278 127154 1 0 3 0x88 poll sshd 12590 375198 21520 74 3 0x100092 bpf pflogd 21520 55443 1 0 3 0x80 netio pflogd 19618 377453 21092 73 3 0x100090 kqread syslogd 21092 111088 1 0 3 0x100082 netio syslogd 49681 218893 1 0 3 0x100080 kqread resolvd 22370 438137 7445 77 3 0x100092 kqread dhcpleased 16005 343503 7445 77 3 0x100092 kqread dhcpleased 7445 314128 1 0 3 0x80 kqread dhcpleased 86913 183808 0 0 3 0x14200 bored smr 26932 383332 0 0 3 0x14200 pgzero zerothread 75604 111971 0 0 3 0x14200 aiodoned aiodoned 88366 220230 0 0 3 0x14200 syncer update 26352 510875 0 0 3 0x14200 cleaner cleaner 70680 5966 0 0 3 0x14200 reaper reaper 42055 371367 0 0 3 0x14200 pgdaemon pagedaemon 78863 167424 0 0 3 0x14200 bored viomb 65241 363270 0 0 3 0x40014200 acpi0 acpi0 14019 374419 0 0 3 0x40014200 idle1 73775 80857 0 0 3 0x14200 bored softnet 9373 450937 0 0 3 0x14200 bored systqmp 43546 346544 0 0 3 0x14200 bored systq 48062 323991 0 0 3 0x40014200 bored softclock 24957 129487 0 0 3 0x40014200 idle0 1 272356 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 8875 (syz-executor.0) thread 0xffff80002125a000 (492252) exclusive rwlock amaplk r = 0 (0xfffffd807dcd5c18) #0 witness_lock+0x44d #1 uvm_fault_check+0x3ca sys/uvm/uvm_fault.c:776 #2 uvm_fault+0x102 sys/uvm/uvm_fault.c:602 #3 upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 #4 usertrap+0x1aa sys/arch/amd64/amd64/trap.c:403 #5 recall_trap+0x8 shared rwlock vmmaplk r = 0 (0xfffffd8066c82308) #0 witness_lock+0x44d #1 uvmfault_lookup+0xd9 sys/uvm/uvm_fault.c:1746 #2 uvm_fault_check+0x3a sys/uvm/uvm_fault.c:676 #3 uvm_fault+0x102 sys/uvm/uvm_fault.c:602 #4 upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 #5 usertrap+0x1aa sys/arch/amd64/amd64/trap.c:403 #6 recall_trap+0x8 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10140 6619K 6917K 78643K 13929 0 pcb 13 12K 14K 78643K 154 0 rtable 103 3K 4K 78643K 624 0 ifaddr 44 11K 12K 78643K 184 0 counters 44 34K 34K 78643K 90 0 ioctlops 0 0K 4K 78643K 1628 0 iov 0 0K 16K 78643K 28 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1273 80K 80K 78643K 1960 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 11 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 160 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 6 17K 25K 78643K 1273 0 sigio 0 0K 0K 78643K 16 0 proc 71 87K 111K 78643K 650 0 subproc 26 1K 1K 78643K 146 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 22 0 in_multi 29 1K 2K 78643K 170 0 ether_multi 1 0K 0K 78643K 11 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 2K 78643K 816 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 243 159K 161K 78643K 17345 0 UVM aobj 98 3K 3K 78643K 98 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 49 0 NDP 7 0K 0K 78643K 56 0 temp 64 4194K 4258K 78643K 12518 0 kqueue 10 14K 16K 78643K 31 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 127 0 124 3 2 1 3 0 8 0 rtentry 112 156 0 115 2 0 2 2 0 8 0 unpcb 128 4173 0 4154 16 11 5 9 0 8 4 syncache 296 7 0 7 2 2 0 1 0 8 0 tcpqe 32 825 0 825 2 2 0 2 0 8 0 tcpcb 736 97 0 93 3 1 2 2 0 8 1 arp 120 24 0 18 1 0 1 1 0 8 0 inpcb 304 491 0 484 11 10 1 6 0 8 0 nd6 48 39 0 35 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 kcovpl 48 11 0 9 1 0 1 1 0 8 0 ppxss 1248 9 0 9 2 1 1 1 0 8 1 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 5 0 1 1 0 1 1 0 482 0 pffrnode 88 5 0 1 1 0 1 1 0 8 0 pffrent 40 22 0 18 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 5 0 4 1 0 1 1 0 8 0 pftag 88 3 0 3 1 0 1 1 0 8 1 pfstitem 24 26 0 11 1 0 1 1 0 8 0 pfstkey 112 28 0 13 1 0 1 1 0 8 0 pfstate 320 27 0 12 2 0 2 2 0 8 0 pfrule 1360 61 0 48 4 2 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 644 0 469 13 0 13 13 0 8 0 art_table 32 645 0 469 2 0 2 2 0 8 0 art_node 16 155 0 117 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 6 2 1 1 1 0 8 0 semapl 112 155 0 145 1 0 1 1 0 8 0 shmpl 112 95 0 0 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3013 0 1603 89 0 89 89 0 8 0 ffsino 272 3013 0 1603 95 0 95 95 0 8 0 nchpl 144 4846 0 3246 61 0 61 61 0 8 0 uvmvnodes 80 3640 0 0 75 0 75 75 0 8 0 vnodes 224 3640 0 0 215 0 215 215 0 8 0 namei 1024 15694 0 15694 1 0 1 1 0 8 1 percpumem 16 57 0 23 1 0 1 1 0 8 0 vcpupl 2048 9 0 0 2 0 2 2 0 8 0 vmpool 560 9 0 0 1 0 1 1 0 8 0 scsiplug 72 4 0 4 1 1 0 1 0 8 0 scxspl 216 13609 0 13609 11 10 1 8 0 8 1 plimitpl 152 73 0 64 1 0 1 1 0 8 0 sigapl 424 1497 0 1463 4 0 4 4 0 8 0 futexpl 64 7893 0 7893 1 0 1 1 0 8 1 knotepl 112 58 0 0 2 0 2 2 0 8 0 kqueuepl 216 101 0 95 3 2 1 3 0 8 0 pipepl 336 316 0 306 12 8 4 7 0 8 3 fdescpl 496 1482 0 1463 3 0 3 3 0 8 0 filepl 152 10952 0 10840 23 13 10 14 0 8 5 lockfpl 104 415 0 413 1 0 1 1 0 8 0 lockfspl 48 122 0 120 1 0 1 1 0 8 0 sessionpl 144 27 0 16 1 0 1 1 0 8 0 pgrppl 48 27 0 16 1 0 1 1 0 8 0 ucredpl 96 703 0 689 1 0 1 1 0 8 0 zombiepl 144 1464 0 1463 1 0 1 1 0 8 0 processpl 1064 1497 0 1463 3 0 3 3 0 8 0 procpl 672 3823 0 3782 5 0 5 5 0 8 1 srpgc 96 14 0 14 1 1 0 1 0 8 0 sosppl 168 3 0 3 1 1 0 1 0 8 0 sockpl 480 4795 0 4766 94 82 12 34 0 8 8 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 15 0 0 2 0 2 2 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 283 0 0 35 0 35 35 0 8 0 mtagpl 96 266 0 0 7 0 7 7 0 8 0 mbufpl 256 6881 0 0 430 0 430 430 0 8 0 bufpl 288 5799 0 137 405 0 405 405 0 8 0 anonpl 24 394470 0 378577 126 9 117 117 0 186 15 amapchunkpl 152 42914 0 42250 34 5 29 31 0 158 1 amappl16 200 3550 0 3048 39 4 35 35 0 8 8 amappl15 192 390 0 384 1 0 1 1 0 8 0 amappl14 184 14 0 12 1 0 1 1 0 8 0 amappl13 176 380 0 379 1 0 1 1 0 8 0 amappl12 168 81 0 77 1 0 1 1 0 8 0 amappl11 160 369 0 355 1 0 1 1 0 8 0 amappl10 152 203 0 195 1 0 1 1 0 8 0 amappl9 144 519 0 517 1 0 1 1 0 8 0 amappl8 136 504 0 467 2 0 2 2 0 8 0 amappl7 128 111 0 99 1 0 1 1 0 8 0 amappl6 120 238 0 221 1 0 1 1 0 8 0 amappl5 112 828 0 811 1 0 1 1 0 8 0 amappl4 104 1410 0 1385 1 0 1 1 0 8 0 amappl3 96 583 0 565 1 0 1 1 0 8 0 amappl2 88 734 0 689 4 2 2 2 0 8 0 amappl1 80 30171 0 29726 13 3 10 13 0 8 0 amappl 88 16868 0 16695 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 97 0 0 2 0 2 2 0 8 0 uaddrrnd 24 1491 0 1463 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1491 0 1463 1 0 1 1 0 8 0 vmmpekpl 168 15046 0 15020 2 0 2 2 0 8 0 vmmpepl 168 140781 0 138958 119 17 102 104 0 357 19 vmsppl 368 1490 0 1463 3 0 3 3 0 8 0 rwobjpl 56 38763 0 33740 74 0 74 74 0 8 0 pdppl 4096 2990 0 2935 66 11 55 56 0 8 0 pvpl 32 735541 0 716219 200 15 185 185 0 265 23 pmappl 248 1490 0 1463 2 0 2 2 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 1171 0 24 33 0 33 33 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff8282fff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff8290f450) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8290f450) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x28 kd_curproc sys/dev/kcov.c:564 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x28 sys/dev/kcov.c:143 __mp_lock(ffffffff8290f450) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8290f450) at __mp_lock+0x133 sys/kern/kern_lock.c:147 uvm_fault(fffffd8066c822f0,55660a59000,0,4) at uvm_fault+0x233 sys/uvm/uvm_fault.c:639 upageflttrap(ffff800022c675e0,55660a59c00) at upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 usertrap(ffff800022c675e0) at usertrap+0x1aa sys/arch/amd64/amd64/trap.c:403 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7fffff0e20, count: 3 ddb{0}> trace x86_ipi_db(ffffffff8282fff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff8290f450) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8290f450) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x28 kd_curproc sys/dev/kcov.c:564 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x28 sys/dev/kcov.c:143 __mp_lock(ffffffff8290f450) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8290f450) at __mp_lock+0x133 sys/kern/kern_lock.c:147 uvm_fault(fffffd8066c822f0,55660a59000,0,4) at uvm_fault+0x233 sys/uvm/uvm_fault.c:639 upageflttrap(ffff800022c675e0,55660a59c00) at upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 usertrap(ffff800022c675e0) at usertrap+0x1aa sys/arch/amd64/amd64/trap.c:403 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7fffff0e20, count: -12 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff82457a9f) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff824c5cc1,ffffffff824f1f1b,1af,ffffffff82493db5) at __assert+0x25 sys/kern/subr_prf.c:161 dt_ioctl_record_stop(ffff800000b26300) at dt_ioctl_record_stop+0x165 sys/dev/dt/dt_dev.c:431 dtclose(11e6e,1,2000,ffff80002125aa80) at dtclose+0xe2 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline] dtclose(11e6e,1,2000,ffff80002125aa80) at dtclose+0xe2 sys/dev/dt/dt_dev.c:204 spec_close(ffff80002449f160) at spec_close+0x363 sys/kern/spec_vnops.c:572 VOP_CLOSE(fffffd8066b87e38,1,fffffd807f7d87e0,ffff80002125aa80) at VOP_CLOSE+0xe3 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806691ce60,ffff80002125aa80) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806691ce60,ffff80002125aa80) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:624 fdrop(fffffd806691ce60,ffff80002125aa80) at fdrop+0xc7 sys/kern/kern_descrip.c:1279 closef(fffffd806691ce60,ffff80002125aa80) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002125aa80) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002125aa80,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:202 sys_exit(ffff80002125aa80,ffff80002449f3f0,ffff80002449f450) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80002449f4c0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002449f4c0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 end trace frame: 0xffff80002449f540, count: 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff82457a9f) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff824c5cc1,ffffffff824f1f1b,1af,ffffffff82493db5) at __assert+0x25 sys/kern/subr_prf.c:161 dt_ioctl_record_stop(ffff800000b26300) at dt_ioctl_record_stop+0x165 sys/dev/dt/dt_dev.c:431 dtclose(11e6e,1,2000,ffff80002125aa80) at dtclose+0xe2 dt_pcb_purge sys/dev/dt/dt_dev.c:582 [inline] dtclose(11e6e,1,2000,ffff80002125aa80) at dtclose+0xe2 sys/dev/dt/dt_dev.c:204 spec_close(ffff80002449f160) at spec_close+0x363 sys/kern/spec_vnops.c:572 VOP_CLOSE(fffffd8066b87e38,1,fffffd807f7d87e0,ffff80002125aa80) at VOP_CLOSE+0xe3 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806691ce60,ffff80002125aa80) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806691ce60,ffff80002125aa80) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:624 fdrop(fffffd806691ce60,ffff80002125aa80) at fdrop+0xc7 sys/kern/kern_descrip.c:1279 closef(fffffd806691ce60,ffff80002125aa80) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002125aa80) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002125aa80,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:202 sys_exit(ffff80002125aa80,ffff80002449f3f0,ffff80002449f450) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80002449f4c0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002449f4c0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdd280, count: -15