panic: timeout_add: to_ticks (-1715748038) < 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *380555 96169 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,99bbc33a) at timeout_add+0x179 sys/kern/kern_timeout.c:190 pcppi_bell(ffff800000669200,e7a0086d,99bbc33a,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800014a3a590,2,ffff80001495dc30) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800014a3a590,2,ffff80001495dc30) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd80384c7490,20005302,ffff800014a3a590,2,fffffd803f7c7b40,ffff80001495dc30) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd802fedce20,20005302,ffff800014a3a590,ffff80001495dc30) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff80001495dc30,ffff800014a3a6d8,ffff800014a3a6c0) at sys_ioctl+0x62d syscall(ffff800014a3a770) at syscall+0x535 Xsyscall(6,0,ffffffffffffff88,0,3,6099a7ec010) at Xsyscall+0x128 end of kernel end trace frame: 0x60ba7fb87a0, 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 (-1715748038) < 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,99bbc33a) at timeout_add+0x179 sys/kern/kern_timeout.c:190 pcppi_bell(ffff800000669200,e7a0086d,99bbc33a,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800014a3a590,2,ffff80001495dc30) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800014a3a590,2,ffff80001495dc30) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd80384c7490,20005302,ffff800014a3a590,2,fffffd803f7c7b40,ffff80001495dc30) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd802fedce20,20005302,ffff800014a3a590,ffff80001495dc30) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff80001495dc30,ffff800014a3a6d8,ffff800014a3a6c0) at sys_ioctl+0x62d syscall(ffff800014a3a770) at syscall+0x535 Xsyscall(6,0,ffffffffffffff88,0,3,6099a7ec010) at Xsyscall+0x128 end of kernel end trace frame: 0x60ba7fb87a0, count: -10 ddb> show registers rdi 0xffffffff817d3597 db_enter+0x17 rsi 0x1722 __ALIGN_SIZE+0x722 rbp 0xffff800014a3a1b0 rbx 0xffff800014a3a260 rdx 0x1723 __ALIGN_SIZE+0x723 rcx 0xffff800002b3a000 rax 0xffff800002b3a000 r8 0xffff800014a3a170 r9 0x1 r10 0xffff800001939700 r11 0x756ac7e4510095ad r12 0x3000000008 r13 0xffff800014a3a1c0 r14 0x100 r15 0x1 rip 0xffffffff817d3598 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a3a1a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=380555 stat=onproc flags process=0 proc=4000000 pri=76, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff80001495c010,0xffffffff82218b08 process=0xffff8000149a3a60 user=0xffff800014a35000, vmspace=0xfffffd803f014c60 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 96169 288728 33238 0 2 0 syz-executor.0 *96169 380555 33238 0 7 0x4000000 syz-executor.0 24343 507862 0 0 3 0x14200 bored sosplice 33238 422085 29792 0 3 0x82 nanosleep syz-executor.0 35799 494213 29792 0 3 0x82 nanosleep syz-executor.1 29792 299550 17531 0 3 0x82 thrsleep syz-fuzzer 29792 159901 17531 0 3 0x4000082 thrsleep syz-fuzzer 29792 324484 17531 0 3 0x4000082 thrsleep syz-fuzzer 29792 401571 17531 0 3 0x4000082 thrsleep syz-fuzzer 29792 448933 17531 0 3 0x4000082 thrsleep syz-fuzzer 29792 220642 17531 0 3 0x4000082 thrsleep syz-fuzzer 29792 247339 17531 0 3 0x4000082 thrsleep syz-fuzzer 29792 131498 17531 0 3 0x4000082 kqread syz-fuzzer 17531 518022 37655 0 3 0x10008a pause ksh 37655 17501 50830 0 3 0x92 select sshd 78298 80067 1 0 3 0x100083 ttyin getty 50830 122072 1 0 3 0x80 select sshd 40279 42565 2284 73 3 0x100090 kqread syslogd 2284 81098 1 0 3 0x100082 netio syslogd 69266 43481 1 77 3 0x100090 poll dhclient 66700 249790 1 0 3 0x80 poll dhclient 42685 430731 0 0 2 0x14200 zerothread 23296 507007 0 0 3 0x14200 aiodoned aiodoned 16953 216820 0 0 3 0x14200 syncer update 29013 83767 0 0 3 0x14200 cleaner cleaner 13555 398856 0 0 3 0x14200 reaper reaper 41589 256147 0 0 3 0x14200 pgdaemon pagedaemon 66382 144415 0 0 3 0x14200 bored crynlk 47222 107622 0 0 3 0x14200 bored crypto 23509 440702 0 0 3 0x40014200 acpi0 acpi0 97918 61864 0 0 3 0x14200 bored softnet 69533 89902 0 0 3 0x14200 bored systqmp 31536 290532 0 0 3 0x14200 bored systq 63984 416132 0 0 3 0x40014200 bored softclock 51328 492676 0 0 3 0x40014200 idle0 1 491618 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 9469 6327K 6342K 78643K 10674 0 0 pcb 23 9K 11K 78643K 263 0 0 rtable 100 3K 3K 78643K 234 0 0 ifaddr 42 11K 11K 78643K 79 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 17 0 0 iov 0 0K 24K 78643K 47 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1194 75K 75K 78643K 1419 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 5 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 34 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1777 193K 286K 78643K 12501 0 0 file desc 5 13K 25K 78643K 389 0 0 sigio 0 0K 0K 78643K 4 0 0 proc 41 30K 54K 78643K 307 0 0 subproc 64 65538K 67586K 78643K 70 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 58 0 0 in_multi 33 2K 2K 78643K 48 0 0 ether_multi 1 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 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 200 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 78 20K 21K 78643K 1669 0 0 UVM aobj 15 2K 2K 78643K 15 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 16 0 0 NDP 7 0K 0K 78643K 21 0 0 temp 109 2340K 2419K 78643K 3812 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 187 0 180 1 0 1 1 0 8 0 plimitpl 152 18 0 11 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 1 0 1 1 1 0 1 0 8 0 tcpcb 544 67 0 63 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 2 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 5 0 1 1 0 1 1 0 8 0 semapl 112 30 0 20 1 0 1 1 0 8 0 shmpl 112 13 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2177 0 771 46 0 46 46 0 8 0 ffsino 240 2177 0 771 84 0 84 84 0 8 0 nchpl 144 2937 0 1309 61 0 61 61 0 8 0 uvmvnodes 72 2238 0 0 41 0 41 41 0 8 0 vnodes 200 2238 0 0 118 0 118 118 0 8 0 namei 1024 8053 0 8053 3 2 1 1 0 8 1 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 8643 0 8598 11 8 3 6 0 8 0 sigapl 432 557 0 544 2 0 2 2 0 8 0 futexpl 56 5993 0 5993 2 1 1 1 0 8 1 knotepl 112 150 0 123 3 2 1 2 0 8 0 kqueuepl 104 127 0 125 1 0 1 1 0 8 0 pipepl 112 400 0 381 4 2 2 2 0 8 1 fdescpl 424 558 0 544 2 0 2 2 0 8 0 filepl 120 3350 0 3252 5 0 5 5 0 8 2 lockfpl 104 141 0 139 3 2 1 1 0 8 0 lockfspl 32 229 0 227 3 2 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 756 0 748 1 0 1 1 0 8 0 zombiepl 144 544 0 543 2 1 1 1 0 8 0 processpl 840 572 0 543 5 1 4 4 0 8 0 procpl 600 1080 0 1043 5 1 4 4 0 8 1 sosppl 128 5 0 5 2 1 1 1 0 8 1 sockpl 384 421 0 404 5 1 4 4 0 8 2 mcl64k 65536 10 0 10 3 3 0 1 0 8 0 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 6 0 6 2 2 0 1 0 8 0 mcl9k 9216 6 0 6 4 3 1 1 0 8 1 mcl8k 8192 2 0 2 2 2 0 1 0 8 0 mcl4k 4096 27 0 27 4 3 1 1 0 8 1 mcl2k 2048 42906 0 42876 10 5 5 9 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 72291 0 72233 8 2 6 7 0 8 0 bufpl 256 5922 0 1692 265 0 265 265 0 8 0 anonpl 16 73120 0 64997 56 7 49 49 0 62 16 amapchunkpl 152 2316 0 2237 9 5 4 8 0 158 0 amappl16 192 3331 0 2896 47 18 29 33 0 8 7 amappl15 184 201 0 200 1 0 1 1 0 8 0 amappl14 176 8 0 5 2 1 1 1 0 8 0 amappl13 168 198 0 193 1 0 1 1 0 8 0 amappl12 160 2 0 1 1 0 1 1 0 8 0 amappl11 152 176 0 167 1 0 1 1 0 8 0 amappl10 144 55 0 53 1 0 1 1 0 8 0 amappl9 136 25 0 22 1 0 1 1 0 8 0 amappl8 128 136 0 115 1 0 1 1 0 8 0 amappl7 120 37 0 32 1 0 1 1 0 8 0 amappl6 112 51 0 46 1 0 1 1 0 8 0 amappl5 104 972 0 961 1 0 1 1 0 8 0 amappl4 96 435 0 409 2 1 1 2 0 8 0 amappl3 88 146 0 140 1 0 1 1 0 8 0 amappl2 80 4324 0 4273 2 0 2 2 0 8 0 amappl1 72 18566 0 18154 25 15 10 19 0 8 0 amappl 72 1295 0 1264 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 14 0 0 1 0 1 1 0 8 0 uaddrrnd 24 558 0 544 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 558 0 544 1 0 1 1 0 8 0 vmmpekpl 168 7906 0 7885 2 0 2 2 0 8 0 vmmpepl 168 66318 0 64965 91 21 70 70 0 357 7 vmsppl 264 557 0 544 2 1 1 2 0 8 0 pdppl 4096 1122 0 1088 6 1 5 6 0 8 0 pvpl 32 223547 0 212167 143 13 130 130 0 265 38 pmappl 192 557 0 544 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 405 0 21 12 0 12 12 0 8 0