%%panic: timeout_add: to_ticks (-973078528) < 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 340199 82620 0 0 0 0 syz-executor.0 *245219 82620 0 0 0x4000000 1K 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,c6000000) at timeout_add+0x194 sys/kern/kern_timeout.c:190 pcppi_bell(ffff80000066d000,5b,c6000000,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800020c2d710,46,ffff800020b95780) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800020c2d710,46,ffff800020b95780) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd80692553c8,20005302,ffff800020c2d710,46,fffffd807f7c79c0,ffff800020b95780) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd806914f6a8,20005302,ffff800020c2d710,ffff800020b95780) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff800020b95780,ffff800020c2d858,ffff800020c2d840) at sys_ioctl+0x646 syscall(ffff800020c2d8f0) at syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c2d8f0) at syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff88,0,3,51b6b7c4010) at Xsyscall+0x128 end of kernel end trace frame: 0x51e2cebb5a0, 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 (-973078528) < 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,c6000000) at timeout_add+0x194 sys/kern/kern_timeout.c:190 pcppi_bell(ffff80000066d000,5b,c6000000,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800020c2d710,46,ffff800020b95780) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800020c2d710,46,ffff800020b95780) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd80692553c8,20005302,ffff800020c2d710,46,fffffd807f7c79c0,ffff800020b95780) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd806914f6a8,20005302,ffff800020c2d710,ffff800020b95780) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff800020b95780,ffff800020c2d858,ffff800020c2d840) at sys_ioctl+0x646 syscall(ffff800020c2d8f0) at syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c2d8f0) at syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff88,0,3,51b6b7c4010) at Xsyscall+0x128 end of kernel end trace frame: 0x51e2cebb5a0, count: -10 ddb{1}> show registers rdi 0xffffffff813edb17 db_enter+0x17 rsi 0x1276 __ALIGN_SIZE+0x276 rbp 0xffff800020c2d330 rbx 0xffff800020c2d3e0 rdx 0x1277 __ALIGN_SIZE+0x277 rcx 0xffff800000947000 rax 0xffff800000947000 r8 0xffffffff81b8cb23 kprintf+0x183 r9 0x1 r10 0x25 r11 0xa9262d4e9ef48517 r12 0x3000000008 r13 0xffff800020c2d340 r14 0x100 r15 0x1 rip 0xffffffff813edb18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c2d320 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=245219 stat=onproc flags process=0 proc=4000000 pri=21, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800020b94970,0xffff800020b42988 process=0xffff800020b44d30 user=0xffff800020c28000, vmspace=0xfffffd807effe9d8 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 20407 404738 8638 0 2 0 syz-executor.1 20407 329716 8638 0 3 0x4000080 netio syz-executor.1 82620 340199 5807 0 7 0 syz-executor.0 *82620 245219 5807 0 7 0x4000000 syz-executor.0 43511 365821 1 0 3 0x100083 ttyin getty 8638 51860 35532 0 2 0x482 syz-executor.1 5807 216094 35532 0 2 0x482 syz-executor.0 35532 264200 41171 0 3 0x82 thrsleep syz-fuzzer 35532 291766 41171 0 3 0x4000082 thrsleep syz-fuzzer 35532 2138 41171 0 3 0x4000082 thrsleep syz-fuzzer 35532 220664 41171 0 3 0x4000082 thrsleep syz-fuzzer 35532 483158 41171 0 3 0x4000082 thrsleep syz-fuzzer 35532 269219 41171 0 3 0x4000082 thrsleep syz-fuzzer 35532 364632 41171 0 3 0x4000082 thrsleep syz-fuzzer 35532 36363 41171 0 3 0x4000082 thrsleep syz-fuzzer 35532 519765 41171 0 3 0x4000082 thrsleep syz-fuzzer 35532 277346 41171 0 3 0x4000082 kqread syz-fuzzer 41171 350213 3602 0 3 0x10008a pause ksh 3602 291967 75184 0 3 0x92 select sshd 75184 186631 1 0 3 0x80 select sshd 82275 314535 13821 73 3 0x100090 kqread syslogd 13821 393401 1 0 3 0x100082 netio syslogd 70039 298979 1 77 3 0x100090 poll dhclient 18231 459031 1 0 3 0x80 poll dhclient 9274 95597 0 0 2 0x14200 zerothread 90327 471632 0 0 3 0x14200 aiodoned aiodoned 18372 31589 0 0 3 0x14200 syncer update 3660 512999 0 0 3 0x14200 cleaner cleaner 38017 299639 0 0 3 0x14200 reaper reaper 28907 462570 0 0 3 0x14200 pgdaemon pagedaemon 67553 441510 0 0 3 0x14200 bored crynlk 24976 236766 0 0 3 0x14200 bored crypto 19296 482017 0 0 3 0x40014200 acpi0 acpi0 23363 125620 0 0 3 0x40014200 idle1 6786 490611 0 0 3 0x14200 bored softnet 9254 437911 0 0 3 0x14200 bored systqmp 65163 332461 0 0 3 0x14200 bored systq 9297 239526 0 0 3 0x40014200 bored softclock 14172 312668 0 0 3 0x40014200 idle0 1 167458 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 82620 (syz-executor.0) thread 0xffff800020b95780 (245219) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8234cf80) 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 9496 6349K 6359K 78643K 10729 0 0 pcb 23 9K 10K 78643K 215 0 0 rtable 100 3K 4K 78643K 238 0 0 ifaddr 49 12K 12K 78643K 88 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 15 0 0 iov 0 0K 12K 78643K 49 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1194 75K 75K 78643K 1450 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 7 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 37 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 6 17K 25K 78643K 373 0 0 proc 42 38K 70K 78643K 296 0 0 subproc 64 65538K 67586K 78643K 72 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 4 0K 0K 78643K 58 0 0 in_multi 34 2K 2K 78643K 50 0 0 ether_multi 1 0K 0K 78643K 4 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 191 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 1966 0 0 UVM aobj 24 2K 3K 78643K 29 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 10 0 0 NDP 9 0K 0K 78643K 23 0 0 temp 124 2356K 2993K 78643K 3771 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 176 0 167 1 0 1 1 0 8 0 plimitpl 152 19 0 12 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 70 0 66 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 8 0 8 1 1 0 1 0 8 0 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 12 0 3 1 0 1 1 0 8 0 semapl 112 35 0 25 1 0 1 1 0 8 0 shmpl 112 27 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2163 0 759 46 0 46 46 0 8 0 ffsino 272 2163 0 759 95 0 95 95 0 8 0 nchpl 144 2874 0 1252 61 0 61 61 0 8 0 uvmvnodes 72 2232 0 0 41 0 41 41 0 8 0 vnodes 200 2232 0 0 118 0 118 118 0 8 0 namei 1024 7852 0 7852 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 7279 0 7279 8 7 1 7 0 8 1 sigapl 432 542 0 528 2 0 2 2 0 8 0 futexpl 56 4227 0 4227 1 0 1 1 0 8 1 knotepl 112 156 0 129 2 1 1 2 0 8 0 kqueuepl 104 126 0 124 1 0 1 1 0 8 0 pipepl 112 368 0 349 2 0 2 2 0 8 1 fdescpl 488 543 0 528 3 1 2 3 0 8 0 filepl 152 3327 0 3230 6 1 5 5 0 8 1 lockfpl 104 141 0 141 2 1 1 1 0 8 1 lockfspl 32 227 0 227 2 1 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 18 0 8 1 0 1 1 0 8 0 ucredpl 96 855 0 848 1 0 1 1 0 8 0 zombiepl 144 528 0 528 1 0 1 1 0 8 1 processpl 840 557 0 528 4 0 4 4 0 8 0 procpl 600 1384 0 1344 4 0 4 4 0 8 0 sockpl 384 367 0 348 3 0 3 3 0 8 1 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 115 0 0 14 0 14 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 132 0 0 8 0 8 8 0 8 0 bufpl 256 5921 0 1015 307 0 307 307 0 8 0 anonpl 16 54856 0 46700 40 4 36 36 0 125 2 amapchunkpl 152 2735 0 2646 5 0 5 5 0 158 0 amappl16 192 2242 0 1810 26 2 24 24 0 8 2 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 6 0 5 2 1 1 1 0 8 0 amappl13 168 204 0 199 1 0 1 1 0 8 0 amappl12 160 191 0 186 1 0 1 1 0 8 0 amappl11 152 187 0 176 1 0 1 1 0 8 0 amappl10 144 64 0 60 1 0 1 1 0 8 0 amappl9 136 364 0 361 1 0 1 1 0 8 0 amappl8 128 307 0 291 1 0 1 1 0 8 0 amappl7 120 218 0 211 1 0 1 1 0 8 0 amappl6 112 52 0 46 1 0 1 1 0 8 0 amappl5 104 116 0 105 1 0 1 1 0 8 0 amappl4 96 280 0 255 2 1 1 2 0 8 0 amappl3 88 137 0 132 1 0 1 1 0 8 0 amappl2 80 4198 0 4135 2 0 2 2 0 8 0 amappl1 72 20043 0 19611 24 14 10 19 0 8 0 amappl 72 1597 0 1562 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 28 0 5 1 0 1 1 0 8 0 uaddrrnd 24 543 0 528 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 543 0 528 1 0 1 1 0 8 0 vmmpekpl 168 8263 0 8244 2 0 2 2 0 8 0 vmmpepl 168 63516 0 62060 82 15 67 70 0 357 3 vmsppl 360 542 0 528 2 0 2 2 0 8 0 pdppl 4096 1094 0 1056 6 1 5 6 0 8 0 pvpl 32 188604 0 177426 104 4 100 101 0 265 9 pmappl 224 542 0 528 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 453 0 3 13 0 13 13 0 8 0