panic: ffs_valloc: dup alloc Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 153742 4605 0 0 0x4000080 1 syz-executor * 81668 65970 0 0x2 0 0K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830de40a) at panic+0x1e5 sys/kern/subr_prf.c:198 ffs_inode_alloc(fffffd806ce02bc0,41ed,fffffd807f7d31a0,ffff80002a0f6428) at ffs_inode_alloc+0x96c sys/ufs/ffs/ffs_alloc.c:404 ufs_mkdir(ffff80002a0f6490) at ufs_mkdir+0x113 sys/ufs/ufs/ufs_vnops.c:1112 VOP_MKDIR(fffffd806cbaf470,ffff80002a0f65f0,ffff80002a0f6620,ffff80002a0f6520) at VOP_MKDIR+0x102 sys/kern/vfs_vops.c:394 domkdirat(ffff80002a03f6e0,ffffff9c,78128fc5e750,1ff) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3100 syscall(ffff80002a0f67a0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a0f67a0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78128fc5e7e0, count: 7 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: ffs_valloc: dup alloc ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830de40a) at panic+0x1e5 sys/kern/subr_prf.c:198 ffs_inode_alloc(fffffd806ce02bc0,41ed,fffffd807f7d31a0,ffff80002a0f6428) at ffs_inode_alloc+0x96c sys/ufs/ffs/ffs_alloc.c:404 ufs_mkdir(ffff80002a0f6490) at ufs_mkdir+0x113 sys/ufs/ufs/ufs_vnops.c:1112 VOP_MKDIR(fffffd806cbaf470,ffff80002a0f65f0,ffff80002a0f6620,ffff80002a0f6520) at VOP_MKDIR+0x102 sys/kern/vfs_vops.c:394 domkdirat(ffff80002a03f6e0,ffffff9c,78128fc5e750,1ff) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3100 syscall(ffff80002a0f67a0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a0f67a0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78128fc5e7e0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a0f61b0 rbx 0xffffffff83495d87 cpu_info_full_primary+0x2d87 rdx 0 rcx 0xffff80002a03f6e0 rax 0xffffffff83494ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xffff80002a0f5f50 r11 0xd84e11ae54a1be3a r12 0xffffffff83495b88 cpu_info_full_primary+0x2b88 r13 0 r14 0 r15 0x1 rip 0xffffffff81662935 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a0f61a0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=81668 pid=65970 tcnt=1 stat=onproc flags process=2 proc=0 runpri=17, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a03f458,0xffff80002a03f978 process=0xffff800029fe96b0 user=0xffff80002a0f1000, vmspace=0xfffffd806c543dd8 estcpu=36, cpticks=2, pctcpu=0.4, user=1, sys=6, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 66377 107203 85268 0 2 0 syz-executor 66377 409811 85268 0 3 0x4000080 ttyin syz-executor 4605 428485 89155 0 3 0x80 nanoslp syz-executor 4605 153742 89155 0 7 0x4000080 syz-executor 4605 280717 89155 0 3 0x4000080 fsleep syz-executor 2724 339982 0 0 3 0x14200 bored sosplice 94641 445000 9824 0 3 0x100082 sbwait arp 9824 115238 57180 0 3 0x10008a sigsusp sh 89155 301257 3273 0 2 0x482 syz-executor *65970 81668 3273 0 7 0x2 syz-executor 85268 481395 3273 0 3 0x82 nanoslp syz-executor 57180 435782 3273 0 3 0x82 wait syz-executor 3273 124845 9652 0 3 0x82 wait syz-executor 9652 234361 85599 0 3 0x10008a sigsusp ksh 85599 92939 255 0 3 0x98 kqread sshd-session 255 3032 58636 0 3 0x92 kqread sshd-session 62258 335167 1 0 3 0x100083 ttyin getty 58636 104389 1 0 3 0x88 kqread sshd 49889 470460 48426 74 3 0x1100092 bpf pflogd 48426 191206 1 0 3 0x80 sbwait pflogd 86651 235615 76985 73 3 0x1100090 kqread syslogd 76985 128449 1 0 3 0x100082 sbwait syslogd 2677 368633 1 0 3 0x100080 kqread resolvd 55096 230513 17871 77 3 0x100092 kqread dhcpleased 18355 402704 17871 77 3 0x100092 kqread dhcpleased 17871 311278 1 0 3 0x80 kqread dhcpleased 45365 509054 0 0 3 0x14200 bored smr 35030 61337 0 0 3 0x14200 pgzero zerothread 52065 38458 0 0 3 0x14200 aiodoned aiodoned 11699 480515 0 0 3 0x14200 syncer update 24742 170275 0 0 3 0x14200 cleaner cleaner 26809 396115 0 0 3 0x14200 reaper reaper 65750 262599 0 0 3 0x14200 pgdaemon pagedaemon 11319 340200 0 0 3 0x14200 bored viomb 23753 143914 0 0 3 0x40014200 acpi0 acpi0 42485 230009 0 0 3 0x40014200 idle1 19549 419985 0 0 3 0x14200 bored softnet3 59101 313118 0 0 3 0x14200 bored softnet2 84774 263094 0 0 3 0x14200 bored softnet1 99938 203302 0 0 3 0x14200 bored softnet0 33371 155740 0 0 3 0x14200 bored systqmp 56309 309600 0 0 3 0x14200 bored systq 92708 410249 0 0 3 0x14200 tmoslp softclockmp 4246 417895 0 0 3 0x40014200 tmoslp softclock 89089 296867 0 0 3 0x40014200 idle0 1 250428 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 65970 (syz-executor) thread 0xffff80002a03f6e0 (81668) exclusive rrwlock inode r = 0 (0xfffffd80726e64e0) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #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 ufs_ihashins+0x4f sys/ufs/ufs/ufs_ihash.c:120 #5 ffs_vget+0x187 sys/ufs/ffs/ffs_vfsops.c:1230 #6 ffs_inode_alloc+0x283 sys/ufs/ffs/ffs_alloc.c:393 #7 ufs_mkdir+0x113 sys/ufs/ufs/ufs_vnops.c:1112 #8 VOP_MKDIR+0x102 sys/kern/vfs_vops.c:394 #9 domkdirat+0x179 sys/kern/vfs_syscalls.c:3100 #10 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] #10 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806ce02c58) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #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 vfs_lookup+0x109 sys/kern/vfs_lookup.c:418 #6 namei+0x7aa sys/kern/vfs_lookup.c:250 #7 domkdirat+0x8b sys/kern/vfs_syscalls.c:3085 #8 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] #8 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8357dcf0) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #1 syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10187 10157K 10452K 166960K 11698 0 pcb 17 12K 12K 166960K 39 0 rtable 230 8K 9K 166960K 604 0 pf 35 17K 20K 166960K 64 0 ifaddr 41 7K 7K 166960K 50 0 ifgroup 55 2K 2K 166960K 68 0 counters 64 36K 36K 166960K 74 0 ioctlops 0 0K 4K 166960K 1494 0 iov 2 2K 12K 166960K 149 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1434 90K 90K 166960K 1645 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 5 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 14 49K 89K 166960K 238 0 sigio 0 0K 0K 166960K 2 0 proc 70 91K 115K 166960K 536 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 14 0 in_multi 89 6K 6K 166960K 93 0 ether_multi 1 0K 0K 166960K 3 0 mrt 0 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 363 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 202 72K 74K 166960K 3842 0 UVM aobj 8 4K 5K 166960K 10 0 pinsyscall 40 80K 104K 166960K 1298 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 4 0 NDP 12 0K 1K 166960K 31 0 temp 134 6819K 6888K 166960K 5100 0 kqueue 13 20K 24K 166960K 43 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 24 0 0 1 0 1 1 0 8 0 rtpcb 120 51 0 46 1 0 1 1 0 8 0 rtentry 112 177 0 75 3 0 3 3 0 8 0 unpcb 144 298 0 279 6 0 6 6 0 8 5 syncache 336 4 0 4 2 1 1 1 0 8 1 tcpcb 808 44 0 40 2 0 2 2 0 8 1 arp 120 20 0 3 1 0 1 1 0 8 0 inpcb 336 171 0 164 2 0 2 2 0 8 1 nd6 136 21 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 4 0 4 1 0 1 1 0 8 1 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 7 0 3 1 0 1 1 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pfstitem 24 24 0 0 1 0 1 1 0 8 0 pfstkey 128 24 0 0 1 0 1 1 0 8 0 pfstate 376 24 0 0 3 0 3 3 0 8 0 pfrule 1344 25 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 424 0 8 27 0 27 27 0 8 0 art_table 32 425 0 8 4 0 4 4 0 8 0 art_node 16 111 0 18 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 0 1 0 1 1 0 8 0 semapl 112 3 0 0 1 0 1 1 0 8 0 shmpl 112 7 0 2 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 1821 0 316 95 0 95 95 0 8 0 ffsino 272 1826 0 321 102 0 102 102 0 8 1 nchpl 144 2162 0 484 63 0 63 63 0 8 0 uvmvnodes 80 2108 0 0 44 0 44 44 0 8 0 vnodes 216 2108 0 0 118 0 118 118 0 8 0 namei 1024 7092 0 7091 1 0 1 1 0 8 0 percpumem 16 51 0 5 1 0 1 1 0 8 0 pfiaddrpl 120 3 0 0 1 0 1 1 0 8 0 kstatmem 264 34 0 10 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 6126 0 6126 3 2 1 2 1 8 1 plimitpl 152 112 0 94 1 0 1 1 0 8 0 sigapl 424 537 0 490 7 0 7 7 0 8 0 futexpl 64 1860 0 1859 1 0 1 1 0 8 0 knotepl 120 309 0 0 10 0 10 10 0 8 0 kqueuepl 216 146 0 137 3 0 3 3 0 8 2 pipepl 320 109 0 82 3 0 3 3 0 8 0 fdescpl 496 518 0 490 5 0 5 5 0 8 0 filepl 152 2769 0 2527 15 0 15 15 0 8 4 lockfpl 104 37 0 35 1 0 1 1 0 8 0 lockfspl 48 17 0 15 1 0 1 1 0 8 0 sessionpl 144 22 0 13 1 0 1 1 0 8 0 pgrppl 48 30 0 13 1 0 1 1 0 8 0 ucredpl 104 475 0 461 1 0 1 1 0 8 0 zombiepl 144 494 0 490 1 0 1 1 0 8 0 processpl 1160 537 0 490 5 0 5 5 0 8 0 procpl 648 762 0 712 7 0 7 7 0 8 1 sosppl 168 1 0 1 1 0 1 1 0 8 1 sockpl 664 526 0 495 15 3 12 15 0 8 8 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 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 248 0 0 31 0 31 31 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 436 0 0 28 0 28 28 0 8 0 bufpl 280 2407 0 97 165 0 165 165 0 8 0 anonpl 24 160162 0 156931 25 1 24 25 0 185 2 amapchunkpl 152 12523 0 12147 22 0 22 22 0 158 3 amappl16 200 4406 0 4391 5 2 3 5 0 8 1 amappl15 192 11 0 11 1 1 0 1 0 8 0 amappl14 184 117 0 104 1 0 1 1 0 8 0 amappl13 176 12 0 12 1 1 0 1 0 8 0 amappl12 168 1157 0 1128 3 1 2 2 0 8 0 amappl11 160 69 0 55 1 0 1 1 0 8 0 amappl10 152 26 0 26 2 2 0 1 0 8 0 amappl9 144 126 0 125 1 0 1 1 0 8 0 amappl8 136 23 0 21 1 0 1 1 0 8 0 amappl7 128 103 0 90 1 0 1 1 0 8 0 amappl6 120 161 0 158 1 0 1 1 0 8 0 amappl5 112 150 0 139 1 0 1 1 0 8 0 amappl4 104 313 0 293 1 0 1 1 0 8 0 amappl3 96 2533 0 2443 4 0 4 4 0 8 0 amappl2 88 622 0 557 2 0 2 2 0 8 0 amappl1 80 8023 0 7419 15 0 15 15 0 8 0 amappl 88 3466 0 3330 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 9 0 2 1 0 1 1 0 8 0 uaddrrnd 24 518 0 490 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 518 0 490 1 0 1 1 0 8 0 vmmpekpl 168 6345 0 6305 2 0 2 2 0 8 0 vmmpepl 168 41014 0 39314 87 0 87 87 0 357 2 vmsppl 440 517 0 490 6 1 5 5 0 8 1 rwobjpl 56 18435 0 15377 44 0 44 44 0 8 0 pdppl 4096 1043 0 980 99 26 73 83 0 8 10 pvpl 32 10307 0 0 85 1 84 84 0 265 0 pmappl 248 517 0 490 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 400 0 29 11 0 11 11 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:437 panic(ffffffff830de40a) at panic+0x1e5 sys/kern/subr_prf.c:198 ffs_inode_alloc(fffffd806ce02bc0,41ed,fffffd807f7d31a0,ffff80002a0f6428) at ffs_inode_alloc+0x96c sys/ufs/ffs/ffs_alloc.c:404 ufs_mkdir(ffff80002a0f6490) at ufs_mkdir+0x113 sys/ufs/ufs/ufs_vnops.c:1112 VOP_MKDIR(fffffd806cbaf470,ffff80002a0f65f0,ffff80002a0f6620,ffff80002a0f6520) at VOP_MKDIR+0x102 sys/kern/vfs_vops.c:394 domkdirat(ffff80002a03f6e0,ffffff9c,78128fc5e750,1ff) at domkdirat+0x179 sys/kern/vfs_syscalls.c:3100 syscall(ffff80002a0f67a0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a0f67a0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78128fc5e7e0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029b7bff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x56 kd_curproc sys/dev/kcov.c:597 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x56 sys/dev/kcov.c:158 __mp_lock(ffffffff8357dae8) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8357dae8) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 __mp_acquire_count(ffffffff8357dae8,1) at __mp_acquire_count+0x58 mi_switch() at mi_switch+0x658 sys/kern/sched_bsd.c:460 sleep_finish(1f5,1) at sleep_finish+0x219 sys/kern/kern_synch.c:416 ttywait_nsec(ffff800000a5d600,12a05f200) at ttywait_nsec+0x214 ttysleep_nsec sys/kern/tty.c:2326 [inline] ttywait_nsec(ffff800000a5d600,12a05f200) at ttywait_nsec+0x214 sys/kern/tty.c:1245 ttylclose(ffff800000a5d600,3,ffff8000ffff2a40) at ttylclose+0x60 ttywflush sys/kern/tty.c:1272 [inline] ttylclose(ffff800000a5d600,3,ffff8000ffff2a40) at ttylclose+0x60 sys/kern/tty.c:1384 comclose(801,3,2000,ffff8000ffff2a40) at comclose+0xcb sys/dev/ic/com.c:438 spec_close(ffff80002d774a20) at spec_close+0x412 VOP_CLOSE(fffffd807e3f42d0,3,fffffd807f7d31a0,ffff8000ffff2a40) at VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806bf19c90,ffff8000ffff2a40) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806bf19c90,ffff8000ffff2a40) at vn_closefile+0x12b sys/kern/vfs_vnops.c:609 end trace frame: 0xffff80002d774b40, count: 0 ddb{1}> trace x86_ipi_db(ffff800029b7bff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x56 kd_curproc sys/dev/kcov.c:597 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x56 sys/dev/kcov.c:158 __mp_lock(ffffffff8357dae8) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8357dae8) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 __mp_acquire_count(ffffffff8357dae8,1) at __mp_acquire_count+0x58 mi_switch() at mi_switch+0x658 sys/kern/sched_bsd.c:460 sleep_finish(1f5,1) at sleep_finish+0x219 sys/kern/kern_synch.c:416 ttywait_nsec(ffff800000a5d600,12a05f200) at ttywait_nsec+0x214 ttysleep_nsec sys/kern/tty.c:2326 [inline] ttywait_nsec(ffff800000a5d600,12a05f200) at ttywait_nsec+0x214 sys/kern/tty.c:1245 ttylclose(ffff800000a5d600,3,ffff8000ffff2a40) at ttylclose+0x60 ttywflush sys/kern/tty.c:1272 [inline] ttylclose(ffff800000a5d600,3,ffff8000ffff2a40) at ttylclose+0x60 sys/kern/tty.c:1384 comclose(801,3,2000,ffff8000ffff2a40) at comclose+0xcb sys/dev/ic/com.c:438 spec_close(ffff80002d774a20) at spec_close+0x412 VOP_CLOSE(fffffd807e3f42d0,3,fffffd807f7d31a0,ffff8000ffff2a40) at VOP_CLOSE+0x133 sys/kern/vfs_vops.c:156 vn_closefile(fffffd806bf19c90,ffff8000ffff2a40) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806bf19c90,ffff8000ffff2a40) at vn_closefile+0x12b sys/kern/vfs_vnops.c:609 fdrop(fffffd806bf19c90,ffff8000ffff2a40) at fdrop+0x126 sys/kern/kern_descrip.c:1274 dofilewritev(ffff8000ffff2a40,3,ffff80002d774c70,0,ffff80002d774d30) at dofilewritev+0x557 sys/kern/sys_generic.c:406 sys_writev(ffff8000ffff2a40,ffff80002d774de0,ffff80002d774d30) at sys_writev+0xd8 sys/kern/sys_generic.c:327 syscall(ffff80002d774de0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002d774de0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xabcbbc31940, count: -19