panic: timeout_add: to_ticks (-6508300) < 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *143189 51704 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:208 timeout_add(ffff8000ffff3828,ff9cb0f4) at timeout_add+0x179 sys/kern/kern_timeout.c:190 msleep(ffff800002966200,ffff800002966208,11a,ffffffff81f573dd,ff9cb0f4) at msleep+0x18e sleep_setup_timeout sys/kern/kern_synch.c:330 [inline] msleep(ffff800002966200,ffff800002966208,11a,ffffffff81f573dd,ff9cb0f4) at msleep+0x18e sys/kern/kern_synch.c:210 bpfread(21700,ffff800014a047f0,0) at bpfread+0x1ef sys/net/bpf.c:486 spec_read(ffff800014a04630) at spec_read+0xf5 sys/kern/spec_vnops.c:223 VOP_READ(fffffd802da1cdd8,ffff800014a047f0,0,fffffd803f7c6ae0) at VOP_READ+0x6f sys/kern/vfs_vops.c:247 vn_read(fffffd802edd5010,ffff800014a047f0,0) at vn_read+0x1c3 sys/kern/vfs_vnops.c:365 dofilereadv(ffff8000ffff3788,3,ffff800014a047f0,0,ffff800014a048d0) at dofilereadv+0x19f sys/kern/sys_generic.c:236 sys_read(ffff8000ffff3788,ffff800014a048e8,ffff800014a048d0) at sys_read+0x92 sys/kern/sys_generic.c:156 syscall(ffff800014a04980) at syscall+0x541 Xsyscall(6,0,ffffffffffffffb9,0,3,9712342b010) at Xsyscall+0x128 end of kernel end trace frame: 0x973c6e8cee0, count: 3 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 (-6508300) < 0 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:208 timeout_add(ffff8000ffff3828,ff9cb0f4) at timeout_add+0x179 sys/kern/kern_timeout.c:190 msleep(ffff800002966200,ffff800002966208,11a,ffffffff81f573dd,ff9cb0f4) at msleep+0x18e sleep_setup_timeout sys/kern/kern_synch.c:330 [inline] msleep(ffff800002966200,ffff800002966208,11a,ffffffff81f573dd,ff9cb0f4) at msleep+0x18e sys/kern/kern_synch.c:210 bpfread(21700,ffff800014a047f0,0) at bpfread+0x1ef sys/net/bpf.c:486 spec_read(ffff800014a04630) at spec_read+0xf5 sys/kern/spec_vnops.c:223 VOP_READ(fffffd802da1cdd8,ffff800014a047f0,0,fffffd803f7c6ae0) at VOP_READ+0x6f sys/kern/vfs_vops.c:247 vn_read(fffffd802edd5010,ffff800014a047f0,0) at vn_read+0x1c3 sys/kern/vfs_vnops.c:365 dofilereadv(ffff8000ffff3788,3,ffff800014a047f0,0,ffff800014a048d0) at dofilereadv+0x19f sys/kern/sys_generic.c:236 sys_read(ffff8000ffff3788,ffff800014a048e8,ffff800014a048d0) at sys_read+0x92 sys/kern/sys_generic.c:156 syscall(ffff800014a04980) at syscall+0x541 Xsyscall(6,0,ffffffffffffffb9,0,3,9712342b010) at Xsyscall+0x128 end of kernel end trace frame: 0x973c6e8cee0, count: -12 ddb> show registers rdi 0xffffffff814177e7 db_enter+0x17 rsi 0x132c __ALIGN_SIZE+0x32c rbp 0xffff800014a04350 rbx 0xffff800014a04400 rdx 0x132d __ALIGN_SIZE+0x32d rcx 0xffff800000d3b000 rax 0xffff800000d3b000 r8 0xffff800014a04310 r9 0x1 r10 0xffff800000930940 r11 0x21f20b1171262482 r12 0x3000000008 r13 0xffff800014a04360 r14 0x100 r15 0x1 rip 0xffffffff814177e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a04340 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=143189 stat=onproc flags process=0 proc=4000000 pri=26, usrpri=82, nice=20 forw=0x0, list=0xffff8000ffff3080,0xffff8000ffff2730 process=0xffff800014962018 user=0xffff8000149ff000, vmspace=0xfffffd803f014840 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 73777 206573 9482 0 2 0 syz-executor.0 73777 277557 9482 0 3 0x4000080 fsleep syz-executor.0 51704 247268 95656 0 2 0 syz-executor.1 *51704 143189 95656 0 7 0x4000000 bpf syz-executor.1 95656 6426 49554 0 3 0x82 nanosleep syz-executor.1 9482 402856 49554 0 3 0x82 nanosleep syz-executor.0 70070 447359 1 0 3 0x100083 ttyin getty 57760 345269 0 0 3 0x14200 bored sosplice 49554 262765 90672 0 3 0x82 thrsleep syz-fuzzer 49554 391402 90672 0 3 0x4000082 thrsleep syz-fuzzer 49554 175381 90672 0 3 0x4000082 thrsleep syz-fuzzer 49554 469623 90672 0 3 0x4000082 thrsleep syz-fuzzer 49554 373337 90672 0 3 0x4000082 thrsleep syz-fuzzer 49554 319700 90672 0 3 0x4000082 kqread syz-fuzzer 49554 442658 90672 0 3 0x4000082 thrsleep syz-fuzzer 49554 436814 90672 0 3 0x4000082 thrsleep syz-fuzzer 49554 353562 90672 0 3 0x4000082 thrsleep syz-fuzzer 90672 105070 66107 0 3 0x10008a pause ksh 66107 351592 96859 0 3 0x92 select sshd 96859 108270 1 0 3 0x80 select sshd 70860 138038 24715 73 3 0x100010 biowait syslogd 24715 86283 1 0 3 0x100082 netio syslogd 64803 300556 1 77 3 0x100090 poll dhclient 99891 339528 1 0 3 0x80 poll dhclient 72859 54071 0 0 2 0x14200 zerothread 90593 427709 0 0 3 0x14200 aiodoned aiodoned 31323 194168 0 0 3 0x14200 syncer update 88092 205077 0 0 3 0x14200 cleaner cleaner 54779 401161 0 0 3 0x14200 reaper reaper 19600 116560 0 0 3 0x14200 pgdaemon pagedaemon 3827 194797 0 0 3 0x14200 bored crynlk 19630 434865 0 0 3 0x14200 bored crypto 74795 146828 0 0 3 0x40014200 acpi0 acpi0 51553 399843 0 0 3 0x14200 bored softnet 20979 54944 0 0 3 0x14200 bored systqmp 21712 178174 0 0 3 0x14200 bored systq 17255 379741 0 0 3 0x40014200 bored softclock 17687 206124 0 0 3 0x40014200 idle0 81123 212188 0 0 3 0x14200 bored smr 1 31837 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 9492 6395K 6580K 78643K 11227 0 0 pcb 23 9K 10K 78643K 401 0 0 rtable 100 3K 3K 78643K 521 0 0 ifaddr 52 12K 13K 78643K 172 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 34 0 0 iov 0 0K 16K 78643K 84 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1199 75K 76K 78643K 1796 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 30 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 1K 1K 78643K 103 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 21K 78643K 743 0 0 sigio 0 0K 0K 78643K 6 0 0 proc 42 30K 46K 78643K 494 0 0 subproc 64 65538K 67586K 78643K 308 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 56 0 0 in_multi 33 2K 2K 78643K 124 0 0 ether_multi 1 0K 0K 78643K 2 0 0 mrt 0 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 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 258 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 85 20K 24K 78643K 2635 0 0 UVM aobj 60 2K 2K 78643K 62 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 23 0 0 NDP 10 0K 0K 78643K 54 0 0 temp 155 2355K 2421K 78643K 5443 0 0 kqueue 0 0K 0K 78643K 5 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 11 0 7 1 0 1 1 0 8 0 inpcbpl 280 347 0 340 1 0 1 1 0 8 0 plimitpl 152 57 0 50 1 0 1 1 0 8 0 rtentry 112 104 0 64 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 119 0 114 1 0 1 1 0 8 0 nd6 48 18 0 14 1 0 1 1 0 8 0 ppxss 1128 16 0 16 5 5 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 492 0 304 12 0 12 12 0 8 0 art_table 32 493 0 304 2 0 2 2 0 8 0 art_node 16 103 0 69 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 9 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 101 0 91 1 0 1 1 0 8 0 shmpl 112 60 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2704 0 1269 47 0 47 47 0 8 0 ffsino 240 2704 0 1269 85 0 85 85 0 8 0 nchpl 144 3998 0 2365 63 2 61 62 0 8 0 uvmvnodes 72 3082 0 0 57 0 57 57 0 8 0 vnodes 200 3082 0 0 163 0 163 163 0 8 0 namei 1024 11613 0 11613 2 1 1 1 0 8 1 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 13225 0 13224 7 6 1 6 0 8 0 sigapl 432 893 0 879 2 0 2 2 0 8 0 futexpl 56 11238 0 11237 2 1 1 1 0 8 0 knotepl 112 355 0 336 1 0 1 1 0 8 0 kqueuepl 104 165 0 163 1 0 1 1 0 8 0 pipepl 112 582 0 561 2 1 1 1 0 8 0 fdescpl 424 894 0 879 2 0 2 2 0 8 0 filepl 120 5402 0 5303 5 1 4 4 0 8 1 lockfpl 104 280 0 280 4 3 1 1 0 8 1 lockfspl 32 460 0 460 4 3 1 1 0 8 1 sessionpl 112 25 0 15 1 0 1 1 0 8 0 pgrppl 48 31 0 21 1 0 1 1 0 8 0 ucredpl 96 974 0 967 1 0 1 1 0 8 0 zombiepl 144 879 0 879 2 1 1 1 0 8 1 processpl 840 909 0 879 4 0 4 4 0 8 0 procpl 600 1825 0 1785 4 0 4 4 0 8 0 sosppl 128 8 0 8 4 3 1 1 0 8 1 sockpl 384 689 0 672 5 2 3 3 0 8 1 mcl64k 65536 250 0 250 33 32 1 29 0 8 1 mcl16k 16384 2 0 2 2 2 0 1 0 8 0 mcl12k 12288 15 0 15 4 3 1 1 0 8 1 mcl9k 9216 7 0 7 5 4 1 1 0 8 1 mcl8k 8192 9 0 9 5 5 0 1 0 8 0 mcl4k 4096 38 0 38 4 4 0 1 0 8 0 mcl2k2 2112 7 0 7 4 4 0 1 0 8 0 mcl2k 2048 49006 0 48963 15 9 6 12 0 8 0 mtagpl 80 4 0 4 2 2 0 1 0 8 0 mbufpl 256 84112 0 84023 27 19 8 23 0 8 0 bufpl 256 7972 0 2330 353 0 353 353 0 8 0 anonpl 16 126092 0 117095 68 19 49 56 0 62 7 amapchunkpl 152 6130 0 6034 25 16 9 15 0 158 4 amappl16 192 3674 0 3191 41 16 25 36 0 8 0 amappl15 184 213 0 209 1 0 1 1 0 8 0 amappl14 176 215 0 210 2 1 1 1 0 8 0 amappl13 168 208 0 204 1 0 1 1 0 8 0 amappl12 160 209 0 204 1 0 1 1 0 8 0 amappl11 152 189 0 178 1 0 1 1 0 8 0 amappl10 144 130 0 128 2 1 1 1 0 8 0 amappl9 136 726 0 723 1 0 1 1 0 8 0 amappl8 128 310 0 292 1 0 1 1 0 8 0 amappl7 120 43 0 37 1 0 1 1 0 8 0 amappl6 112 222 0 213 1 0 1 1 0 8 0 amappl5 104 275 0 262 1 0 1 1 0 8 0 amappl4 96 897 0 872 2 1 1 2 0 8 0 amappl3 88 393 0 383 1 0 1 1 0 8 0 amappl2 80 6832 0 6771 2 0 2 2 0 8 0 amappl1 72 25113 0 24689 23 13 10 19 0 8 0 amappl 72 2084 0 2047 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 61 0 2 1 0 1 1 0 8 0 uaddrrnd 24 894 0 879 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 894 0 879 1 0 1 1 0 8 0 vmmpekpl 168 10056 0 10040 2 0 2 2 0 8 0 vmmpepl 168 99415 0 97907 121 45 76 82 0 357 10 vmsppl 264 893 0 879 2 1 1 2 0 8 0 pdppl 4096 1794 0 1758 5 0 5 5 0 8 0 pvpl 32 403621 0 391378 266 51 215 245 0 265 110 pmappl 200 893 0 879 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 550 0 74 14 0 14 14 0 8 0