panic: timeout_add: to_ticks (-1496572519) < 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 111916 40178 0 0 0 0 syz-executor.0 *352024 71007 0 0 0x4000000 1K syz-executor.1 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,a6cc1d99) at timeout_add+0x194 sys/kern/kern_timeout.c:190 pcppi_bell(ffff80000066d000,fb4bc5d5,a6cc1d99,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,80085301,ffff800020c43340,2,ffff800020b42e28) at spkrioctl+0x123 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,80085301,ffff800020c43340,2,ffff800020b42e28) at spkrioctl+0x123 sys/dev/isa/spkr.c:489 VOP_IOCTL(fffffd8064dc7c58,80085301,ffff800020c43340,2,fffffd807f7c7c00,ffff800020b42e28) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8070512b48,80085301,ffff800020c43340,ffff800020b42e28) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff800020b42e28,ffff800020c43488,ffff800020c43470) at sys_ioctl+0x646 syscall(ffff800020c43520) at syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c43520) at syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff88,0,3,3e3d7331010) at Xsyscall+0x128 end of kernel end trace frame: 0x3e61f587640, 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 (-1496572519) < 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,a6cc1d99) at timeout_add+0x194 sys/kern/kern_timeout.c:190 pcppi_bell(ffff80000066d000,fb4bc5d5,a6cc1d99,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,80085301,ffff800020c43340,2,ffff800020b42e28) at spkrioctl+0x123 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,80085301,ffff800020c43340,2,ffff800020b42e28) at spkrioctl+0x123 sys/dev/isa/spkr.c:489 VOP_IOCTL(fffffd8064dc7c58,80085301,ffff800020c43340,2,fffffd807f7c7c00,ffff800020b42e28) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8070512b48,80085301,ffff800020c43340,ffff800020b42e28) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff800020b42e28,ffff800020c43488,ffff800020c43470) at sys_ioctl+0x646 syscall(ffff800020c43520) at syscall+0x5ac mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c43520) at syscall+0x5ac sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff88,0,3,3e3d7331010) at Xsyscall+0x128 end of kernel end trace frame: 0x3e61f587640, count: -10 ddb{1}> show registers rdi 0xffffffff810d3ad7 db_enter+0x17 rsi 0x10a2 __ALIGN_SIZE+0xa2 rbp 0xffff800020c42f60 rbx 0xffff800020c43010 rdx 0x10a3 __ALIGN_SIZE+0xa3 rcx 0xffff800002b49000 rax 0xffff800002b49000 r8 0xffffffff81b51ec3 kprintf+0x183 r9 0x1 r10 0x25 r11 0x793dcc1bb5ac9deb r12 0x3000000008 r13 0xffff800020c42f70 r14 0x100 r15 0x1 rip 0xffffffff810d3ad8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c42f50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=352024 stat=onproc flags process=0 proc=4000000 pri=70, usrpri=70, nice=20 forw=0xffffffffffffffff, list=0xffff800020b43788,0xffff800020b439f0 process=0xffff800020b453c0 user=0xffff800020c3e000, vmspace=0xfffffd807efffb40 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 40178 111916 20170 0 7 0 syz-executor.0 40178 441608 20170 0 2 0x4000000 syz-executor.0 71007 189998 52432 0 2 0 syz-executor.1 *71007 352024 52432 0 7 0x4000000 syz-executor.1 34793 294558 0 0 3 0x14200 bored sosplice 98186 459475 1 0 3 0x100083 ttyin getty 52432 255618 14063 0 3 0x82 nanosleep syz-executor.1 20170 327359 14063 0 3 0x82 nanosleep syz-executor.0 14063 120625 65494 0 3 0x82 thrsleep syz-fuzzer 14063 443674 65494 0 3 0x4000082 thrsleep syz-fuzzer 14063 16363 65494 0 3 0x4000082 thrsleep syz-fuzzer 14063 364365 65494 0 3 0x4000082 thrsleep syz-fuzzer 14063 308655 65494 0 3 0x4000082 kqread syz-fuzzer 14063 277535 65494 0 3 0x4000082 thrsleep syz-fuzzer 14063 85282 65494 0 3 0x4000082 thrsleep syz-fuzzer 14063 318201 65494 0 3 0x4000082 thrsleep syz-fuzzer 14063 450017 65494 0 3 0x4000082 thrsleep syz-fuzzer 14063 41864 65494 0 3 0x4000082 thrsleep syz-fuzzer 65494 25897 1468 0 3 0x10008a pause ksh 1468 248525 48233 0 3 0x92 select sshd 48233 217234 1 0 3 0x80 select sshd 78622 379351 17000 73 3 0x100090 kqread syslogd 17000 443230 1 0 3 0x100082 netio syslogd 65491 259475 1 77 3 0x100090 poll dhclient 82723 351628 1 0 3 0x80 poll dhclient 65929 341753 0 0 2 0x14200 zerothread 41176 222541 0 0 3 0x14200 aiodoned aiodoned 10743 443670 0 0 3 0x14200 syncer update 18496 480863 0 0 3 0x14200 cleaner cleaner 25513 158731 0 0 3 0x14200 reaper reaper 65343 484907 0 0 3 0x14200 pgdaemon pagedaemon 63916 251390 0 0 3 0x14200 bored crynlk 33718 317380 0 0 3 0x14200 bored crypto 33716 33474 0 0 3 0x40014200 acpi0 acpi0 97821 438833 0 0 3 0x40014200 idle1 94195 200129 0 0 3 0x14200 bored softnet 54702 365840 0 0 3 0x14200 bored systqmp 45343 181700 0 0 3 0x14200 bored systq 45482 451828 0 0 3 0x40014200 bored softclock 39319 387117 0 0 3 0x40014200 idle0 1 25493 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 71007 (syz-executor.1) thread 0xffff800020b42e28 (352024) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82336d78) 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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9493 6340K 6351K 78643K 10696 0 0 pcb 23 9K 9K 78643K 216 0 0 rtable 97 3K 3K 78643K 186 0 0 ifaddr 44 11K 11K 78643K 51 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 17 0 0 iov 0 0K 16K 78643K 46 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1196 75K 75K 78643K 1422 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 5 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 35 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 6 17K 25K 78643K 381 0 0 sigio 0 0K 0K 78643K 8 0 0 proc 42 38K 58K 78643K 334 0 0 subproc 64 65538K 67586K 78643K 68 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 75 0 0 in_multi 33 2K 2K 78643K 64 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 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 189 0 0 pfkey data 0 0K 0K 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 81 20K 29K 78643K 1967 0 0 UVM aobj 11 2K 2K 78643K 11 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 6 0 0 NDP 8 0K 0K 78643K 14 0 0 temp 130 2363K 2436K 78643K 3746 0 0 kqueue 0 0K 0K 78643K 5 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 231 0 224 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 81 0 77 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 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 6 0 2 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 31 0 21 1 0 1 1 0 8 0 shmpl 112 9 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2147 0 735 46 0 46 46 0 8 0 ffsino 272 2147 0 735 95 0 95 95 0 8 0 nchpl 144 2915 0 1296 61 0 61 61 0 8 0 uvmvnodes 72 2227 0 0 41 0 41 41 0 8 0 vnodes 200 2227 0 0 118 0 118 118 0 8 0 namei 1024 8060 0 8060 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 8781 0 8781 10 7 3 6 0 8 3 sigapl 432 550 0 536 2 0 2 2 0 8 0 futexpl 56 4361 0 4361 1 0 1 1 0 8 1 knotepl 112 159 0 132 4 2 2 2 0 8 1 kqueuepl 104 107 0 105 1 0 1 1 0 8 0 pipepl 112 338 0 319 2 1 1 1 0 8 0 fdescpl 488 551 0 536 3 1 2 3 0 8 0 filepl 152 3274 0 3178 6 1 5 5 0 8 0 lockfpl 104 153 0 152 2 1 1 1 0 8 0 lockfspl 32 142 0 141 2 1 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 41 0 31 1 0 1 1 0 8 0 ucredpl 96 769 0 762 1 0 1 1 0 8 0 zombiepl 144 536 0 536 2 1 1 1 0 8 1 processpl 840 566 0 536 4 0 4 4 0 8 0 procpl 600 1391 0 1350 4 0 4 4 0 8 0 sosppl 128 11 0 11 2 1 1 1 0 8 1 sockpl 384 401 0 384 3 0 3 3 0 8 1 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 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 118 0 0 14 0 14 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 147 0 0 8 0 8 8 0 8 0 bufpl 256 6248 0 1018 327 0 327 327 0 8 0 anonpl 16 59123 0 51309 50 17 33 46 0 125 0 amapchunkpl 152 2819 0 2732 10 5 5 9 0 158 1 amappl16 192 2378 0 1963 32 10 22 32 0 8 1 amappl15 184 186 0 184 1 0 1 1 0 8 0 amappl14 176 7 0 6 2 1 1 1 0 8 0 amappl13 168 25 0 22 1 0 1 1 0 8 0 amappl12 160 9 0 8 1 0 1 1 0 8 0 amappl11 152 360 0 349 1 0 1 1 0 8 0 amappl10 144 58 0 56 1 0 1 1 0 8 0 amappl9 136 321 0 316 1 0 1 1 0 8 0 amappl8 128 132 0 115 1 0 1 1 0 8 0 amappl7 120 39 0 34 1 0 1 1 0 8 0 amappl6 112 52 0 45 1 0 1 1 0 8 0 amappl5 104 373 0 360 1 0 1 1 0 8 0 amappl4 96 276 0 252 2 1 1 2 0 8 0 amappl3 88 140 0 135 1 0 1 1 0 8 0 amappl2 80 4479 0 4415 2 0 2 2 0 8 0 amappl1 72 20362 0 19935 24 14 10 19 0 8 0 amappl 72 1593 0 1559 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 10 0 0 1 0 1 1 0 8 0 uaddrrnd 24 551 0 536 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 551 0 536 1 0 1 1 0 8 0 vmmpekpl 168 8261 0 8238 2 0 2 2 0 8 0 vmmpepl 168 66802 0 65372 85 20 65 70 0 357 2 vmsppl 360 550 0 536 2 0 2 2 0 8 0 pdppl 4096 1110 0 1072 6 1 5 6 0 8 0 pvpl 32 209714 0 198836 135 23 112 125 0 265 23 pmappl 224 550 0 536 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 476 0 4 14 0 14 14 0 8 0