panic: timeout_add: to_ticks (-1448998155) < 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 68854 31268 0 0x1000 0x4080000 0K syz-executor.0 333831 31268 0 0x1000 0x4080080 1 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,a9a20af5) at timeout_add+0x194 sys/kern/kern_timeout.c:190 pcppi_bell(ffff80000066d000,74e827f3,a9a20af5,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800020c2d290,2,ffff800020b42018) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800020c2d290,2,ffff800020b42018) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd80650169c8,20005302,ffff800020c2d290,2,fffffd807f7c7960,ffff800020b42018) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd807a93a570,20005302,ffff800020c2d290,ffff800020b42018) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff800020b42018,ffff800020c2d3d8,ffff800020c2d3c0) at sys_ioctl+0x646 syscall(ffff800020c2d470) at syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c2d470) at syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff88,0,3,93bb3f04010) at Xsyscall+0x128 end of kernel end trace frame: 0x93dcfbe4b00, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic timeout_add: to_ticks (-1448998155) < 0 ddb{0}> 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,a9a20af5) at timeout_add+0x194 sys/kern/kern_timeout.c:190 pcppi_bell(ffff80000066d000,74e827f3,a9a20af5,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800020c2d290,2,ffff800020b42018) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800020c2d290,2,ffff800020b42018) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd80650169c8,20005302,ffff800020c2d290,2,fffffd807f7c7960,ffff800020b42018) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd807a93a570,20005302,ffff800020c2d290,ffff800020b42018) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff800020b42018,ffff800020c2d3d8,ffff800020c2d3c0) at sys_ioctl+0x646 syscall(ffff800020c2d470) at syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c2d470) at syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff88,0,3,93bb3f04010) at Xsyscall+0x128 end of kernel end trace frame: 0x93dcfbe4b00, count: -10 ddb{0}> show registers rdi 0xffffffff81af7d57 db_enter+0x17 rsi 0x1ba3 __ALIGN_SIZE+0xba3 rbp 0xffff800020c2ceb0 rbx 0xffff800020c2cf60 rdx 0x1ba4 __ALIGN_SIZE+0xba4 rcx 0xffff800000947000 rax 0xffff800000947000 r8 0xffffffff81e424c3 kprintf+0x183 r9 0x1 r10 0x25 r11 0x45ceec5ac67b07ca r12 0x3000000008 r13 0xffff800020c2cec0 r14 0x100 r15 0x1 rip 0xffffffff81af7d58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c2cea0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=68854 stat=onproc flags process=1000 proc=4080000 pri=21, usrpri=75, nice=20 forw=0xffffffffffffffff, list=0xffff800020b43788,0xffff800020b43540 process=0xffff800020b446a0 user=0xffff800020c28000, vmspace=0xfffffd807f00d708 estcpu=25, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 66065 260949 71099 0 3 0x80 nanosleep syz-executor.1 66065 315383 71099 0 3 0x4000080 nanosleep syz-executor.1 66065 93599 71099 0 3 0x4000080 nanosleep syz-executor.1 66065 190029 71099 0 3 0x4000080 nanosleep syz-executor.1 31268 93089 93683 0 3 0x3000 suspend syz-executor.0 *31268 68854 93683 0 7 0x4081000 syz-executor.0 31268 506607 93683 0 2 0x4081080 syz-executor.0 31268 333831 93683 0 7 0x4081080 syz-executor.0 71099 299661 85733 0 3 0x82 nanosleep syz-executor.1 1396 319232 0 0 3 0x14200 bored sosplice 93683 519416 85733 0 3 0x82 nanosleep syz-executor.0 85733 32355 70494 0 3 0x82 thrsleep syz-fuzzer 85733 234411 70494 0 3 0x4000082 thrsleep syz-fuzzer 85733 113208 70494 0 3 0x4000082 thrsleep syz-fuzzer 85733 251864 70494 0 3 0x4000082 thrsleep syz-fuzzer 85733 259184 70494 0 3 0x4000082 kqread syz-fuzzer 85733 271177 70494 0 3 0x4000082 thrsleep syz-fuzzer 85733 147975 70494 0 3 0x4000082 thrsleep syz-fuzzer 85733 420180 70494 0 3 0x4000082 thrsleep syz-fuzzer 85733 459423 70494 0 3 0x4000082 thrsleep syz-fuzzer 85733 449690 70494 0 3 0x4000082 thrsleep syz-fuzzer 70494 262877 65987 0 3 0x10008a pause ksh 65987 479627 52114 0 3 0x92 select sshd 35170 425081 1 0 3 0x100083 ttyin getty 52114 367465 1 0 3 0x80 select sshd 69425 345658 45931 73 3 0x100090 kqread syslogd 45931 287083 1 0 3 0x100082 netio syslogd 15825 161530 1 77 3 0x100090 poll dhclient 80265 143712 1 0 3 0x80 poll dhclient 32665 43395 0 0 3 0x14200 pgzero zerothread 73387 396122 0 0 3 0x14200 aiodoned aiodoned 61736 364606 0 0 3 0x14200 syncer update 46860 210186 0 0 3 0x14200 cleaner cleaner 88019 190108 0 0 3 0x14200 reaper reaper 61900 317161 0 0 3 0x14200 pgdaemon pagedaemon 5495 326881 0 0 3 0x14200 bored crynlk 97486 320597 0 0 3 0x14200 bored crypto 12502 255200 0 0 3 0x40014200 acpi0 acpi0 53302 477344 0 0 3 0x40014200 idle1 51456 182658 0 0 3 0x14200 bored softnet 70290 404606 0 0 3 0x14200 bored systqmp 67086 450621 0 0 3 0x14200 bored systq 29880 251331 0 0 3 0x40014200 bored softclock 28576 307877 0 0 3 0x40014200 idle0 1 261211 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 31268 (syz-executor.0) thread 0xffff800020b42018 (68854) 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 pcppi_bell+0x37e sys/dev/isa/pcppi.c:237 #7 spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] #7 spkrioctl+0x230 sys/dev/isa/spkr.c:503 #8 VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 #9 vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 #10 sys_ioctl+0x646 #11 syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] #11 syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 #12 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9517 6364K 6375K 78643K 10983 0 0 pcb 23 9K 10K 78643K 641 0 0 rtable 100 3K 4K 78643K 339 0 0 ifaddr 54 13K 13K 78643K 136 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 26 0 0 iov 0 0K 16K 78643K 143 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1227 77K 77K 78643K 1905 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 25 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 174 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 6 17K 25K 78643K 1231 0 0 sigio 0 0K 0K 78643K 17 0 0 proc 42 38K 58K 78643K 453 0 0 subproc 64 65538K 67586K 78643K 124 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 145 0 0 in_multi 33 2K 2K 78643K 93 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 1 0K 0K 78643K 3 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 243 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 29K 78643K 4707 0 0 UVM aobj 75 3K 3K 78643K 83 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 64 0 0 NDP 11 0K 0K 78643K 38 0 0 temp 163 2367K 2434K 78643K 6107 0 0 kqueue 0 0K 0K 78643K 13 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 5 0 1 1 0 1 1 0 8 0 inpcbpl 280 596 0 589 1 0 1 1 0 8 0 plimitpl 152 26 0 19 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 50 0 10 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 194 0 190 1 0 1 1 0 8 0 nd6 48 6 0 2 1 0 1 1 0 8 0 ppxss 1128 14 0 14 7 6 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 229 0 41 12 0 12 12 0 8 0 art_table 32 230 0 41 2 0 2 2 0 8 0 art_node 16 49 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 11 1 0 1 1 0 8 0 semapl 112 170 0 160 1 0 1 1 0 8 0 shmpl 112 81 0 8 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3728 0 2302 46 0 46 46 0 8 0 ffsino 272 3728 0 2302 96 0 96 96 0 8 0 nchpl 144 5681 0 4068 61 0 61 61 0 8 0 uvmvnodes 72 3915 0 0 72 0 72 72 0 8 0 vnodes 200 3915 0 0 207 0 207 207 0 8 0 namei 1024 16320 0 16320 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 1 1 1 0 8 1 scxspl 192 19285 0 19285 11 10 1 6 0 8 1 sigapl 432 1396 0 1382 2 0 2 2 0 8 0 futexpl 56 16952 0 16952 1 0 1 1 0 8 1 knotepl 112 285 0 258 3 2 1 2 0 8 0 kqueuepl 104 293 0 291 1 0 1 1 0 8 0 pipepl 112 924 0 905 3 2 1 2 0 8 0 fdescpl 488 1397 0 1382 3 1 2 3 0 8 0 filepl 152 8105 0 8005 10 5 5 5 0 8 1 lockfpl 104 419 0 416 7 6 1 1 0 8 0 lockfspl 32 785 0 782 8 7 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 34 0 24 1 0 1 1 0 8 0 ucredpl 96 2075 0 2068 1 0 1 1 0 8 0 zombiepl 144 1382 0 1382 3 2 1 1 0 8 1 processpl 840 1412 0 1382 4 0 4 4 0 8 0 procpl 600 4054 0 4009 4 0 4 4 0 8 0 srpgc 64 6 0 6 1 1 0 1 0 8 0 sosppl 128 11 0 11 4 4 0 1 0 8 0 sockpl 384 1134 0 1117 9 6 3 3 0 8 1 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 118 0 0 13 0 13 13 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 155 0 0 8 0 8 8 0 8 0 bufpl 256 8003 0 1031 436 0 436 436 0 8 0 anonpl 16 139852 0 131869 87 38 49 49 0 125 15 amapchunkpl 152 8041 0 7945 25 20 5 9 0 158 0 amappl16 192 6793 0 6375 54 24 30 33 0 8 8 amappl15 184 387 0 385 1 0 1 1 0 8 0 amappl14 176 6 0 4 2 1 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 619 0 617 2 1 1 1 0 8 0 amappl11 152 396 0 386 1 0 1 1 0 8 0 amappl10 144 60 0 57 2 1 1 1 0 8 0 amappl9 136 353 0 350 1 0 1 1 0 8 0 amappl8 128 763 0 735 1 0 1 1 0 8 0 amappl7 120 41 0 35 1 0 1 1 0 8 0 amappl6 112 59 0 50 1 0 1 1 0 8 0 amappl5 104 519 0 506 1 0 1 1 0 8 0 amappl4 96 276 0 252 2 1 1 2 0 8 0 amappl3 88 212 0 207 1 0 1 1 0 8 0 amappl2 80 12863 0 12802 2 0 2 2 0 8 0 amappl1 72 37983 0 37536 24 14 10 19 0 8 0 amappl 72 4277 0 4238 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 82 0 8 2 0 2 2 0 8 0 uaddrrnd 24 1397 0 1382 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1397 0 1382 1 0 1 1 0 8 0 vmmpekpl 168 15415 0 15391 2 0 2 2 0 8 0 vmmpepl 168 154415 0 152942 117 47 70 74 0 357 5 vmsppl 360 1396 0 1382 2 0 2 2 0 8 0 pdppl 4096 2801 0 2764 6 1 5 6 0 8 0 pvpl 32 415420 0 404333 217 87 130 130 0 265 40 pmappl 224 1396 0 1382 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 585 0 4 17 0 17 17 0 8 0