panic: timeout_add: to_ticks (-1) < 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *472800 63551 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,ffffffff) at timeout_add+0x179 sys/kern/kern_timeout.c:190 pcppi_bell(ffff800000669200,fffffffc,ffffffff,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800014a02940,2,ffff8000ffff8710) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800014a02940,2,ffff8000ffff8710) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd802c30b760,20005302,ffff800014a02940,2,fffffd803f7c7a20,ffff8000ffff8710) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd802ff44a60,20005302,ffff800014a02940,ffff8000ffff8710) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000ffff8710,ffff800014a02a88,ffff800014a02a70) at sys_ioctl+0x62d syscall(ffff800014a02b20) at syscall+0x535 Xsyscall(6,0,ffffffffffffff88,0,3,c827f0ab010) at Xsyscall+0x128 end of kernel end trace frame: 0xc855bfe97c0, 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 (-1) < 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,ffffffff) at timeout_add+0x179 sys/kern/kern_timeout.c:190 pcppi_bell(ffff800000669200,fffffffc,ffffffff,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800014a02940,2,ffff8000ffff8710) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800014a02940,2,ffff8000ffff8710) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd802c30b760,20005302,ffff800014a02940,2,fffffd803f7c7a20,ffff8000ffff8710) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd802ff44a60,20005302,ffff800014a02940,ffff8000ffff8710) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000ffff8710,ffff800014a02a88,ffff800014a02a70) at sys_ioctl+0x62d syscall(ffff800014a02b20) at syscall+0x535 Xsyscall(6,0,ffffffffffffff88,0,3,c827f0ab010) at Xsyscall+0x128 end of kernel end trace frame: 0xc855bfe97c0, count: -10 ddb> show registers rdi 0xffffffff815c3ec7 db_enter+0x17 rsi 0x118c __ALIGN_SIZE+0x18c rbp 0xffff800014a02560 rbx 0xffff800014a02610 rdx 0x118d __ALIGN_SIZE+0x18d rcx 0xffff800000938000 rax 0xffff800000938000 r8 0xffff800014a02520 r9 0x1 r10 0xffff800000932840 r11 0xe0b7f7922e5049a r12 0x3000000008 r13 0xffff800014a02570 r14 0x100 r15 0x1 rip 0xffffffff815c3ec8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a02550 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=472800 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff9070,0xffffffff8222df20 process=0xffff8000149a9a60 user=0xffff8000149fd000, vmspace=0xfffffd803f014c60 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 63551 29342 26895 0 2 0 syz-executor.0 *63551 472800 26895 0 7 0x4000000 syz-executor.0 44975 477489 18147 60929 2 0x10 syz-executor.1 44975 49054 18147 60929 3 0x4000090 fsleep syz-executor.1 16069 279882 0 0 3 0x14200 bored sosplice 18147 388089 107 0 3 0x82 nanosleep syz-executor.1 26895 417005 107 0 3 0x82 nanosleep syz-executor.0 107 415090 99180 0 3 0x82 thrsleep syz-fuzzer 107 207582 99180 0 3 0x4000082 thrsleep syz-fuzzer 107 416264 99180 0 3 0x4000082 thrsleep syz-fuzzer 107 166266 99180 0 3 0x4000082 thrsleep syz-fuzzer 107 35419 99180 0 3 0x4000082 kqread syz-fuzzer 107 40697 99180 0 3 0x4000082 thrsleep syz-fuzzer 107 358685 99180 0 3 0x4000082 thrsleep syz-fuzzer 99180 458105 76793 0 3 0x10008a pause ksh 76793 139030 33591 0 3 0x92 select sshd 67384 240871 1 0 3 0x100083 ttyin getty 33591 28932 1 0 3 0x80 select sshd 71361 24919 60038 73 3 0x100090 kqread syslogd 60038 317318 1 0 3 0x100082 netio syslogd 73659 12017 1 77 3 0x100090 poll dhclient 51096 240056 1 0 3 0x80 poll dhclient 47293 485742 0 0 2 0x14200 zerothread 90468 104933 0 0 3 0x14200 aiodoned aiodoned 40972 169631 0 0 3 0x14200 syncer update 58997 30375 0 0 3 0x14200 cleaner cleaner 54926 314344 0 0 3 0x14200 reaper reaper 71190 450632 0 0 3 0x14200 pgdaemon pagedaemon 34862 141917 0 0 3 0x14200 bored crynlk 42727 42729 0 0 3 0x14200 bored crypto 87041 429728 0 0 3 0x40014200 acpi0 acpi0 64508 485446 0 0 3 0x14200 bored softnet 18627 61142 0 0 3 0x14200 bored systqmp 84403 30520 0 0 3 0x14200 bored systq 64678 340603 0 0 3 0x40014200 bored softclock 68665 173127 0 0 3 0x40014200 idle0 1 311452 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 9493 6344K 6351K 78643K 10738 0 0 pcb 23 9K 10K 78643K 309 0 0 rtable 100 3K 3K 78643K 233 0 0 ifaddr 52 12K 13K 78643K 85 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 19 0 0 iov 0 0K 16K 78643K 77 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1199 75K 75K 78643K 1520 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 11 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 64 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1777 193K 286K 78643K 12501 0 0 file desc 6 17K 25K 78643K 513 0 0 sigio 0 0K 0K 78643K 4 0 0 proc 41 30K 46K 78643K 326 0 0 subproc 64 65538K 67586K 78643K 72 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 83 0 0 in_multi 33 2K 2K 78643K 44 0 0 ether_multi 1 0K 0K 78643K 3 0 0 mrt 0 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 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 215 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 80 20K 22K 78643K 2011 0 0 UVM aobj 28 3K 3K 78643K 33 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 14 0 0 NDP 10 0K 0K 78643K 22 0 0 temp 144 2344K 2410K 78643K 4163 0 0 kqueue 0 0K 0K 78643K 4 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 266 0 259 1 0 1 1 0 8 0 plimitpl 152 23 0 16 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 98 0 94 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 7 0 7 3 3 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 184 0 0 12 0 12 12 0 8 0 art_table 32 185 0 0 2 0 2 2 0 8 0 art_node 16 40 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 2 1 0 1 1 0 8 0 semapl 112 60 0 50 1 0 1 1 0 8 0 shmpl 112 31 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2417 0 1003 46 0 46 46 0 8 0 ffsino 240 2417 0 1003 84 0 84 84 0 8 0 nchpl 144 3337 0 1714 61 0 61 61 0 8 0 uvmvnodes 72 2501 0 0 46 0 46 46 0 8 0 vnodes 200 2501 0 0 132 0 132 132 0 8 0 namei 1024 9408 0 9408 2 1 1 1 0 8 1 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 9899 0 9899 11 10 1 6 0 8 1 sigapl 432 681 0 667 2 0 2 2 0 8 0 futexpl 56 8464 0 8463 1 0 1 1 0 8 0 knotepl 112 162 0 135 3 2 1 2 0 8 0 kqueuepl 104 161 0 159 1 0 1 1 0 8 0 pipepl 112 434 0 415 2 1 1 1 0 8 0 fdescpl 424 682 0 667 2 0 2 2 0 8 0 filepl 120 4192 0 4097 4 0 4 4 0 8 1 lockfpl 104 163 0 162 3 2 1 1 0 8 0 lockfspl 32 308 0 307 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 1174 0 1166 1 0 1 1 0 8 0 zombiepl 144 667 0 667 2 1 1 1 0 8 1 processpl 840 696 0 667 5 1 4 4 0 8 0 procpl 600 1426 0 1389 4 0 4 4 0 8 1 sosppl 128 5 0 5 2 2 0 1 0 8 0 sockpl 384 508 0 491 3 0 3 3 0 8 1 mcl64k 65536 1006 0 1006 69 45 24 64 0 8 24 mcl16k 16384 3 0 3 2 2 0 1 0 8 0 mcl12k 12288 16 0 16 2 1 1 1 0 8 1 mcl9k 9216 10 0 10 4 3 1 1 0 8 1 mcl8k 8192 13 0 13 5 4 1 1 0 8 1 mcl4k 4096 36 0 36 3 2 1 1 0 8 1 mcl2k2 2112 5 0 5 3 3 0 1 0 8 0 mcl2k 2048 43649 0 43614 13 8 5 10 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 74808 0 74746 58 53 5 37 0 8 0 bufpl 256 7247 0 1930 333 0 333 333 0 8 0 anonpl 16 89493 0 81523 66 17 49 50 0 62 16 amapchunkpl 152 3107 0 3016 15 8 7 14 0 158 3 amappl16 192 3910 0 3495 55 26 29 33 0 8 8 amappl15 184 266 0 263 1 0 1 1 0 8 0 amappl14 176 272 0 267 2 1 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 12 0 10 2 1 1 1 0 8 0 amappl11 152 409 0 398 1 0 1 1 0 8 0 amappl10 144 56 0 54 2 1 1 1 0 8 0 amappl9 136 570 0 566 1 0 1 1 0 8 0 amappl8 128 137 0 119 1 0 1 1 0 8 0 amappl7 120 38 0 33 1 0 1 1 0 8 0 amappl6 112 52 0 46 1 0 1 1 0 8 0 amappl5 104 413 0 399 1 0 1 1 0 8 0 amappl4 96 263 0 242 1 0 1 1 0 8 0 amappl3 88 163 0 158 1 0 1 1 0 8 0 amappl2 80 5585 0 5524 2 0 2 2 0 8 0 amappl1 72 21520 0 21085 25 15 10 19 0 8 0 amappl 72 1638 0 1603 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 32 0 5 1 0 1 1 0 8 0 uaddrrnd 24 682 0 667 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 682 0 667 1 0 1 1 0 8 0 vmmpekpl 168 8366 0 8346 2 0 2 2 0 8 0 vmmpepl 168 79848 0 78411 106 33 73 74 0 357 10 vmsppl 264 681 0 667 2 1 1 2 0 8 0 pdppl 4096 1370 0 1334 6 1 5 6 0 8 0 pvpl 32 322222 0 311203 238 38 200 207 0 265 110 pmappl 192 681 0 667 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 594 0 118 15 0 15 15 0 8 0