panic: timeout_add: to_ticks (-2) < 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 68273 17847 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,fffffffe) at timeout_add+0x179 sys/kern/kern_timeout.c:190 pcppi_bell(ffff800000669200,10000,fffffffe,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff8000149fc140,2,ffff8000ffff5530) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff8000149fc140,2,ffff8000ffff5530) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd80047571c8,20005302,ffff8000149fc140,2,fffffd803f7c79c0,ffff8000ffff5530) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd802fee7d30,20005302,ffff8000149fc140,ffff8000ffff5530) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000ffff5530,ffff8000149fc288,ffff8000149fc270) at sys_ioctl+0x62d syscall(ffff8000149fc320) at syscall+0x535 Xsyscall(6,0,ffffffffffffff88,0,3,4bbfdd4010) at Xsyscall+0x128 end of kernel end trace frame: 0x4e2b1b8500, 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,10000,fffffffe,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff8000149fc140,2,ffff8000ffff5530) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff8000149fc140,2,ffff8000ffff5530) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd80047571c8,20005302,ffff8000149fc140,2,fffffd803f7c79c0,ffff8000ffff5530) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd802fee7d30,20005302,ffff8000149fc140,ffff8000ffff5530) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000ffff5530,ffff8000149fc288,ffff8000149fc270) at sys_ioctl+0x62d syscall(ffff8000149fc320) at syscall+0x535 Xsyscall(6,0,ffffffffffffff88,0,3,4bbfdd4010) at Xsyscall+0x128 end of kernel end trace frame: 0x4e2b1b8500, count: -10 ddb> show registers rdi 0xffffffff815b6c77 db_enter+0x17 rsi 0x10a2 __ALIGN_SIZE+0xa2 rbp 0xffff8000149fbd60 rbx 0xffff8000149fbe10 rdx 0x10a3 __ALIGN_SIZE+0xa3 rcx 0xffff800002b3a000 rax 0xffff800002b3a000 r8 0xffff8000149fbd20 r9 0x1 r10 0xffff8000017387c0 r11 0xe352f65f59dc3966 r12 0x3000000008 r13 0xffff8000149fbd70 r14 0x100 r15 0x1 rip 0xffffffff815b6c78 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149fbd50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=68273 stat=onproc flags process=0 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff4720,0xffffffff8224a130 process=0xffff8000149a26b0 user=0xffff8000149f7000, vmspace=0xfffffd803f015c60 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 17847 336537 20536 0 2 0 syz-executor.0 *17847 68273 20536 0 7 0x4000000 syz-executor.0 89122 144268 1 0 3 0x100083 ttyin getty 3276 416930 0 0 3 0x14200 bored sosplice 20536 40438 63940 0 3 0x82 nanosleep syz-executor.0 77843 358278 63940 0 3 0x2 biowait syz-executor.1 63940 58801 80974 0 3 0x82 thrsleep syz-fuzzer 63940 520106 80974 0 3 0x4000082 nanosleep syz-fuzzer 63940 126679 80974 0 3 0x4000082 thrsleep syz-fuzzer 63940 134145 80974 0 3 0x4000082 kqread syz-fuzzer 63940 186990 80974 0 3 0x4000082 thrsleep syz-fuzzer 63940 325169 80974 0 3 0x4000082 thrsleep syz-fuzzer 63940 245362 80974 0 3 0x4000082 thrsleep syz-fuzzer 63940 408257 80974 0 3 0x4000082 thrsleep syz-fuzzer 80974 344572 15044 0 3 0x10008a pause ksh 15044 162851 89072 0 3 0x92 select sshd 89072 261890 1 0 3 0x80 select sshd 80715 121735 98468 73 3 0x100090 kqread syslogd 98468 122546 1 0 3 0x100082 netio syslogd 16433 321487 1 77 3 0x100090 poll dhclient 65991 357029 1 0 3 0x80 poll dhclient 44340 362521 0 0 2 0x14200 zerothread 60484 325270 0 0 3 0x14200 aiodoned aiodoned 36023 96414 0 0 3 0x14200 syncer update 34296 192306 0 0 3 0x14200 cleaner cleaner 71186 93487 0 0 3 0x14200 reaper reaper 56249 357666 0 0 3 0x14200 pgdaemon pagedaemon 72595 404218 0 0 3 0x14200 bored crynlk 18482 33273 0 0 3 0x14200 bored crypto 67435 416402 0 0 3 0x40014200 acpi0 acpi0 34417 368487 0 0 3 0x14200 bored softnet 91434 260432 0 0 3 0x14200 bored systqmp 60226 251615 0 0 3 0x14200 bored systq 91934 404473 0 0 3 0x40014200 bored softclock 5209 67455 0 0 3 0x40014200 idle0 1 108189 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 9534 6353K 6371K 78643K 12305 0 0 pcb 23 9K 11K 78643K 2748 0 0 rtable 100 3K 3K 78643K 913 0 0 ifaddr 61 16K 19K 78643K 493 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 57 0 0 iov 0 0K 28K 78643K 627 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1189 74K 76K 78643K 4661 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 86 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 916 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1777 193K 286K 78643K 12501 0 0 file desc 5 13K 25K 78643K 5199 0 0 sigio 1 0K 0K 78643K 103 0 0 proc 42 30K 54K 78643K 1076 0 0 subproc 64 65538K 69634K 78643K 85 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 617 0 0 in_multi 33 2K 2K 78643K 192 0 0 ether_multi 1 0K 0K 78643K 28 0 0 mrt 1 0K 0K 78643K 6 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 126 556K 556K 78643K 126 0 0 exec 0 0K 1K 78643K 657 0 0 pfkey data 0 0K 0K 78643K 4 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 102 22K 40K 78643K 13449 0 0 UVM aobj 130 7K 7K 78643K 140 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 157 0 0 NDP 13 0K 0K 78643K 133 0 0 temp 178 2347K 2416K 78643K 16588 0 0 kqueue 0 0K 0K 78643K 63 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 2360 0 2353 1 0 1 1 0 8 0 plimitpl 152 82 0 75 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 780 0 776 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 97 0 97 29 28 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 22 0 16 1 0 1 1 0 8 0 semapl 112 914 0 904 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 12155 0 10649 49 0 49 49 0 8 0 ffsino 240 12155 0 10649 91 2 89 89 0 8 0 nchpl 144 19838 0 18213 61 0 61 61 0 8 0 uvmvnodes 72 6593 0 0 120 0 120 120 0 8 0 vnodes 200 6593 0 0 347 0 347 347 0 8 0 namei 1024 60907 0 60906 3 2 1 1 0 8 0 scsiplug 64 16 0 16 13 13 0 1 0 8 0 scxspl 192 69993 0 69992 33 32 1 7 0 8 0 sigapl 432 5376 0 5363 2 0 2 2 0 8 0 futexpl 56 83518 0 83518 3 2 1 1 0 8 1 knotepl 112 1193 0 1166 8 7 1 2 0 8 0 kqueuepl 104 1499 0 1497 1 0 1 1 0 8 0 pipepl 112 3408 0 3389 12 10 2 2 0 8 1 fdescpl 424 5377 0 5363 2 0 2 2 0 8 0 filepl 120 33816 0 33720 7 3 4 5 0 8 1 lockfpl 104 1785 0 1784 5 4 1 1 0 8 0 lockfspl 32 2533 0 2532 5 4 1 1 0 8 0 sessionpl 112 26 0 16 1 0 1 1 0 8 0 pgrppl 48 72 0 62 1 0 1 1 0 8 0 ucredpl 96 9915 0 9908 1 0 1 1 0 8 0 zombiepl 144 5363 0 5363 1 0 1 1 0 8 1 processpl 840 5391 0 5363 5 1 4 4 0 8 0 procpl 600 12564 0 12528 4 0 4 4 0 8 0 sosppl 128 70 0 70 16 16 0 1 0 8 0 sockpl 384 4755 0 4738 8 5 3 4 0 8 1 mcl64k 65536 2363 0 2363 189 161 28 33 0 8 28 mcl16k 16384 19 0 19 17 16 1 1 0 8 1 mcl12k 12288 109 0 109 23 22 1 1 0 8 1 mcl9k 9216 113 0 113 26 25 1 1 0 8 1 mcl8k 8192 82 0 82 23 23 0 1 0 8 0 mcl4k 4096 277 0 277 12 12 0 1 0 8 0 mcl2k2 2112 36 0 36 16 15 1 1 0 8 1 mcl2k 2048 50079 0 50045 15 10 5 8 0 8 0 mtagpl 80 4 0 4 2 2 0 1 0 8 0 mbufpl 256 108553 0 108505 108 95 13 20 0 8 8 bufpl 256 19437 0 12849 413 0 413 413 0 8 0 anonpl 16 604961 0 596803 243 193 50 51 0 62 13 amapchunkpl 152 23794 0 23715 86 81 5 14 0 158 0 amappl16 192 34684 0 34252 286 255 31 34 0 8 8 amappl15 184 3 0 1 1 0 1 1 0 8 0 amappl14 176 11 0 6 2 1 1 1 0 8 0 amappl13 168 27 0 24 1 0 1 1 0 8 0 amappl12 160 2623 0 2621 2 1 1 1 0 8 0 amappl11 152 2748 0 2738 1 0 1 1 0 8 0 amappl10 144 67 0 66 1 0 1 1 0 8 0 amappl9 136 2886 0 2882 1 0 1 1 0 8 0 amappl8 128 2799 0 2762 3 1 2 2 0 8 0 amappl7 120 40 0 35 1 0 1 1 0 8 0 amappl6 112 52 0 46 1 0 1 1 0 8 0 amappl5 104 256 0 245 1 0 1 1 0 8 0 amappl4 96 346 0 324 1 0 1 1 0 8 0 amappl3 88 712 0 707 1 0 1 1 0 8 0 amappl2 80 52550 0 52498 2 0 2 2 0 8 0 amappl1 72 102977 0 102555 24 14 10 19 0 8 0 amappl 72 12856 0 12825 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 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 5377 0 5363 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5377 0 5363 1 0 1 1 0 8 0 vmmpekpl 168 39818 0 39798 2 0 2 2 0 8 0 vmmpepl 168 571777 0 570394 221 149 72 77 0 357 6 vmsppl 264 5376 0 5363 2 1 1 2 0 8 0 pdppl 4096 10760 0 10726 6 1 5 6 0 8 0 pvpl 32 2028447 0 2017279 660 517 143 229 0 265 49 pmappl 192 5376 0 5363 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 896 0 324 17 0 17 17 0 8 0