login: panic: timeout_add: to_ticks (-845005895) < 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 81969 35315 0 0x1000 0x4080000 1K syz-executor.0 73521 35315 0 0x1000 0x4080000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x174 sys/kern/subr_prf.c:208 timeout_add(ffff80000066d060,cda23bb9) at timeout_add+0x194 sys/kern/kern_timeout.c:190 pcppi_bell(ffff80000066d000,9e168e42,cda23bb9,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800020c3ada0,46,ffff800020b43788) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800020c3ada0,46,ffff800020b43788) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd807ddfa9c8,20005302,ffff800020c3ada0,46,fffffd807f7c7ae0,ffff800020b43788) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8069278b60,20005302,ffff800020c3ada0,ffff800020b43788) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff800020b43788,ffff800020c3aee8,ffff800020c3aed0) at sys_ioctl+0x646 syscall(ffff800020c3af80) at syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c3af80) at syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff88,0,3,2ad194de010) at Xsyscall+0x128 end of kernel end trace frame: 0x2afdc5ac260, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic timeout_add: to_ticks (-845005895) < 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x174 sys/kern/subr_prf.c:208 timeout_add(ffff80000066d060,cda23bb9) at timeout_add+0x194 sys/kern/kern_timeout.c:190 pcppi_bell(ffff80000066d000,9e168e42,cda23bb9,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800020c3ada0,46,ffff800020b43788) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800020c3ada0,46,ffff800020b43788) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd807ddfa9c8,20005302,ffff800020c3ada0,46,fffffd807f7c7ae0,ffff800020b43788) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8069278b60,20005302,ffff800020c3ada0,ffff800020b43788) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff800020b43788,ffff800020c3aee8,ffff800020c3aed0) at sys_ioctl+0x646 syscall(ffff800020c3af80) at syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c3af80) at syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff88,0,3,2ad194de010) at Xsyscall+0x128 end of kernel end trace frame: 0x2afdc5ac260, count: -10 ddb{1}> show registers rdi 0xffffffff81af7d57 db_enter+0x17 rsi 0x18e1 __ALIGN_SIZE+0x8e1 rbp 0xffff800020c3a9c0 rbx 0xffff800020c3aa70 rdx 0x18e2 __ALIGN_SIZE+0x8e2 rcx 0xffff800000947000 rax 0xffff800000947000 r8 0xffffffff81e424c3 kprintf+0x183 r9 0x1 r10 0x25 r11 0x2916bd069ca838b3 r12 0x3000000008 r13 0xffff800020c3a9d0 r14 0x100 r15 0x1 rip 0xffffffff81af7d58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c3a9b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=81969 stat=onproc flags process=1000 proc=4080000 pri=21, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020b43c38,0xffff800020b424d8 process=0xffff800020b446a0 user=0xffff800020c36000, vmspace=0xfffffd807f00dca8 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 35315 319538 11218 0 3 0x3000 suspend syz-executor.0 *35315 81969 11218 0 7 0x4081000 syz-executor.0 35315 73521 11218 0 7 0x4081000 syz-executor.0 35315 27271 11218 0 2 0x4081080 syz-executor.0 98811 6715 1 0 3 0x100083 ttyin getty 63976 292266 0 0 3 0x14200 bored sosplice 3722 246104 17782 0 3 0x82 nanosleep syz-executor.1 11218 504861 17782 0 3 0x82 nanosleep syz-executor.0 17782 248117 79878 0 3 0x82 thrsleep syz-fuzzer 17782 54674 79878 0 3 0x4000082 thrsleep syz-fuzzer 17782 29182 79878 0 3 0x4000082 thrsleep syz-fuzzer 17782 173004 79878 0 3 0x4000082 thrsleep syz-fuzzer 17782 266650 79878 0 3 0x4000082 thrsleep syz-fuzzer 17782 84854 79878 0 3 0x4000082 thrsleep syz-fuzzer 17782 281211 79878 0 3 0x4000082 thrsleep syz-fuzzer 17782 302416 79878 0 3 0x4000082 thrsleep syz-fuzzer 17782 74789 79878 0 3 0x4000082 kqread syz-fuzzer 17782 128147 79878 0 3 0x4000082 thrsleep syz-fuzzer 79878 211236 41723 0 3 0x10008a pause ksh 41723 171465 86751 0 3 0x92 select sshd 86751 489539 1 0 3 0x80 select sshd 63103 158377 91071 73 3 0x100090 kqread syslogd 91071 129030 1 0 3 0x100082 netio syslogd 65002 382154 1 77 3 0x100090 poll dhclient 97130 161350 1 0 3 0x80 poll dhclient 54894 458490 0 0 3 0x14200 pgzero zerothread 43168 300523 0 0 3 0x14200 aiodoned aiodoned 96450 155951 0 0 3 0x14200 syncer update 64002 139895 0 0 3 0x14200 cleaner cleaner 62050 314530 0 0 3 0x14200 reaper reaper 41574 502261 0 0 3 0x14200 pgdaemon pagedaemon 28136 79163 0 0 3 0x14200 bored crynlk 979 410411 0 0 3 0x14200 bored crypto 14806 365795 0 0 3 0x40014200 acpi0 acpi0 81489 265439 0 0 3 0x40014200 idle1 33719 392071 0 0 3 0x14200 bored softnet 97678 153539 0 0 3 0x14200 bored systqmp 93202 509721 0 0 3 0x14200 bored systq 71403 255035 0 0 3 0x40014200 bored softclock 73612 114155 0 0 3 0x40014200 idle0 1 466230 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 35315 (syz-executor.0) thread 0xffff800020b43788 (81969) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82335598) locked @ /syzkaller/managers/multicore/kernel/sys/kern/sched_bsd.c:436 #0 witness_lock+0x58a sys/kern/subr_witness.c:1205 #1 ___mp_acquire_count+0x67 sys/kern/kern_lock.c:231 #2 mi_switch+0x3b0 sys/kern/sched_bsd.c:436 #3 sleep_finish+0x110 sys/kern/kern_synch.c:312 #4 sleep_finish_all+0x34 sleep_finish_timeout sys/kern/kern_synch.c:336 [inline] #4 sleep_finish_all+0x34 sys/kern/kern_synch.c:157 #5 tsleep+0x1bc #6 spkrioctl+0x261 rest sys/dev/isa/spkr.c:106 [inline] #6 spkrioctl+0x261 sys/dev/isa/spkr.c:501 #7 VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 #8 vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 #9 sys_ioctl+0x646 #10 syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] #10 syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 #11 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9527 14543K 14563K 78643K 11100 0 0 pcb 23 9K 10K 78643K 748 0 0 rtable 100 3K 4K 78643K 348 0 0 ifaddr 59 13K 14K 78643K 162 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 21 0 0 iov 0 0K 28K 78643K 159 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1208 76K 76K 78643K 2088 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 3 5K 5K 78643K 29 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 203 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 5 13K 25K 78643K 1430 0 0 sigio 0 0K 0K 78643K 30 0 0 proc 42 38K 70K 78643K 499 0 0 subproc 64 65538K 67586K 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 206 0 0 in_multi 33 2K 2K 78643K 95 0 0 ether_multi 1 0K 0K 78643K 8 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 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 328 0 0 pfkey data 0 0K 4K 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 94 21K 30K 78643K 5476 0 0 UVM aobj 117 4K 4K 78643K 124 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 53 0 0 NDP 12 0K 0K 78643K 43 0 0 temp 170 2367K 2435K 78643K 6539 0 0 kqueue 0 0K 0K 78643K 15 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> 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 738 0 731 1 0 1 1 0 8 0 plimitpl 152 32 0 25 1 0 1 1 0 8 0 plcache 128 20 0 0 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 255 0 251 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 20 0 20 10 9 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 26 0 10 1 0 1 1 0 8 0 semapl 112 201 0 191 1 0 1 1 0 8 0 shmpl 112 122 0 7 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4162 0 2745 46 0 46 46 0 8 0 ffsino 272 4162 0 2745 95 0 95 95 0 8 0 nchpl 144 6469 0 4846 61 0 61 61 0 8 0 uvmvnodes 72 4360 0 0 80 0 80 80 0 8 0 vnodes 200 4360 0 0 230 0 230 230 0 8 0 namei 1024 19333 0 19333 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 19319 0 19319 13 12 1 6 0 8 1 sigapl 432 1601 0 1588 2 0 2 2 0 8 0 futexpl 56 17079 0 17078 1 0 1 1 0 8 0 knotepl 112 390 0 363 4 3 1 2 0 8 0 kqueuepl 104 442 0 440 1 0 1 1 0 8 0 pipepl 112 1250 0 1231 7 5 2 2 0 8 1 fdescpl 488 1602 0 1588 3 1 2 3 0 8 0 filepl 152 10031 0 9934 10 3 7 7 0 8 2 lockfpl 104 558 0 556 4 3 1 1 0 8 0 lockfspl 32 790 0 789 4 3 1 1 0 8 0 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 34 0 24 1 0 1 1 0 8 0 ucredpl 96 2689 0 2682 1 0 1 1 0 8 0 zombiepl 144 1588 0 1587 2 1 1 1 0 8 0 processpl 840 1617 0 1587 4 0 4 4 0 8 0 procpl 600 4797 0 4755 4 0 4 4 0 8 0 sosppl 128 15 0 15 4 4 0 1 0 8 0 sockpl 384 1385 0 1368 5 2 3 3 0 8 1 mcl64k 65536 259 0 0 33 0 33 33 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 13 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 127 0 0 15 1 14 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 407 0 0 20 0 20 20 0 8 0 bufpl 256 7832 0 1030 426 0 426 426 0 8 0 anonpl 16 194335 0 186258 112 62 50 51 0 125 15 amapchunkpl 152 10502 0 10403 27 20 7 10 0 158 2 amappl16 192 9364 0 8948 100 71 29 34 0 8 8 amappl15 184 3 0 1 1 0 1 1 0 8 0 amappl14 176 7 0 5 2 1 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 709 0 707 2 1 1 1 0 8 0 amappl11 152 904 0 892 1 0 1 1 0 8 0 amappl10 144 62 0 58 1 0 1 1 0 8 0 amappl9 136 356 0 353 1 0 1 1 0 8 0 amappl8 128 844 0 818 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 132 0 120 1 0 1 1 0 8 0 amappl4 96 294 0 270 2 1 1 2 0 8 0 amappl3 88 198 0 193 1 0 1 1 0 8 0 amappl2 80 15540 0 15487 2 0 2 2 0 8 0 amappl1 72 42909 0 42480 24 14 10 19 0 8 0 amappl 72 5037 0 5000 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 123 0 7 2 0 2 2 0 8 0 uaddrrnd 24 1602 0 1588 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1602 0 1588 1 0 1 1 0 8 0 vmmpekpl 168 17225 0 17203 2 0 2 2 0 8 0 vmmpepl 168 180391 0 179011 129 54 75 76 0 357 10 vmsppl 360 1601 0 1588 2 0 2 2 0 8 0 pdppl 4096 3211 0 3176 6 1 5 6 0 8 0 pvpl 32 536761 0 525681 204 76 128 135 0 265 34 pmappl 224 1601 0 1588 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 621 0 5 18 0 18 18 0 8 0