panic: kernel diagnostic assertion "to->to_kclock == KCLOCK_UPTIME" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_timeout.c", line 500 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *237861 89738 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff8275cfb6,1f4,ffffffff82774c92) at __assert+0x25 sys/kern/subr_prf.c:157 timeout_bucket(fffffd8077683f08) at timeout_bucket+0x1e4 sys/kern/kern_timeout.c:503 softclock_process_kclock_timeout(fffffd8077683f08,0) at softclock_process_kclock_timeout+0xe5 sys/kern/kern_timeout.c:656 softclock(0) at softclock+0x11a sys/kern/kern_timeout.c:717 softintr_dispatch(0) at softintr_dispatch+0xd1 sys/arch/amd64/amd64/softintr.c:90 Xsoftclock() at Xsoftclock+0x1f Xspllower() at Xspllower+0x19 printf(ffffffff827048df) at printf+0x84 sys/kern/subr_prf.c:532 uvm_fault_unwire_locked(fffffd807e691568,e0fceb75000,e0fced74000) at uvm_fault_unwire_locked+0x20c sys/uvm/uvm_fault.c:1679 uvm_unmap_kill_entry_withlock(fffffd807e691568,fffffd8069b66d90,0) at uvm_unmap_kill_entry_withlock+0x62 sys/uvm/uvm_map.c:1924 uvm_map_teardown(fffffd807e691568) at uvm_map_teardown+0x157 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd807e691568) at uvm_map_teardown+0x157 sys/uvm/uvm_map.c:2578 uvmspace_free(fffffd807e691568) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3516 end trace frame: 0xffff8000216407c0, count: 0 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 *cpu0: kernel diagnostic assertion "to->to_kclock == KCLOCK_UPTIME" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_timeout.c", line 500 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff8275cfb6,1f4,ffffffff82774c92) at __assert+0x25 sys/kern/subr_prf.c:157 timeout_bucket(fffffd8077683f08) at timeout_bucket+0x1e4 sys/kern/kern_timeout.c:503 softclock_process_kclock_timeout(fffffd8077683f08,0) at softclock_process_kclock_timeout+0xe5 sys/kern/kern_timeout.c:656 softclock(0) at softclock+0x11a sys/kern/kern_timeout.c:717 softintr_dispatch(0) at softintr_dispatch+0xd1 sys/arch/amd64/amd64/softintr.c:90 Xsoftclock() at Xsoftclock+0x1f Xspllower() at Xspllower+0x19 printf(ffffffff827048df) at printf+0x84 sys/kern/subr_prf.c:532 uvm_fault_unwire_locked(fffffd807e691568,e0fceb75000,e0fced74000) at uvm_fault_unwire_locked+0x20c sys/uvm/uvm_fault.c:1679 uvm_unmap_kill_entry_withlock(fffffd807e691568,fffffd8069b66d90,0) at uvm_unmap_kill_entry_withlock+0x62 sys/uvm/uvm_map.c:1924 uvm_map_teardown(fffffd807e691568) at uvm_map_teardown+0x157 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd807e691568) at uvm_map_teardown+0x157 sys/uvm/uvm_map.c:2578 uvmspace_free(fffffd807e691568) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3516 reaper(ffff8000ffff8ae8) at reaper+0x15d sys/kern/kern_exit.c:448 end trace frame: 0x0, count: -15 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800021640250 rbx 0 rdx 0 rcx 0 rax 0xffff8000ffff8ae8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x28609f84fed8887c r11 0x57f2d2e9ede24afa r12 0 r13 0xbb49681ce8037584 r14 0 r15 0x1 rip 0xffffffff81a69eb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021640240 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (reaper) pid=237861 stat=onproc flags process=14000 proc=200 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff9058,0xffff8000ffff8840 process=0xffff8000ffffabd8 user=0xffff80002163b000, vmspace=0xffffffff82c0a9b0 estcpu=36, cpticks=24, pctcpu=19.8 user=0, sys=4, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 79898 188440 12425 0 3 0x82 wait syz-executor.7 56046 193274 12425 0 3 0x82 piperd syz-executor.5 51206 402279 12425 0 3 0x82 piperd syz-executor.0 88385 438905 12425 0 3 0x82 piperd syz-executor.6 40440 58800 12425 0 3 0x82 piperd syz-executor.4 11410 398832 12425 0 3 0x82 piperd syz-executor.1 43852 273328 12425 0 3 0x82 piperd syz-executor.2 84093 455563 1 0 3 0x100083 ttyin getty 79568 446262 0 0 3 0x14280 nfsidl nfsio 97093 38814 0 0 3 0x14280 nfsidl nfsio 19972 489208 0 0 3 0x14280 nfsidl nfsio 81985 52582 0 0 3 0x14280 nfsidl nfsio 79060 401519 0 0 3 0x14280 nfsidl nfsio 60862 324311 0 0 3 0x14280 nfsidl nfsio 46997 444411 0 0 3 0x14280 nfsidl nfsio 36600 359102 0 0 3 0x14280 nfsidl nfsio 75303 308849 0 0 3 0x14280 nfsidl nfsio 96441 37722 0 0 3 0x14280 nfsidl nfsio 12236 145564 0 0 3 0x14280 nfsidl nfsio 87705 389718 0 0 3 0x14280 nfsidl nfsio 40846 487707 0 0 3 0x14280 nfsidl nfsio 4317 78919 0 0 3 0x14280 nfsidl nfsio 98881 457310 0 0 3 0x14280 nfsidl nfsio 52324 290081 0 0 3 0x14280 nfsidl nfsio 63369 489227 0 0 3 0x14280 nfsidl nfsio 51340 57020 0 0 3 0x14280 nfsidl nfsio 69397 279617 0 0 3 0x14280 nfsidl nfsio 12018 249622 0 0 3 0x14280 nfsidl nfsio 95693 26575 12425 0 3 0x82 piperd syz-executor.3 70537 39383 0 0 3 0x14200 bored sosplice 12425 414632 13275 0 3 0x82 wait syz-fuzzer 12425 366088 13275 0 2 0x4000482 syz-fuzzer 12425 140442 13275 0 3 0x4000082 thrsleep syz-fuzzer 12425 306784 13275 0 3 0x4000082 wait syz-fuzzer 12425 413847 13275 0 3 0x4000082 wait syz-fuzzer 12425 487618 13275 0 3 0x4000082 wait syz-fuzzer 12425 521492 13275 0 3 0x4000082 thrsleep syz-fuzzer 12425 41962 13275 0 3 0x4000082 wait syz-fuzzer 12425 440391 13275 0 3 0x4000082 kqread syz-fuzzer 12425 509086 13275 0 3 0x4000082 thrsleep syz-fuzzer 12425 302886 13275 0 3 0x4000082 thrsleep syz-fuzzer 12425 233168 13275 0 3 0x4000082 wait syz-fuzzer 12425 142175 13275 0 3 0x4000082 wait syz-fuzzer 12425 96416 13275 0 3 0x4000082 wait syz-fuzzer 13275 413112 56342 0 3 0x10008a sigsusp ksh 56342 225100 84946 0 3 0x9a kqread sshd 84946 108324 1 0 3 0x88 kqread sshd 300 218272 24358 73 2 0x1100010 syslogd 24358 411302 1 0 3 0x100082 netio syslogd 67098 124701 1 0 3 0x100080 kqread resolvd 96318 478105 76217 77 3 0x100092 kqread dhcpleased 96459 16442 76217 77 3 0x100092 kqread dhcpleased 76217 432632 1 0 3 0x80 kqread dhcpleased 29272 283650 0 0 3 0x14200 bored smr 78715 453027 0 0 2 0x14200 zerothread 36227 370247 0 0 3 0x14200 aiodoned aiodoned 43912 229087 0 0 3 0x14200 syncer update 49249 323415 0 0 3 0x14200 cleaner cleaner *89738 237861 0 0 7 0x14200 reaper 93423 374847 0 0 3 0x14200 pgdaemon pagedaemon 14083 431314 0 0 3 0x14200 bored viomb 84305 193321 0 0 3 0x40014200 acpi0 acpi0 71475 447770 0 0 3 0x14200 bored softnet 57219 184122 0 0 3 0x14200 bored softnet 52459 71913 0 0 3 0x14200 bored softnet 8912 388926 0 0 3 0x14200 bored softnet 51126 317949 0 0 3 0x14200 bored systqmp 88054 395064 0 0 3 0x14200 bored systq 37633 347537 0 0 3 0x40014200 bored softclock 74448 17296 0 0 3 0x40014200 idle0 1 344151 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 devbuf 10224 6443K 7579K 78643K 49343 0 pcb 13 16K 18K 78643K 1675 0 rtable 189 15K 15K 78643K 2897 0 ifaddr 102 29K 29K 78643K 919 0 sysctl 2 0K 2K 78643K 5 0 counters 28 17K 17K 78643K 405 0 ioctlops 0 0K 4K 78643K 1420 0 iov 0 0K 28K 78643K 1850 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1658 104K 104K 78643K 13859 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 75 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 1416 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 10 33K 69K 78643K 8735 0 sigio 0 0K 0K 78643K 37 0 proc 64 59K 75K 78643K 2470 0 subproc 104 6K 6K 78643K 913 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 345 0 in_multi 81 5K 6K 78643K 989 0 ether_multi 1 0K 0K 78643K 46 0 mrt 1 0K 0K 78643K 41 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 223 996K 996K 78643K 223 0 exec 0 0K 1K 78643K 2664 0 pfkey data 0 0K 0K 78643K 2 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 291 96K 99K 78643K 54811 0 UVM aobj 131 6K 8K 78643K 150 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 295 0 NDP 13 0K 2K 78643K 330 0 temp 133 5770K 6797K 78643K 113195 0 kqueue 12 18K 26K 78643K 767 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 719 0 716 9 8 1 3 0 8 0 rtentry 112 949 0 868 5 2 3 4 0 8 0 unpcb 144 9681 0 9668 89 88 1 10 0 8 0 syncache 296 61 0 61 14 14 0 1 0 8 0 tcpqe 32 166 0 166 9 9 0 1 0 8 0 tcpcb 776 4874 0 4870 103 102 1 15 0 8 0 arp 88 156 0 142 1 0 1 1 0 8 0 ipq 40 8 0 8 3 3 0 1 0 8 0 ipqe 40 85 0 85 3 3 0 1 0 8 0 inpcb 336 12030 0 12023 158 152 6 22 0 8 5 nd6 48 227 0 209 1 0 1 1 0 8 0 pkpcb 40 164 0 164 6 6 0 1 0 8 0 kcovpl 48 70 0 62 1 0 1 1 0 8 0 mppekey 1024 4 0 4 1 1 0 1 0 8 0 ppxss 1160 252 0 252 14 14 0 1 0 8 0 pppxif 1360 203 0 203 11 11 0 1 0 8 0 pfstscr 40 132 0 114 1 0 1 1 0 8 0 pfosfp 40 26 0 21 1 0 1 1 0 8 0 pfosfpen 112 26 0 10 1 0 1 1 0 8 0 pfanchor 1280 512 2 0 43 0 43 43 0 8 0 pfstitem 24 183 0 148 1 0 1 1 0 8 0 pfstkey 128 270 0 256 1 0 1 1 0 8 0 pfstate 352 138 0 120 4 2 2 2 0 8 0 rttmr 136 10 0 10 3 3 0 1 0 8 0 art_heap8 4096 5 0 4 5 4 1 2 0 8 0 art_heap4 256 4090 0 3730 54 31 23 29 0 8 0 art_table 32 4095 0 3734 4 1 3 4 0 8 0 art_node 16 940 0 870 1 0 1 1 0 8 0 sysvmsgpl 40 47 0 7 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1414 0 1404 1 0 1 1 0 8 0 shmpl 112 147 0 19 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 12884 0 11424 92 0 92 92 0 8 0 ffsino 240 12884 0 11424 86 0 86 86 0 8 0 nchpl 144 24261 0 22631 63 1 62 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 99372 0 99372 9 9 0 3 0 8 0 vmpool 664 163 0 163 9 9 0 1 0 8 0 kstatmem 264 360 0 334 2 0 2 2 0 8 0 scsiplug 72 8 0 8 3 3 0 1 0 8 0 scxspl 216 78880 0 78880 23 22 1 8 0 8 1 plimitpl 152 1724 0 1708 1 0 1 1 0 8 0 sigapl 424 8981 0 8922 8 0 8 8 0 8 0 futexpl 64 96189 0 96189 3 3 0 1 0 8 0 knotepl 120 158205 0 158125 45 39 6 11 0 8 1 kqueuepl 184 1741 0 1733 22 21 1 4 0 8 0 pipepl 288 2596 0 2568 71 68 3 11 0 8 0 fdescpl 432 8883 0 8862 4 0 4 4 0 8 0 filepl 120 76700 0 76467 109 101 8 18 0 8 0 lockfpl 104 13589 0 13587 32 31 1 6 0 8 0 lockfspl 48 6144 0 6142 7 6 1 3 0 8 0 sessionpl 144 86 0 70 1 0 1 1 0 8 0 pgrppl 48 130 0 114 1 0 1 1 0 8 0 ucredpl 104 9809 0 9795 1 0 1 1 0 8 0 zombiepl 144 8923 0 8922 1 0 1 1 0 8 0 processpl 1008 8981 0 8922 10 1 9 9 0 8 0 procpl 696 21086 0 21014 16 7 9 10 0 8 0 sosppl 168 117 0 117 16 16 0 1 0 8 0 sockpl 456 22607 0 22584 530 519 11 37 0 8 8 mcl64k 65536 235 0 235 18 18 0 1 0 8 0 mcl16k 16384 122 0 122 19 19 0 1 0 8 0 mcl12k 12288 280 0 280 19 19 0 1 0 8 0 mcl9k 9216 110 0 110 18 18 0 1 0 8 0 mcl8k 8192 457 0 457 16 16 0 1 0 8 0 mcl4k 4096 1106 0 1106 11 11 0 1 0 8 0 mcl2k2 2112 64 0 64 25 25 0 1 0 8 0 mcl2k 2048 103265 0 103194 71 60 11 34 0 8 1 mtagpl 96 7918 0 7683 49 34 15 29 0 8 0 mbufpl 256 279523 0 279056 564 507 57 133 0 8 0 bufpl 288 18162 0 11768 458 0 458 458 0 8 0 anonpl 24 1701886 0 1675407 284 121 163 170 0 188 3 amapchunkpl 152 155789 0 154422 119 66 53 56 0 158 0 amappl16 200 16357 0 15762 107 74 33 45 0 8 0 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 385 0 369 2 0 2 2 0 8 0 amappl13 176 13 0 11 1 0 1 1 0 8 0 amappl12 168 1141 0 1140 1 0 1 1 0 8 0 amappl11 160 51 0 41 1 0 1 1 0 8 0 amappl10 152 97 0 88 1 0 1 1 0 8 0 amappl9 144 995 0 994 1 0 1 1 0 8 0 amappl8 136 326 0 260 3 0 3 3 0 8 0 amappl7 128 277 0 252 2 0 2 2 0 8 0 amappl6 120 450 0 440 2 1 1 2 0 8 0 amappl5 112 458 0 452 1 0 1 1 0 8 0 amappl4 104 1251 0 1221 2 1 1 2 0 8 0 amappl3 96 24257 0 24213 2 0 2 2 0 8 0 amappl2 88 9904 0 9837 3 1 2 3 0 8 0 amappl1 80 206302 0 205577 35 17 18 26 0 8 0 amappl 88 53615 0 53461 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 149 0 19 3 0 3 3 0 8 0 uaddrrnd 24 9046 0 9025 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 9046 0 9025 1 0 1 1 0 8 0 vmmpekpl 168 70150 0 70097 4 1 3 3 0 8 0 vmmpepl 168 851124 0 848611 335 193 142 163 0 357 3 vmsppl 344 9045 0 9024 3 0 3 3 0 8 0 rwobjpl 24 217132 0 209349 52 3 49 49 0 8 0 pdppl 4096 18098 0 18048 621 560 61 66 0 8 11 pvpl 32 3448185 0 3427319 622 329 293 361 0 265 78 pmappl 216 9045 0 9024 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2271 0 1469 26 0 26 26 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff8275cfb6,1f4,ffffffff82774c92) at __assert+0x25 sys/kern/subr_prf.c:157 timeout_bucket(fffffd8077683f08) at timeout_bucket+0x1e4 sys/kern/kern_timeout.c:503 softclock_process_kclock_timeout(fffffd8077683f08,0) at softclock_process_kclock_timeout+0xe5 sys/kern/kern_timeout.c:656 softclock(0) at softclock+0x11a sys/kern/kern_timeout.c:717 softintr_dispatch(0) at softintr_dispatch+0xd1 sys/arch/amd64/amd64/softintr.c:90 Xsoftclock() at Xsoftclock+0x1f Xspllower() at Xspllower+0x19 printf(ffffffff827048df) at printf+0x84 sys/kern/subr_prf.c:532 uvm_fault_unwire_locked(fffffd807e691568,e0fceb75000,e0fced74000) at uvm_fault_unwire_locked+0x20c sys/uvm/uvm_fault.c:1679 uvm_unmap_kill_entry_withlock(fffffd807e691568,fffffd8069b66d90,0) at uvm_unmap_kill_entry_withlock+0x62 sys/uvm/uvm_map.c:1924 uvm_map_teardown(fffffd807e691568) at uvm_map_teardown+0x157 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd807e691568) at uvm_map_teardown+0x157 sys/uvm/uvm_map.c:2578 uvmspace_free(fffffd807e691568) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3516 reaper(ffff8000ffff8ae8) at reaper+0x15d sys/kern/kern_exit.c:448 end trace frame: 0x0, count: -15 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82722f34) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff827a0c78,ffffffff8275cfb6,1f4,ffffffff82774c92) at __assert+0x25 sys/kern/subr_prf.c:157 timeout_bucket(fffffd8077683f08) at timeout_bucket+0x1e4 sys/kern/kern_timeout.c:503 softclock_process_kclock_timeout(fffffd8077683f08,0) at softclock_process_kclock_timeout+0xe5 sys/kern/kern_timeout.c:656 softclock(0) at softclock+0x11a sys/kern/kern_timeout.c:717 softintr_dispatch(0) at softintr_dispatch+0xd1 sys/arch/amd64/amd64/softintr.c:90 Xsoftclock() at Xsoftclock+0x1f Xspllower() at Xspllower+0x19 printf(ffffffff827048df) at printf+0x84 sys/kern/subr_prf.c:532 uvm_fault_unwire_locked(fffffd807e691568,e0fceb75000,e0fced74000) at uvm_fault_unwire_locked+0x20c sys/uvm/uvm_fault.c:1679 uvm_unmap_kill_entry_withlock(fffffd807e691568,fffffd8069b66d90,0) at uvm_unmap_kill_entry_withlock+0x62 sys/uvm/uvm_map.c:1924 uvm_map_teardown(fffffd807e691568) at uvm_map_teardown+0x157 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd807e691568) at uvm_map_teardown+0x157 sys/uvm/uvm_map.c:2578 uvmspace_free(fffffd807e691568) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3516 reaper(ffff8000ffff8ae8) at reaper+0x15d sys/kern/kern_exit.c:448 end trace frame: 0x0, count: -15