panic: timeout_add: to_ticks (-289867588) < 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *299217 96444 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x15c sys/kern/subr_prf.c:208 timeout_add(ffff800000669260,eeb8f8bc) at timeout_add+0x179 sys/kern/kern_timeout.c:190 pcppi_bell(ffff800000669200,6f14f2c5,eeb8f8bc,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800014a3af50,2,ffff80001495ce20) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800014a3af50,2,ffff80001495ce20) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd8030e84868,20005302,ffff800014a3af50,2,fffffd803f7c7960,ffff80001495ce20) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8030c09ae0,20005302,ffff800014a3af50,ffff80001495ce20) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff80001495ce20,ffff800014a3b098,ffff800014a3b080) at sys_ioctl+0x62d syscall(ffff800014a3b130) at syscall+0x535 Xsyscall(6,0,ffffffffffffff88,0,3,3c3f9d83010) at Xsyscall+0x128 end of kernel end trace frame: 0x3c6e21ff270, count: 5 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic timeout_add: to_ticks (-289867588) < 0 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x15c sys/kern/subr_prf.c:208 timeout_add(ffff800000669260,eeb8f8bc) at timeout_add+0x179 sys/kern/kern_timeout.c:190 pcppi_bell(ffff800000669200,6f14f2c5,eeb8f8bc,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800014a3af50,2,ffff80001495ce20) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800014a3af50,2,ffff80001495ce20) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd8030e84868,20005302,ffff800014a3af50,2,fffffd803f7c7960,ffff80001495ce20) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8030c09ae0,20005302,ffff800014a3af50,ffff80001495ce20) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff80001495ce20,ffff800014a3b098,ffff800014a3b080) at sys_ioctl+0x62d syscall(ffff800014a3b130) at syscall+0x535 Xsyscall(6,0,ffffffffffffff88,0,3,3c3f9d83010) at Xsyscall+0x128 end of kernel end trace frame: 0x3c6e21ff270, count: -10 ddb> show registers rdi 0xffffffff814d63b7 db_enter+0x17 rsi 0x1699 __ALIGN_SIZE+0x699 rbp 0xffff800014a3ab70 rbx 0xffff800014a3ac20 rdx 0x169a __ALIGN_SIZE+0x69a rcx 0xffff800000938000 rax 0xffff800000938000 r8 0xffff800014a3ab30 r9 0x1 r10 0xffff800000932900 r11 0xfa04b01180d89ea0 r12 0x3000000008 r13 0xffff800014a3ab80 r14 0x100 r15 0x1 rip 0xffffffff814d63b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a3ab60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=299217 stat=onproc flags process=0 proc=4000000 pri=21, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff80001495d9d8,0xffff8000ffff8bd0 process=0xffff8000149a3088 user=0xffff800014a36000, vmspace=0xfffffd803f014e70 estcpu=28, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 58651 356765 92722 0 3 0x80 nanosleep syz-executor.1 58651 367585 92722 0 3 0x4000080 ttyout syz-executor.1 58651 214172 92722 0 3 0x4000080 fsleep syz-executor.1 96444 275504 37586 0 2 0 syz-executor.0 *96444 299217 37586 0 7 0x4000000 syz-executor.0 96444 138264 37586 0 3 0x4000080 bell syz-executor.0 21748 514881 1 0 3 0x100083 ttyin getty 33446 483129 0 0 3 0x14200 bored sosplice 92722 300491 33603 0 3 0x82 nanosleep syz-executor.1 37586 424672 33603 0 3 0x82 nanosleep syz-executor.0 33603 301207 9126 0 3 0x82 thrsleep syz-fuzzer 33603 11110 9126 0 3 0x4000082 thrsleep syz-fuzzer 33603 6145 9126 0 3 0x4000082 thrsleep syz-fuzzer 33603 160571 9126 0 3 0x4000082 kqread syz-fuzzer 33603 334278 9126 0 3 0x4000082 thrsleep syz-fuzzer 33603 92218 9126 0 3 0x4000082 thrsleep syz-fuzzer 33603 94978 9126 0 3 0x4000082 thrsleep syz-fuzzer 9126 7099 39837 0 3 0x10008a pause ksh 39837 46536 35534 0 3 0x92 select sshd 35534 5577 1 0 3 0x80 select sshd 63231 211413 77505 73 3 0x100090 kqread syslogd 77505 9747 1 0 3 0x100082 netio syslogd 85268 285500 1 77 3 0x100090 poll dhclient 39694 475163 1 0 3 0x80 poll dhclient 94641 347728 0 0 3 0x14200 pgzero zerothread 40287 159142 0 0 3 0x14200 aiodoned aiodoned 28261 451729 0 0 3 0x14200 syncer update 61046 263587 0 0 3 0x14200 cleaner cleaner 18163 118438 0 0 3 0x14200 reaper reaper 14795 148077 0 0 3 0x14200 pgdaemon pagedaemon 72726 238126 0 0 3 0x14200 bored crynlk 89982 38951 0 0 3 0x14200 bored crypto 33867 132777 0 0 3 0x40014200 acpi0 acpi0 44375 241078 0 0 3 0x14200 bored softnet 71608 366602 0 0 3 0x14200 bored systqmp 35779 231775 0 0 3 0x14200 bored systq 2950 62515 0 0 3 0x40014200 bored softclock 82035 117814 0 0 3 0x40014200 idle0 1 397244 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9505 6348K 6364K 78643K 11045 0 0 pcb 24 9K 10K 78643K 882 0 0 rtable 100 3K 3K 78643K 391 0 0 ifaddr 55 13K 13K 78643K 181 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 24 0 0 iov 0 0K 24K 78643K 201 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1191 75K 76K 78643K 2133 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 32 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 187 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1777 193K 286K 78643K 12501 0 0 file desc 6 17K 25K 78643K 1483 0 0 sigio 0 0K 0K 78643K 8 0 0 proc 41 30K 54K 78643K 459 0 0 subproc 64 65538K 67586K 78643K 69 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 217 0 0 in_multi 33 2K 2K 78643K 104 0 0 ether_multi 1 0K 0K 78643K 12 0 0 mrt 0 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 313 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 87 21K 60K 78643K 4355 0 0 UVM aobj 93 5K 5K 78643K 103 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 48 0 0 NDP 11 0K 0K 78643K 49 0 0 temp 163 2347K 2416K 78643K 6757 0 0 kqueue 0 0K 0K 78643K 19 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 4 0 0 1 0 1 1 0 8 0 inpcbpl 280 773 0 765 1 0 1 1 0 8 0 plimitpl 152 25 0 18 1 0 1 1 0 8 0 rtentry 112 41 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 278 0 274 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 25 0 25 8 7 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 185 0 0 12 0 12 12 0 8 0 art_table 32 186 0 0 2 0 2 2 0 8 0 art_node 16 40 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 6 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 185 0 175 1 0 1 1 0 8 0 shmpl 112 101 0 10 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4316 0 2892 47 0 47 47 0 8 0 ffsino 240 4316 0 2892 84 0 84 84 0 8 0 nchpl 144 6681 0 5054 61 0 61 61 0 8 0 uvmvnodes 72 4474 0 0 82 0 82 82 0 8 0 vnodes 200 4474 0 0 236 0 236 236 0 8 0 namei 1024 20447 0 20447 2 1 1 1 0 8 1 scsiplug 64 4 0 4 3 3 0 1 0 8 0 scxspl 192 21991 0 21991 11 10 1 5 0 8 1 sigapl 432 1652 0 1638 2 0 2 2 0 8 0 futexpl 56 24906 0 24905 1 0 1 1 0 8 0 knotepl 112 463 0 436 7 6 1 2 0 8 0 kqueuepl 104 530 0 528 1 0 1 1 0 8 0 pipepl 112 1064 0 1045 4 3 1 2 0 8 0 fdescpl 424 1653 0 1638 2 0 2 2 0 8 0 filepl 120 10943 0 10839 4 0 4 4 0 8 0 lockfpl 104 460 0 458 2 1 1 1 0 8 0 lockfspl 32 685 0 683 2 1 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 35 0 25 1 0 1 1 0 8 0 ucredpl 96 3380 0 3373 1 0 1 1 0 8 0 zombiepl 144 1638 0 1638 2 1 1 1 0 8 1 processpl 840 1667 0 1638 5 1 4 4 0 8 0 procpl 600 3698 0 3659 5 1 4 4 0 8 1 sosppl 128 15 0 15 4 3 1 1 0 8 1 sockpl 384 1546 0 1528 3 0 3 3 0 8 0 mcl64k 65536 501 0 501 60 59 1 29 0 8 1 mcl16k 16384 6 0 6 5 4 1 1 0 8 1 mcl12k 12288 34 0 34 6 6 0 1 0 8 0 mcl9k 9216 22 0 22 8 7 1 1 0 8 1 mcl8k 8192 23 0 23 9 8 1 1 0 8 1 mcl4k 4096 82 0 82 3 2 1 1 0 8 1 mcl2k2 2112 4 0 4 2 2 0 1 0 8 0 mcl2k 2048 45546 0 45510 17 11 6 10 0 8 1 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 81886 0 81838 33 28 5 19 0 8 0 bufpl 256 9575 0 4192 337 0 337 337 0 8 0 anonpl 16 195564 0 187216 93 43 50 51 0 62 15 amapchunkpl 152 16534 0 16448 260 153 107 189 0 158 102 amappl16 192 10802 0 10355 108 77 31 35 0 8 8 amappl15 184 2 0 1 1 0 1 1 0 8 0 amappl14 176 6 0 5 2 1 1 1 0 8 0 amappl13 168 1490 0 1483 1 0 1 1 0 8 0 amappl12 160 7 0 7 1 1 0 1 0 8 0 amappl11 152 181 0 171 1 0 1 1 0 8 0 amappl10 144 59 0 58 2 1 1 1 0 8 0 amappl9 136 258 0 254 1 0 1 1 0 8 0 amappl8 128 147 0 122 1 0 1 1 0 8 0 amappl7 120 1500 0 1492 1 0 1 1 0 8 0 amappl6 112 51 0 45 1 0 1 1 0 8 0 amappl5 104 331 0 318 1 0 1 1 0 8 0 amappl4 96 280 0 257 2 1 1 2 0 8 0 amappl3 88 252 0 246 1 0 1 1 0 8 0 amappl2 80 15288 0 15231 2 0 2 2 0 8 0 amappl1 72 38348 0 37915 25 15 10 19 0 8 0 amappl 72 3932 0 3897 1 0 1 1 0 75 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 102 0 10 2 0 2 2 0 8 0 uaddrrnd 24 1653 0 1638 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1653 0 1638 1 0 1 1 0 8 0 vmmpekpl 168 15118 0 15094 2 0 2 2 0 8 0 vmmpepl 168 181509 0 180040 143 68 75 75 0 357 11 vmsppl 264 1652 0 1638 2 1 1 2 0 8 0 pdppl 4096 3312 0 3276 6 1 5 6 0 8 0 pvpl 32 632851 0 621399 272 102 170 230 0 265 77 pmappl 192 1652 0 1638 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 575 0 116 15 0 15 15 0 8 0