login: panic: timeout_add: to_ticks (-165174611) < 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 212727 81996 0 0 0 1 syz-executor.0 * 25213 81996 0 0 0x4000000 0K 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,f627a2ad) at timeout_add+0x194 sys/kern/kern_timeout.c:190 pcppi_bell(ffff80000066d000,a3e8a402,f627a2ad,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800020c3af00,2,ffff800020b42720) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800020c3af00,2,ffff800020b42720) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd8079485750,20005302,ffff800020c3af00,2,fffffd807f7c7900,ffff800020b42720) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd807a8bcef8,20005302,ffff800020c3af00,ffff800020b42720) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff800020b42720,ffff800020c3b048,ffff800020c3b030) at sys_ioctl+0x646 syscall(ffff800020c3b0e0) at syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c3b0e0) at syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff88,0,3,306d18d90d8) at Xsyscall+0x128 end of kernel end trace frame: 0x3090371f9f0, 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 (-165174611) < 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,f627a2ad) at timeout_add+0x194 sys/kern/kern_timeout.c:190 pcppi_bell(ffff80000066d000,a3e8a402,f627a2ad,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff800020c3af00,2,ffff800020b42720) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff800020c3af00,2,ffff800020b42720) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd8079485750,20005302,ffff800020c3af00,2,fffffd807f7c7900,ffff800020b42720) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd807a8bcef8,20005302,ffff800020c3af00,ffff800020b42720) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff800020b42720,ffff800020c3b048,ffff800020c3b030) at sys_ioctl+0x646 syscall(ffff800020c3b0e0) at syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c3b0e0) at syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff88,0,3,306d18d90d8) at Xsyscall+0x128 end of kernel end trace frame: 0x3090371f9f0, count: -10 ddb{0}> show registers rdi 0xffffffff816f6437 db_enter+0x17 rsi 0x10c1 __ALIGN_SIZE+0xc1 rbp 0xffff800020c3ab20 rbx 0xffff800020c3abd0 rdx 0x10c2 __ALIGN_SIZE+0xc2 rcx 0xffff800000b47000 rax 0xffff800000b47000 r8 0xffffffff81555b63 kprintf+0x183 r9 0x1 r10 0x25 r11 0x3ab4d57a6540e286 r12 0x3000000008 r13 0xffff800020c3ab30 r14 0x100 r15 0x1 rip 0xffffffff816f6438 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c3ab10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=25213 stat=onproc flags process=0 proc=4000000 pri=70, usrpri=70, nice=20 forw=0xffffffffffffffff, list=0xffff800020b43080,0xffffffff823128d8 process=0xffff800020b45078 user=0xffff800020c36000, vmspace=0xfffffd807f00c870 estcpu=20, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 99725 227568 2834 0 2 0 syz-executor.1 99725 504041 2834 0 3 0x4000080 ttyin syz-executor.1 81996 212727 4390 0 7 0 syz-executor.0 81996 9388 4390 0 3 0x4000080 nanosleep syz-executor.0 *81996 25213 4390 0 7 0x4000000 syz-executor.0 97653 78136 1 0 3 0x100083 ttyin getty 2834 357499 28220 0 3 0x82 nanosleep syz-executor.1 91164 403781 0 0 3 0x14200 bored sosplice 4390 101556 28220 0 3 0x82 nanosleep syz-executor.0 28220 218323 7837 0 3 0x82 kqread syz-fuzzer 28220 200611 7837 0 3 0x4000082 thrsleep syz-fuzzer 28220 7525 7837 0 3 0x4000082 thrsleep syz-fuzzer 28220 35096 7837 0 3 0x4000082 thrsleep syz-fuzzer 28220 522892 7837 0 3 0x4000082 thrsleep syz-fuzzer 28220 5931 7837 0 3 0x4000082 thrsleep syz-fuzzer 28220 393708 7837 0 3 0x4000082 thrsleep syz-fuzzer 28220 401474 7837 0 3 0x4000082 thrsleep syz-fuzzer 28220 326849 7837 0 3 0x4000082 thrsleep syz-fuzzer 28220 296458 7837 0 3 0x4000082 thrsleep syz-fuzzer 7837 95781 50103 0 3 0x10008a pause ksh 50103 94835 54300 0 3 0x92 select sshd 54300 429868 1 0 3 0x80 select sshd 15419 386304 35968 73 3 0x100090 kqread syslogd 35968 13477 1 0 3 0x100082 netio syslogd 2261 512934 1 77 3 0x100090 poll dhclient 91299 251365 1 0 3 0x80 poll dhclient 83825 183080 0 0 2 0x14200 zerothread 13155 48007 0 0 3 0x14200 aiodoned aiodoned 47349 483291 0 0 3 0x14200 syncer update 45942 493 0 0 3 0x14200 cleaner cleaner 52621 274455 0 0 3 0x14200 reaper reaper 53318 385809 0 0 3 0x14200 pgdaemon pagedaemon 20599 385376 0 0 3 0x14200 bored crynlk 40624 22805 0 0 3 0x14200 bored crypto 50752 197857 0 0 3 0x40014200 acpi0 acpi0 10800 402181 0 0 3 0x40014200 idle1 16803 30030 0 0 3 0x14200 bored softnet 13063 297871 0 0 3 0x14200 bored systqmp 42964 439709 0 0 3 0x14200 bored systq 72053 507925 0 0 3 0x40014200 bored softclock 59380 56157 0 0 3 0x40014200 idle0 1 337907 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 81996 (syz-executor.0) thread 0xffff800020b42720 (25213) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff823174f8) locked @ /syzkaller/managers/multicore/kernel/sys/sys/syscall_mi.h:90 #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9504 6359K 6374K 78643K 11069 0 0 pcb 23 9K 10K 78643K 876 0 0 rtable 100 3K 4K 78643K 713 0 0 ifaddr 49 12K 13K 78643K 236 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 34 0 0 iov 0 0K 24K 78643K 127 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1211 76K 76K 78643K 2334 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 26 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 218 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 6 17K 25K 78643K 1552 0 0 sigio 0 0K 0K 78643K 20 0 0 proc 42 38K 58K 78643K 723 0 0 subproc 64 65538K 67586K 78643K 428 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 170 0 0 in_multi 33 2K 2K 78643K 202 0 0 ether_multi 1 0K 0K 78643K 7 0 0 mrt 2 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 313 0 0 pfkey data 0 0K 0K 78643K 6 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 93 21K 29K 78643K 5888 0 0 UVM aobj 88 4K 5K 78643K 101 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 42 0 0 NDP 9 0K 0K 78643K 78 0 0 temp 149 2366K 3001K 78643K 7600 0 0 kqueue 0 0K 0K 78643K 11 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 14 0 10 1 0 1 1 0 8 0 inpcbpl 280 743 0 736 1 0 1 1 0 8 0 plimitpl 152 50 0 43 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 131 0 91 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 269 0 265 1 0 1 1 0 8 0 nd6 48 24 0 20 1 0 1 1 0 8 0 ppxss 1128 22 0 22 9 9 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 610 0 422 12 0 12 12 0 8 0 art_table 32 611 0 422 2 0 2 2 0 8 0 art_node 16 130 0 96 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 3 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 216 0 206 1 0 1 1 0 8 0 shmpl 112 99 0 13 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4383 0 2943 47 0 47 47 0 8 0 ffsino 272 4383 0 2943 98 1 97 97 0 8 0 nchpl 144 6823 0 5207 61 0 61 61 0 8 0 uvmvnodes 72 4740 0 0 87 0 87 87 0 8 0 vnodes 200 4740 0 0 250 0 250 250 0 8 0 namei 1024 20787 0 20787 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 8 0 8 5 4 1 1 0 8 1 scxspl 192 17696 0 17696 10 9 1 6 0 8 1 sigapl 432 1694 0 1680 2 0 2 2 0 8 0 futexpl 56 17990 0 17990 1 0 1 1 0 8 1 knotepl 112 694 0 667 5 4 1 2 0 8 0 kqueuepl 104 465 0 463 1 0 1 1 0 8 0 pipepl 112 1084 0 1065 5 4 1 2 0 8 0 fdescpl 488 1695 0 1680 3 1 2 3 0 8 0 filepl 152 10743 0 10644 9 4 5 5 0 8 1 lockfpl 104 427 0 425 5 4 1 1 0 8 0 lockfspl 32 700 0 698 5 4 1 1 0 8 0 sessionpl 112 31 0 21 1 0 1 1 0 8 0 pgrppl 48 59 0 49 1 0 1 1 0 8 0 ucredpl 96 3106 0 3099 1 0 1 1 0 8 0 zombiepl 144 1680 0 1680 2 1 1 1 0 8 1 processpl 840 1710 0 1680 4 0 4 4 0 8 0 procpl 600 5059 0 5017 4 0 4 4 0 8 0 srpgc 64 60 0 60 1 1 0 1 0 8 0 sosppl 128 36 0 36 8 8 0 1 0 8 0 sockpl 384 1522 0 1505 7 4 3 3 0 8 1 mcl64k 65536 511 0 0 64 22 42 64 0 8 1 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 18 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 2 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 598 0 0 37 0 37 37 0 8 0 bufpl 256 7443 0 1017 402 0 402 402 0 8 0 anonpl 16 177952 0 169911 123 74 49 49 0 125 16 amapchunkpl 152 10144 0 10043 15 10 5 9 0 158 0 amappl16 192 9193 0 8776 108 79 29 33 0 8 8 amappl15 184 5 0 4 1 0 1 1 0 8 0 amappl14 176 23 0 22 2 1 1 1 0 8 0 amappl13 168 790 0 785 1 0 1 1 0 8 0 amappl12 160 716 0 711 2 1 1 1 0 8 0 amappl11 152 222 0 213 1 0 1 1 0 8 0 amappl10 144 65 0 64 2 1 1 1 0 8 0 amappl9 136 370 0 367 1 0 1 1 0 8 0 amappl8 128 210 0 185 1 0 1 1 0 8 0 amappl7 120 800 0 791 1 0 1 1 0 8 0 amappl6 112 65 0 60 1 0 1 1 0 8 0 amappl5 104 173 0 162 1 0 1 1 0 8 0 amappl4 96 316 0 292 2 1 1 2 0 8 0 amappl3 88 903 0 896 1 0 1 1 0 8 0 amappl2 80 15273 0 15209 2 0 2 2 0 8 0 amappl1 72 45136 0 44705 23 13 10 19 0 8 0 amappl 72 5353 0 5315 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 100 0 13 2 0 2 2 0 8 0 uaddrrnd 24 1695 0 1680 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1695 0 1680 1 0 1 1 0 8 0 vmmpekpl 168 17034 0 17012 2 0 2 2 0 8 0 vmmpepl 168 188182 0 186730 125 51 74 75 0 357 10 vmsppl 360 1694 0 1680 2 0 2 2 0 8 0 pdppl 4096 3397 0 3360 6 1 5 6 0 8 0 pvpl 32 491637 0 480479 233 106 127 128 0 265 35 pmappl 224 1694 0 1680 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 647 0 27 18 0 18 18 0 8 0