W3SW@4nlB]a@panic: timeout_add: to_ticks (-491650533) < 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *300047 60644 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x15c sys/kern/subr_prf.c:208 timeout_add(ffff800000669260,e2b2021b) at timeout_add+0x179 sys/kern/kern_timeout.c:190 pcppi_bell(ffff800000669200,c17be9e0,e2b2021b,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff8000149fc650,2,ffff8000ffff8e18) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff8000149fc650,2,ffff8000ffff8e18) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd803766ee48,20005302,ffff8000149fc650,2,fffffd803f7c7ae0,ffff8000ffff8e18) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd802fe2d808,20005302,ffff8000149fc650,ffff8000ffff8e18) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000ffff8e18,ffff8000149fc798,ffff8000149fc780) at sys_ioctl+0x62d syscall(ffff8000149fc830) at syscall+0x535 Xsyscall(6,0,ffffffffffffff88,0,3,afec6a10010) at Xsyscall+0x128 end of kernel end trace frame: 0xb011bc34b80, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic timeout_add: to_ticks (-491650533) < 0 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x15c sys/kern/subr_prf.c:208 timeout_add(ffff800000669260,e2b2021b) at timeout_add+0x179 sys/kern/kern_timeout.c:190 pcppi_bell(ffff800000669200,c17be9e0,e2b2021b,1) at pcppi_bell+0x2a0 sys/dev/isa/pcppi.c:234 spkrioctl(1b00,20005302,ffff8000149fc650,2,ffff8000ffff8e18) at spkrioctl+0x230 tone sys/dev/isa/spkr.c:89 [inline] spkrioctl(1b00,20005302,ffff8000149fc650,2,ffff8000ffff8e18) at spkrioctl+0x230 sys/dev/isa/spkr.c:503 VOP_IOCTL(fffffd803766ee48,20005302,ffff8000149fc650,2,fffffd803f7c7ae0,ffff8000ffff8e18) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd802fe2d808,20005302,ffff8000149fc650,ffff8000ffff8e18) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000ffff8e18,ffff8000149fc798,ffff8000149fc780) at sys_ioctl+0x62d syscall(ffff8000149fc830) at syscall+0x535 Xsyscall(6,0,ffffffffffffff88,0,3,afec6a10010) at Xsyscall+0x128 end of kernel end trace frame: 0xb011bc34b80, count: -10 ddb> show registers rdi 0xffffffff814d63b7 db_enter+0x17 rsi 0x1735 __ALIGN_SIZE+0x735 rbp 0xffff8000149fc270 rbx 0xffff8000149fc320 rdx 0x1736 __ALIGN_SIZE+0x736 rcx 0xffff800002b3a000 rax 0xffff800002b3a000 r8 0xffff8000149fc230 r9 0x1 r10 0xffff800001d38600 r11 0xab4ac9621b9f2f34 r12 0x3000000008 r13 0xffff8000149fc280 r14 0x100 r15 0x1 rip 0xffffffff814d63b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149fc260 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=300047 stat=onproc flags process=0 proc=4000000 pri=21, usrpri=75, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8710,0xffff80001495d088 process=0xffff8000149a3718 user=0xffff8000149f7000, vmspace=0xfffffd803f014d68 estcpu=25, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 60644 484952 66736 0 2 0 syz-executor.1 *60644 300047 66736 0 7 0x4000000 syz-executor.1 60644 112740 66736 0 3 0x4000080 bell syz-executor.1 78472 391952 0 0 3 0x14200 bored sosplice 66736 134145 57113 0 3 0x82 nanosleep syz-executor.1 55075 162542 57113 0 3 0x82 piperd syz-executor.0 57113 417087 71023 0 3 0x82 thrsleep syz-fuzzer 57113 251092 71023 0 3 0x4000082 thrsleep syz-fuzzer 57113 390269 71023 0 3 0x4000082 thrsleep syz-fuzzer 57113 183247 71023 0 3 0x4000082 thrsleep syz-fuzzer 57113 240569 71023 0 3 0x4000082 thrsleep syz-fuzzer 57113 284266 71023 0 3 0x4000082 thrsleep syz-fuzzer 57113 429875 71023 0 3 0x4000082 thrsleep syz-fuzzer 57113 33588 71023 0 3 0x4000082 kqread syz-fuzzer 71023 264425 55766 0 3 0x10008a pause ksh 55766 53874 99118 0 3 0x92 select sshd 92818 327940 1 0 3 0x100083 ttyin getty 99118 298405 1 0 3 0x80 select sshd 80901 272089 79164 73 3 0x100090 kqread syslogd 79164 317496 1 0 3 0x100082 netio syslogd 67593 178183 1 77 3 0x100090 poll dhclient 17075 361144 1 0 3 0x80 poll dhclient 1486 195263 0 0 2 0x14200 zerothread 37602 336392 0 0 3 0x14200 aiodoned aiodoned 21241 187456 0 0 3 0x14200 syncer update 81872 517145 0 0 3 0x14200 cleaner cleaner 33582 428171 0 0 3 0x14200 reaper reaper 75461 181470 0 0 3 0x14200 pgdaemon pagedaemon 92716 406866 0 0 3 0x14200 bored crynlk 67369 197374 0 0 3 0x14200 bored crypto 74102 227554 0 0 3 0x40014200 acpi0 acpi0 70275 427380 0 0 3 0x14200 bored softnet 28332 264600 0 0 3 0x14200 bored systqmp 54190 179147 0 0 3 0x14200 bored systq 18488 375446 0 0 3 0x40014200 bored softclock 48156 257181 0 0 3 0x40014200 idle0 1 124253 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9479 6340K 6355K 78643K 10672 0 0 pcb 23 9K 10K 78643K 145 0 0 rtable 100 3K 3K 78643K 217 0 0 ifaddr 49 12K 12K 78643K 77 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 17 0 0 iov 0 0K 24K 78643K 34 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1198 75K 75K 78643K 1365 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 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 14 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1777 193K 286K 78643K 12501 0 0 file desc 5 13K 25K 78643K 257 0 0 proc 42 30K 54K 78643K 283 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 22 0 0 in_multi 33 2K 2K 78643K 65 0 0 ether_multi 1 0K 0K 78643K 10 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 181 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 71 20K 20K 78643K 1364 0 0 UVM aobj 22 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 1K 78643K 11 0 0 NDP 9 0K 0K 78643K 20 0 0 temp 118 2335K 2402K 78643K 3443 0 0 kqueue 0 0K 0K 78643K 1 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> 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 158 0 151 1 0 1 1 0 8 0 plimitpl 152 16 0 9 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 66 0 62 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 7 0 7 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 184 0 0 12 0 12 12 0 8 0 art_table 32 185 0 0 2 0 2 2 0 8 0 art_node 16 40 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 12 0 2 1 0 1 1 0 8 0 shmpl 112 27 0 7 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1901 0 491 46 0 46 46 0 8 0 ffsino 240 1901 0 491 83 0 83 83 0 8 0 nchpl 144 2486 0 863 61 0 61 61 0 8 0 uvmvnodes 72 1963 0 0 36 0 36 36 0 8 0 vnodes 200 1963 0 0 104 0 104 104 0 8 0 namei 1024 6633 0 6633 2 1 1 1 0 8 1 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 7365 0 7365 8 7 1 6 0 8 1 sigapl 432 425 0 412 2 0 2 2 0 8 0 futexpl 56 3986 0 3986 1 0 1 1 0 8 1 knotepl 112 116 0 89 2 1 1 2 0 8 0 kqueuepl 104 70 0 68 1 0 1 1 0 8 0 pipepl 112 260 0 241 2 1 1 1 0 8 0 fdescpl 424 426 0 412 2 0 2 2 0 8 0 filepl 120 2575 0 2475 4 0 4 4 0 8 0 lockfpl 104 71 0 68 2 1 1 1 0 8 0 lockfspl 32 80 0 77 2 1 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 671 0 664 1 0 1 1 0 8 0 zombiepl 144 412 0 412 2 1 1 1 0 8 1 processpl 840 440 0 412 5 1 4 4 0 8 0 procpl 600 778 0 741 4 0 4 4 0 8 1 sosppl 128 3 0 3 1 0 1 1 0 8 1 sockpl 384 264 0 247 3 0 3 3 0 8 1 mcl64k 65536 462 0 462 30 11 19 29 0 8 19 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 3 0 3 1 0 1 1 0 8 1 mcl9k 9216 3 0 3 1 1 0 1 0 8 0 mcl8k 8192 5 0 5 2 1 1 1 0 8 1 mcl4k 4096 15 0 15 3 2 1 1 0 8 1 mcl2k2 2112 2 0 2 2 1 1 1 0 8 1 mcl2k 2048 43742 0 43706 12 7 5 10 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 73153 0 73074 22 11 11 20 0 8 3 bufpl 256 5934 0 1706 265 0 265 265 0 8 0 anonpl 16 54795 0 46813 49 10 39 48 0 62 6 amapchunkpl 152 1742 0 1661 5 1 4 5 0 158 0 amappl16 192 2394 0 1966 37 15 22 33 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 3 0 3 2 2 0 1 0 8 0 amappl13 168 140 0 135 1 0 1 1 0 8 0 amappl12 160 9 0 8 2 1 1 1 0 8 0 amappl11 152 179 0 170 1 0 1 1 0 8 0 amappl10 144 58 0 57 2 1 1 1 0 8 0 amappl9 136 297 0 294 1 0 1 1 0 8 0 amappl8 128 129 0 112 1 0 1 1 0 8 0 amappl7 120 153 0 147 1 0 1 1 0 8 0 amappl6 112 51 0 45 1 0 1 1 0 8 0 amappl5 104 234 0 223 1 0 1 1 0 8 0 amappl4 96 383 0 361 1 0 1 1 0 8 0 amappl3 88 135 0 129 1 0 1 1 0 8 0 amappl2 80 3005 0 2955 2 0 2 2 0 8 0 amappl1 72 16610 0 16199 23 13 10 19 0 8 0 amappl 72 1002 0 970 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 7 1 0 1 1 0 8 0 uaddrrnd 24 426 0 412 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 426 0 412 1 0 1 1 0 8 0 vmmpekpl 168 6796 0 6775 3 1 2 2 0 8 0 vmmpepl 168 51899 0 50562 87 23 64 73 0 357 4 vmsppl 264 425 0 412 2 1 1 2 0 8 0 pdppl 4096 858 0 824 6 1 5 6 0 8 0 pvpl 32 176574 0 165669 128 18 110 119 0 265 20 pmappl 192 425 0 412 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 445 0 36 13 0 13 13 0 8 0