TTpanic: timeout_add: to_ticks (-691876795) < 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 120473 66222 0 0 0 0 syz-executor.0 * 37153 66222 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,d6c2cc45) at timeout_add+0x194 sys/kern/kern_timeout.c:190 pcppi_bell(ffff80000066d000,c7e4192a,d6c2cc45,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800020c2cf80,2,ffff800020b43c38) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800020c2cf80,2,ffff800020b43c38) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd8077ef19b8,20005302,ffff800020c2cf80,2,fffffd807f7c7b40,ffff800020b43c38) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8067247b68,20005302,ffff800020c2cf80,ffff800020b43c38) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff800020b43c38,ffff800020c2d0c8,ffff800020c2d0b0) at sys_ioctl+0x646 syscall(ffff800020c2d160) at syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c2d160) at syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff88,0,3,2d98d0e6010) at Xsyscall+0x128 end of kernel end trace frame: 0x2dc310d0bb0, 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 (-691876795) < 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,d6c2cc45) at timeout_add+0x194 sys/kern/kern_timeout.c:190 pcppi_bell(ffff80000066d000,c7e4192a,d6c2cc45,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800020c2cf80,2,ffff800020b43c38) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800020c2cf80,2,ffff800020b43c38) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd8077ef19b8,20005302,ffff800020c2cf80,2,fffffd807f7c7b40,ffff800020b43c38) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8067247b68,20005302,ffff800020c2cf80,ffff800020b43c38) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff800020b43c38,ffff800020c2d0c8,ffff800020c2d0b0) at sys_ioctl+0x646 syscall(ffff800020c2d160) at syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c2d160) at syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff88,0,3,2d98d0e6010) at Xsyscall+0x128 end of kernel end trace frame: 0x2dc310d0bb0, count: -10 ddb{1}> show registers rdi 0xffffffff813edb17 db_enter+0x17 rsi 0x157c __ALIGN_SIZE+0x57c rbp 0xffff800020c2cba0 rbx 0xffff800020c2cc50 rdx 0x157d __ALIGN_SIZE+0x57d rcx 0xffff800000947000 rax 0xffff800000947000 r8 0xffffffff81b8cb23 kprintf+0x183 r9 0x1 r10 0x25 r11 0x51ca77c79f242587 r12 0x3000000008 r13 0xffff800020c2cbb0 r14 0x100 r15 0x1 rip 0xffffffff813edb18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c2cb90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=37153 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b424c8,0xffff800020b43798 process=0xffff800020b44d30 user=0xffff800020c28000, vmspace=0xfffffd807effeca8 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 81399 424676 96661 0 2 0 syz-executor.1 81399 281084 96661 0 2 0x4000000 syz-executor.1 66222 120473 87405 0 7 0 syz-executor.0 *66222 37153 87405 0 7 0x4000000 syz-executor.0 32771 484345 0 0 3 0x14200 bored sosplice 96661 28248 54845 0 3 0x82 nanosleep syz-executor.1 87405 67374 54845 0 3 0x82 nanosleep syz-executor.0 54845 282208 21802 0 3 0x82 thrsleep syz-fuzzer 54845 278693 21802 0 3 0x4000082 thrsleep syz-fuzzer 54845 414081 21802 0 3 0x4000082 thrsleep syz-fuzzer 54845 408396 21802 0 3 0x4000082 kqread syz-fuzzer 54845 278526 21802 0 3 0x4000082 thrsleep syz-fuzzer 54845 26266 21802 0 3 0x4000082 thrsleep syz-fuzzer 54845 488754 21802 0 3 0x4000082 thrsleep syz-fuzzer 54845 327242 21802 0 3 0x4000082 thrsleep syz-fuzzer 54845 242787 21802 0 3 0x4000082 thrsleep syz-fuzzer 54845 187370 21802 0 3 0x4000082 thrsleep syz-fuzzer 54845 388571 21802 0 3 0x4000082 thrsleep syz-fuzzer 54845 160018 21802 0 3 0x4000082 thrsleep syz-fuzzer 21802 243332 63965 0 3 0x10008a pause ksh 63965 206232 5723 0 3 0x92 select sshd 65657 154623 1 0 3 0x100083 ttyin getty 5723 126351 1 0 3 0x80 select sshd 85825 371699 41793 73 3 0x100090 kqread syslogd 41793 309983 1 0 3 0x100082 netio syslogd 48916 469486 1 77 3 0x100090 poll dhclient 2236 216518 1 0 3 0x80 poll dhclient 34211 98310 0 0 2 0x14200 zerothread 71289 488310 0 0 3 0x14200 aiodoned aiodoned 59280 504663 0 0 3 0x14200 syncer update 8963 361515 0 0 3 0x14200 cleaner cleaner 53030 313247 0 0 3 0x14200 reaper reaper 93937 379923 0 0 3 0x14200 pgdaemon pagedaemon 96723 186783 0 0 3 0x14200 bored crynlk 97193 190647 0 0 3 0x14200 bored crypto 83241 333640 0 0 3 0x40014200 acpi0 acpi0 12885 136695 0 0 3 0x40014200 idle1 29447 258749 0 0 3 0x14200 bored softnet 99132 106712 0 0 3 0x14200 bored systqmp 18835 338051 0 0 3 0x14200 bored systq 39921 201687 0 0 3 0x40014200 bored softclock 60280 430551 0 0 3 0x40014200 idle0 1 403910 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 66222 (syz-executor.0) thread 0xffff800020b43c38 (37153) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8234cf80) locked @ /syzkaller/managers/multicore/kernel/sys/arch/amd64/amd64/trap.c:161 #0 witness_lock+0x58a sys/kern/subr_witness.c:1205 #1 syscall+0x47f mi_syscall sys/sys/syscall_mi.h:91 [inline] #1 syscall+0x47f sys/arch/amd64/amd64/trap.c:574 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9498 14538K 14552K 78643K 10769 0 0 pcb 23 9K 10K 78643K 344 0 0 rtable 100 3K 4K 78643K 294 0 0 ifaddr 50 12K 13K 78643K 118 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 17 0 0 iov 0 0K 12K 78643K 57 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1195 75K 75K 78643K 1510 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 10 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 15 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 6 17K 25K 78643K 553 0 0 sigio 0 0K 0K 78643K 8 0 0 proc 41 38K 58K 78643K 305 0 0 subproc 64 65538K 67586K 78643K 71 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 107 0 0 in_multi 33 2K 2K 78643K 67 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 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 204 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 90 21K 30K 78643K 2590 0 0 UVM aobj 28 2K 2K 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 34 0 0 NDP 9 0K 0K 78643K 32 0 0 temp 148 2362K 2430K 78643K 4285 0 0 kqueue 0 0K 0K 78643K 13 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 307 0 300 1 0 1 1 0 8 0 plimitpl 152 18 0 11 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 134 0 130 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 13 0 13 2 1 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 10 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 11 0 1 1 0 1 1 0 8 0 shmpl 112 27 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2441 0 1034 46 0 46 46 0 8 0 ffsino 272 2441 0 1034 94 0 94 94 0 8 0 nchpl 144 3393 0 1770 61 0 61 61 0 8 0 uvmvnodes 72 2505 0 0 46 0 46 46 0 8 0 vnodes 200 2505 0 0 132 0 132 132 0 8 0 namei 1024 9404 0 9404 2 1 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 9098 0 9098 11 10 1 6 0 8 1 sigapl 432 721 0 707 2 0 2 2 0 8 0 futexpl 56 6226 0 6226 1 0 1 1 0 8 1 knotepl 112 237 0 210 3 1 2 2 0 8 1 kqueuepl 104 212 0 210 1 0 1 1 0 8 0 pipepl 112 438 0 419 3 1 2 2 0 8 1 fdescpl 488 722 0 707 3 1 2 3 0 8 0 filepl 152 4410 0 4312 6 1 5 5 0 8 1 lockfpl 104 218 0 216 2 1 1 1 0 8 0 lockfspl 32 337 0 335 2 1 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 27 0 17 1 0 1 1 0 8 0 ucredpl 96 1185 0 1178 1 0 1 1 0 8 0 zombiepl 144 707 0 707 2 1 1 1 0 8 1 processpl 840 737 0 707 4 0 4 4 0 8 0 procpl 600 1991 0 1948 4 0 4 4 0 8 0 sosppl 128 3 0 3 1 1 0 1 0 8 0 sockpl 384 602 0 585 3 0 3 3 0 8 1 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 113 0 0 14 1 13 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 158 0 0 8 0 8 8 0 8 0 bufpl 256 6438 0 1019 339 0 339 339 0 8 0 anonpl 16 80185 0 72361 60 19 41 48 0 125 8 amapchunkpl 152 4108 0 3999 16 6 10 10 0 158 5 amappl16 192 3172 0 2780 41 19 22 32 0 8 2 amappl15 184 265 0 262 2 1 1 1 0 8 0 amappl14 176 271 0 267 2 1 1 1 0 8 0 amappl13 168 30 0 26 1 0 1 1 0 8 0 amappl12 160 10 0 8 1 0 1 1 0 8 0 amappl11 152 180 0 171 1 0 1 1 0 8 0 amappl10 144 603 0 597 2 1 1 1 0 8 0 amappl9 136 348 0 345 1 0 1 1 0 8 0 amappl8 128 140 0 121 1 0 1 1 0 8 0 amappl7 120 38 0 33 1 0 1 1 0 8 0 amappl6 112 52 0 45 1 0 1 1 0 8 0 amappl5 104 396 0 382 1 0 1 1 0 8 0 amappl4 96 265 0 243 2 1 1 2 0 8 0 amappl3 88 153 0 147 1 0 1 1 0 8 0 amappl2 80 6001 0 5937 2 0 2 2 0 8 0 amappl1 72 23906 0 23478 25 16 9 19 0 8 0 amappl 72 2202 0 2162 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 1 1 0 1 1 0 8 0 uaddrrnd 24 722 0 707 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 722 0 707 1 0 1 1 0 8 0 vmmpekpl 168 9769 0 9747 2 0 2 2 0 8 0 vmmpepl 168 82372 0 80941 94 29 65 74 0 357 2 vmsppl 360 721 0 707 2 0 2 2 0 8 0 pdppl 4096 1452 0 1414 6 1 5 6 0 8 0 pvpl 32 240671 0 229820 146 37 109 125 0 265 21 pmappl 224 721 0 707 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 488 0 5 14 0 14 14 0 8 0