panic: timeout_add: to_ticks (-2) < 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *173394 18629 60929 0x1010 0x4080000 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,fffffffe) at timeout_add+0x179 sys/kern/kern_timeout.c:190 pcppi_bell(ffff800000669200,48969231,fffffffe,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800014a2a420,2,ffff8000ffff8968) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800014a2a420,2,ffff8000ffff8968) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd8032f27720,20005302,ffff800014a2a420,2,fffffd803f7c7900,ffff8000ffff8968) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd802feaada8,20005302,ffff800014a2a420,ffff8000ffff8968) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000ffff8968,ffff800014a2a568,ffff800014a2a550) at sys_ioctl+0x62d syscall(ffff800014a2a600) at syscall+0x535 Xsyscall(6,0,ffffffffffffff88,0,3,e0f2c100010) at Xsyscall+0x128 end of kernel end trace frame: 0xe11ea5a81d0, 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 (-2) < 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,fffffffe) at timeout_add+0x179 sys/kern/kern_timeout.c:190 pcppi_bell(ffff800000669200,48969231,fffffffe,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800014a2a420,2,ffff8000ffff8968) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800014a2a420,2,ffff8000ffff8968) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd8032f27720,20005302,ffff800014a2a420,2,fffffd803f7c7900,ffff8000ffff8968) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd802feaada8,20005302,ffff800014a2a420,ffff8000ffff8968) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000ffff8968,ffff800014a2a568,ffff800014a2a550) at sys_ioctl+0x62d syscall(ffff800014a2a600) at syscall+0x535 Xsyscall(6,0,ffffffffffffff88,0,3,e0f2c100010) at Xsyscall+0x128 end of kernel end trace frame: 0xe11ea5a81d0, count: -10 ddb> show registers rdi 0xffffffff811af457 db_enter+0x17 rsi 0x11b1 __ALIGN_SIZE+0x1b1 rbp 0xffff800014a2a040 rbx 0xffff800014a2a0f0 rdx 0x11b2 __ALIGN_SIZE+0x1b2 rcx 0xffff800000938000 rax 0xffff800000938000 r8 0xffff800014a2a000 r9 0x1 r10 0xffff800000932f00 r11 0x4af88f42ee040df8 r12 0x3000000008 r13 0xffff800014a2a050 r14 0x100 r15 0x1 rip 0xffffffff811af458 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a2a030 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=173394 stat=onproc flags process=1010 proc=4080000 pri=21, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8bc0,0xffff8000ffff8720 process=0xffff8000149a29f8 user=0xffff800014a25000, vmspace=0xfffffd803f015e70 estcpu=6, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 28567 494187 66310 0 2 0 syz-executor.1 28567 297726 66310 0 3 0x4000080 fsleep syz-executor.1 18629 125462 861 60929 3 0x3010 suspend syz-executor.0 *18629 173394 861 60929 7 0x4081010 syz-executor.0 18629 287423 861 60929 2 0x4081090 syz-executor.0 84442 360426 0 0 3 0x14200 bored sosplice 66310 41888 95749 0 3 0x82 nanosleep syz-executor.1 861 405811 95749 0 3 0x82 nanosleep syz-executor.0 95749 319864 22667 0 3 0x82 thrsleep syz-fuzzer 95749 234365 22667 0 3 0x4000082 thrsleep syz-fuzzer 95749 356965 22667 0 3 0x4000082 thrsleep syz-fuzzer 95749 3384 22667 0 3 0x4000082 kqread syz-fuzzer 95749 450082 22667 0 3 0x4000082 thrsleep syz-fuzzer 95749 500367 22667 0 3 0x4000082 thrsleep syz-fuzzer 95749 120822 22667 0 3 0x4000082 thrsleep syz-fuzzer 22667 256310 37807 0 3 0x10008a pause ksh 37807 313207 72231 0 3 0x92 select sshd 31927 34259 1 0 3 0x100083 ttyin getty 72231 197964 1 0 3 0x80 select sshd 80530 89713 36690 73 3 0x100090 kqread syslogd 36690 180491 1 0 3 0x100082 netio syslogd 52079 371928 1 77 3 0x100090 poll dhclient 59073 302377 1 0 3 0x80 poll dhclient 9668 121363 0 0 2 0x14200 zerothread 60889 205091 0 0 3 0x14200 aiodoned aiodoned 6752 307357 0 0 3 0x14200 syncer update 29000 54013 0 0 3 0x14200 cleaner cleaner 1622 104025 0 0 3 0x14200 reaper reaper 3827 92980 0 0 3 0x14200 pgdaemon pagedaemon 4018 92266 0 0 3 0x14200 bored crynlk 74644 77558 0 0 3 0x14200 bored crypto 58732 40673 0 0 3 0x40014200 acpi0 acpi0 6505 251383 0 0 3 0x14200 bored softnet 60979 218534 0 0 3 0x14200 bored systqmp 95288 45515 0 0 3 0x14200 bored systq 82116 440741 0 0 3 0x40014200 bored softclock 74176 390139 0 0 3 0x40014200 idle0 1 421064 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 9480 6340K 6344K 78643K 10647 0 0 pcb 23 9K 10K 78643K 166 0 0 rtable 100 3K 3K 78643K 220 0 0 ifaddr 48 11K 12K 78643K 75 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 15 0 0 iov 0 0K 12K 78643K 31 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1207 76K 76K 78643K 1331 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 10 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 45 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1777 193K 286K 78643K 12501 0 0 file desc 6 17K 25K 78643K 220 0 0 proc 41 30K 46K 78643K 281 0 0 subproc 64 65538K 67586K 78643K 68 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 40 0 0 in_multi 33 2K 2K 78643K 56 0 0 ether_multi 1 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 186 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 75 20K 60K 78643K 1294 0 0 UVM aobj 16 2K 2K 78643K 20 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 3 0 0 NDP 9 0K 0K 78643K 20 0 0 temp 124 2336K 2406K 78643K 3351 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 137 0 126 2 1 1 2 0 8 0 plimitpl 152 16 0 9 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 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 544 54 0 46 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 4 0 4 2 2 0 1 0 8 0 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 5 0 2 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 41 0 31 1 0 1 1 0 8 0 shmpl 112 18 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1821 0 415 46 0 46 46 0 8 0 ffsino 240 1821 0 415 83 0 83 83 0 8 0 nchpl 144 2332 0 710 61 0 61 61 0 8 0 uvmvnodes 72 1885 0 0 35 0 35 35 0 8 0 vnodes 200 1885 0 0 100 0 100 100 0 8 0 namei 1024 5933 0 5933 2 1 1 1 0 8 1 scxspl 192 6683 0 6683 8 7 1 6 0 8 1 sigapl 432 388 0 374 2 0 2 2 0 8 0 futexpl 56 3544 0 3542 1 0 1 1 0 8 0 knotepl 112 101 0 74 2 1 1 2 0 8 0 kqueuepl 104 42 0 40 1 0 1 1 0 8 0 pipepl 112 266 0 247 2 1 1 1 0 8 0 fdescpl 424 389 0 374 2 0 2 2 0 8 0 filepl 120 2157 0 2060 4 0 4 4 0 8 1 lockfpl 104 111 0 110 2 1 1 1 0 8 0 lockfspl 32 157 0 156 2 1 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 23 0 13 1 0 1 1 0 8 0 ucredpl 96 372 0 364 1 0 1 1 0 8 0 zombiepl 144 374 0 374 2 1 1 1 0 8 1 processpl 840 403 0 374 5 1 4 4 0 8 0 procpl 600 707 0 669 4 0 4 4 0 8 1 sosppl 128 5 0 5 1 1 0 1 0 8 0 sockpl 384 273 0 252 3 0 3 3 0 8 0 mcl64k 65536 264 0 264 34 1 33 33 0 8 33 mcl12k 12288 6 0 6 1 1 0 1 0 8 0 mcl9k 9216 5 0 5 2 2 0 1 0 8 0 mcl8k 8192 2 0 2 1 1 0 1 0 8 0 mcl4k 4096 23 0 23 3 2 1 1 0 8 1 mcl2k 2048 42994 0 42961 12 7 5 11 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 72040 0 71972 25 4 21 21 0 8 16 bufpl 256 5826 0 1597 265 0 265 265 0 8 0 anonpl 16 50113 0 42154 55 6 49 49 0 62 16 amapchunkpl 152 6370 0 6286 190 31 159 189 0 158 155 amappl16 192 2181 0 1755 35 1 34 34 0 8 12 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 8 0 5 2 1 1 1 0 8 0 amappl13 168 24 0 21 1 0 1 1 0 8 0 amappl12 160 1 0 1 1 1 0 1 0 8 0 amappl11 152 177 0 167 1 0 1 1 0 8 0 amappl10 144 54 0 53 2 1 1 1 0 8 0 amappl9 136 22 0 18 1 0 1 1 0 8 0 amappl8 128 129 0 112 1 0 1 1 0 8 0 amappl7 120 43 0 35 1 0 1 1 0 8 0 amappl6 112 48 0 43 1 0 1 1 0 8 0 amappl5 104 788 0 776 1 0 1 1 0 8 0 amappl4 96 459 0 434 2 1 1 2 0 8 0 amappl3 88 138 0 132 1 0 1 1 0 8 0 amappl2 80 2640 0 2580 2 0 2 2 0 8 0 amappl1 72 16044 0 15608 25 15 10 19 0 8 0 amappl 72 929 0 895 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 19 0 4 1 0 1 1 0 8 0 uaddrrnd 24 389 0 374 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 389 0 374 1 0 1 1 0 8 0 vmmpekpl 168 6603 0 6583 2 0 2 2 0 8 0 vmmpepl 168 48216 0 46779 93 20 73 73 0 357 10 vmsppl 264 388 0 374 2 1 1 2 0 8 0 pdppl 4096 784 0 748 6 1 5 6 0 8 0 pvpl 32 164221 0 153267 138 8 130 130 0 265 40 pmappl 192 388 0 374 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 450 0 19 13 0 13 13 0 8 0