panic: timeout_add: to_ticks (-2) < 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *211242 57364 0 0 0x4000000 0 syz-executor.1 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,ee,fffffffe,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800014a0fdd0,2,ffff80001495c010) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800014a0fdd0,2,ffff80001495c010) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd803aab7420,20005302,ffff800014a0fdd0,2,fffffd803f7c7960,ffff80001495c010) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8030ba26a8,20005302,ffff800014a0fdd0,ffff80001495c010) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff80001495c010,ffff800014a0ff18,ffff800014a0ff00) at sys_ioctl+0x62d syscall(ffff800014a0ffb0) at syscall+0x535 Xsyscall(6,0,ffffffffffffff88,0,3,d2a2e45010) at Xsyscall+0x128 end of kernel end trace frame: 0xd5238168f0, 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,ee,fffffffe,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800014a0fdd0,2,ffff80001495c010) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800014a0fdd0,2,ffff80001495c010) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd803aab7420,20005302,ffff800014a0fdd0,2,fffffd803f7c7960,ffff80001495c010) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8030ba26a8,20005302,ffff800014a0fdd0,ffff80001495c010) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff80001495c010,ffff800014a0ff18,ffff800014a0ff00) at sys_ioctl+0x62d syscall(ffff800014a0ffb0) at syscall+0x535 Xsyscall(6,0,ffffffffffffff88,0,3,d2a2e45010) at Xsyscall+0x128 end of kernel end trace frame: 0xd5238168f0, count: -10 ddb> show registers rdi 0xffffffff815b6c77 db_enter+0x17 rsi 0x1105 __ALIGN_SIZE+0x105 rbp 0xffff800014a0f9f0 rbx 0xffff800014a0faa0 rdx 0x1106 __ALIGN_SIZE+0x106 rcx 0xffff800001539000 rax 0xffff800001539000 r8 0xffff800014a0f9b0 r9 0x1 r10 0xffff800000932f80 r11 0x294485dc44f190fb r12 0x3000000008 r13 0xffff800014a0fa00 r14 0x100 r15 0x1 rip 0xffffffff815b6c78 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a0f9e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=211242 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff80001495d9d8,0xffffffff8224a130 process=0xffff8000149a8020 user=0xffff800014a0b000, vmspace=0xfffffd803f015d68 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 57364 226729 63263 0 2 0 syz-executor.1 *57364 211242 63263 0 7 0x4000000 syz-executor.1 45090 41336 1 0 3 0x100083 ttyin getty 22516 293687 0 0 3 0x14200 bored sosplice 63263 46638 74840 0 3 0x82 nanosleep syz-executor.1 3868 519869 74840 0 3 0x2 biowait syz-executor.0 74840 132358 27614 0 3 0x82 thrsleep syz-fuzzer 74840 117477 27614 0 3 0x4000082 nanosleep syz-fuzzer 74840 335169 27614 0 3 0x4000082 thrsleep syz-fuzzer 74840 350395 27614 0 3 0x4000082 thrsleep syz-fuzzer 74840 79283 27614 0 3 0x4000082 thrsleep syz-fuzzer 74840 307468 27614 0 3 0x4000082 thrsleep syz-fuzzer 74840 16249 27614 0 3 0x4000082 thrsleep syz-fuzzer 74840 513529 27614 0 3 0x4000082 kqread syz-fuzzer 74840 415086 27614 0 3 0x4000082 thrsleep syz-fuzzer 27614 245475 20794 0 3 0x10008a pause ksh 20794 411121 70971 0 3 0x92 select sshd 70971 37375 1 0 3 0x80 select sshd 10985 403979 19421 73 3 0x100090 kqread syslogd 19421 268032 1 0 3 0x100082 netio syslogd 16076 445493 1 77 3 0x100090 poll dhclient 42371 108487 1 0 3 0x80 poll dhclient 15451 367670 0 0 2 0x14200 zerothread 27730 366599 0 0 3 0x14200 aiodoned aiodoned 21419 232970 0 0 3 0x14200 syncer update 90767 238014 0 0 3 0x14200 cleaner cleaner 55480 373684 0 0 3 0x14200 reaper reaper 44799 444958 0 0 3 0x14200 pgdaemon pagedaemon 3939 227526 0 0 3 0x14200 bored crynlk 45228 51427 0 0 3 0x14200 bored crypto 52828 426640 0 0 3 0x40014200 acpi0 acpi0 54304 310654 0 0 3 0x14200 bored softnet 24511 126870 0 0 3 0x14200 bored systqmp 81725 408190 0 0 3 0x14200 bored systq 90452 459802 0 0 3 0x40014200 bored softclock 51914 418829 0 0 3 0x40014200 idle0 1 136010 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 6336K 6361K 78643K 11007 0 0 pcb 23 9K 11K 78643K 907 0 0 rtable 100 3K 3K 78643K 343 0 0 ifaddr 54 13K 13K 78643K 152 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 23 0 0 iov 0 0K 20K 78643K 200 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1213 76K 77K 78643K 2054 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 13 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 151 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1777 193K 286K 78643K 12501 0 0 file desc 5 13K 25K 78643K 1352 0 0 sigio 0 0K 0K 78643K 26 0 0 proc 42 30K 46K 78643K 479 0 0 subproc 64 65538K 69634K 78643K 88 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 186 0 0 in_multi 33 2K 2K 78643K 71 0 0 ether_multi 1 0K 0K 78643K 2 0 0 mrt 1 0K 0K 78643K 4 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 298 0 0 pfkey data 0 0K 0K 78643K 2 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 81 20K 25K 78643K 4073 0 0 UVM aobj 89 3K 3K 78643K 90 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 59 0 0 NDP 11 0K 0K 78643K 41 0 0 temp 164 2347K 2413K 78643K 6448 0 0 kqueue 0 0K 0K 78643K 7 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 717 0 710 1 0 1 1 0 8 0 plimitpl 152 33 0 26 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 267 0 263 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 20 0 20 7 7 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 22 0 6 1 0 1 1 0 8 0 semapl 112 149 0 139 1 0 1 1 0 8 0 shmpl 112 88 0 1 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4058 0 2624 47 0 47 47 0 8 0 ffsino 240 4058 0 2624 85 0 85 85 0 8 0 nchpl 144 6219 0 4595 61 0 61 61 0 8 0 uvmvnodes 72 4246 0 0 78 0 78 78 0 8 0 vnodes 200 4246 0 0 224 0 224 224 0 8 0 namei 1024 18389 0 18389 1 0 1 1 0 8 1 scsiplug 64 4 0 4 3 3 0 1 0 8 0 scxspl 192 19754 0 19753 14 13 1 6 0 8 0 sigapl 432 1521 0 1508 2 0 2 2 0 8 0 futexpl 56 22432 0 22432 1 0 1 1 0 8 1 knotepl 112 442 0 415 6 5 1 2 0 8 0 kqueuepl 104 483 0 481 1 0 1 1 0 8 0 pipepl 112 986 0 967 6 5 1 2 0 8 0 fdescpl 424 1522 0 1508 2 0 2 2 0 8 0 filepl 120 9754 0 9659 4 0 4 4 0 8 0 lockfpl 104 651 0 650 3 2 1 1 0 8 0 lockfspl 32 1074 0 1073 3 2 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 38 0 28 1 0 1 1 0 8 0 ucredpl 96 2753 0 2746 1 0 1 1 0 8 0 zombiepl 144 1508 0 1508 2 1 1 1 0 8 1 processpl 840 1536 0 1508 5 1 4 4 0 8 0 procpl 600 3430 0 3393 4 0 4 4 0 8 1 sosppl 128 28 0 28 7 6 1 1 0 8 1 sockpl 384 1521 0 1504 5 2 3 4 0 8 1 mcl64k 65536 1517 0 1517 125 107 18 65 0 8 18 mcl16k 16384 3 0 3 2 2 0 1 0 8 0 mcl12k 12288 29 0 29 7 6 1 1 0 8 1 mcl9k 9216 19 0 19 8 7 1 1 0 8 1 mcl8k 8192 14 0 14 5 4 1 1 0 8 1 mcl4k 4096 72 0 72 4 3 1 1 0 8 1 mcl2k2 2112 10 0 10 4 3 1 1 0 8 1 mcl2k 2048 44571 0 44534 16 10 6 9 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 80780 0 80718 72 66 6 37 0 8 0 bufpl 256 8521 0 4285 265 0 265 265 0 8 0 anonpl 16 164534 0 156390 98 48 50 50 0 62 16 amapchunkpl 152 6267 0 6179 12 7 5 9 0 158 1 amappl16 192 9271 0 8844 102 72 30 34 0 8 8 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 6 0 5 2 1 1 1 0 8 0 amappl13 168 690 0 686 1 0 1 1 0 8 0 amappl12 160 17 0 15 2 1 1 1 0 8 0 amappl11 152 845 0 834 1 0 1 1 0 8 0 amappl10 144 59 0 57 2 1 1 1 0 8 0 amappl9 136 994 0 988 1 0 1 1 0 8 0 amappl8 128 145 0 125 1 0 1 1 0 8 0 amappl7 120 38 0 33 1 0 1 1 0 8 0 amappl6 112 53 0 47 1 0 1 1 0 8 0 amappl5 104 185 0 174 1 0 1 1 0 8 0 amappl4 96 948 0 923 2 1 1 2 0 8 0 amappl3 88 178 0 172 1 0 1 1 0 8 0 amappl2 80 14059 0 14011 2 0 2 2 0 8 1 amappl1 72 35911 0 35494 25 15 10 19 0 8 0 amappl 72 3655 0 3622 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 89 0 1 2 0 2 2 0 8 0 uaddrrnd 24 1522 0 1508 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1522 0 1508 1 0 1 1 0 8 0 vmmpekpl 168 14341 0 14320 2 0 2 2 0 8 0 vmmpepl 168 164079 0 162719 123 48 75 75 0 357 11 vmsppl 264 1521 0 1508 2 1 1 2 0 8 0 pdppl 4096 3050 0 3016 6 1 5 6 0 8 0 pvpl 32 467306 0 456229 189 59 130 134 0 265 38 pmappl 192 1521 0 1508 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 600 0 195 14 1 13 14 0 8 0