panic: knote_enqueue:1308: kq=0xfffffd806e9fd5b0 kn=0xfffffd8074eea4d0 knote !QUEUED Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *158663 46851 32767 0x10 0x4000000 0K syz-executor.0 241729 151 32767 0x10 0x480 1 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8220cca4) at panic+0x15c sys/kern/subr_prf.c:207 kqueue_do_check(fffffd806e9fd5b0,ffffffff82250c08,51c) at kqueue_do_check+0x232 sys/kern/kern_event.c:622 knote_enqueue(fffffd8074eea4d0) at knote_enqueue+0x80 sys/kern/kern_event.c:1309 filt_timerexpire(fffffd8074eea4d0) at filt_timerexpire+0x5f sys/kern/kern_event.c:373 timeout_run(ffff800000a0c040) at timeout_run+0xc4 timeout_sync_leave sys/kern/kern_timeout.c:183 [inline] timeout_run(ffff800000a0c040) at timeout_run+0xc4 sys/kern/kern_timeout.c:489 softclock(0) at softclock+0x175 sys/kern/kern_timeout.c:532 softintr_dispatch(0) at softintr_dispatch+0x107 sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff82629988) at __mp_lock+0xe6 sys/kern/kern_lock.c:147 pageflttrap(ffff800020b4bb60,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020b4bb60) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b copyout() at copyout+0x53 end trace frame: 0xffff800020b4bea0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic knote_enqueue:1308: kq=0xfffffd806e9fd5b0 kn=0xfffffd8074eea4d0 knote !QUEUED ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8220cca4) at panic+0x15c sys/kern/subr_prf.c:207 kqueue_do_check(fffffd806e9fd5b0,ffffffff82250c08,51c) at kqueue_do_check+0x232 sys/kern/kern_event.c:622 knote_enqueue(fffffd8074eea4d0) at knote_enqueue+0x80 sys/kern/kern_event.c:1309 filt_timerexpire(fffffd8074eea4d0) at filt_timerexpire+0x5f sys/kern/kern_event.c:373 timeout_run(ffff800000a0c040) at timeout_run+0xc4 timeout_sync_leave sys/kern/kern_timeout.c:183 [inline] timeout_run(ffff800000a0c040) at timeout_run+0xc4 sys/kern/kern_timeout.c:489 softclock(0) at softclock+0x175 sys/kern/kern_timeout.c:532 softintr_dispatch(0) at softintr_dispatch+0x107 sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff82629988) at __mp_lock+0xe6 sys/kern/kern_lock.c:147 pageflttrap(ffff800020b4bb60,0) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 kerntrap(ffff800020b4bb60) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b copyout() at copyout+0x53 syscall(ffff800020b4beb0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020b4beb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfd6f95681c0, count: -16 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b4b6b0 rbx 0xffff800020b4b760 rdx 0xffffffff824ccff0 cpu_info_full_primary+0x1ff0 rcx 0xffffffff824ccff0 cpu_info_full_primary+0x1ff0 rax 0xffffffff824ccff0 cpu_info_full_primary+0x1ff0 r8 0xffffffff818bdcbf kprintf+0x16f r9 0x1 r10 0x25 r11 0x209aaf4772e3a069 r12 0x3000000008 r13 0xffff800020b4b6c0 r14 0x100 r15 0x1 rip 0xffffffff8184de68 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b4b6a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=158663 stat=onproc flags process=10 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020aa8018,0xffff800020aa8298 process=0xffff800020ac2f20 user=0xffff800020b46000, vmspace=0xfffffd807efff5c0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 97343 186717 96794 32767 2 0x10 syz-executor.1 46851 308107 151 32767 2 0x10 syz-executor.0 46851 356046 151 32767 3 0x4000090 fsleep syz-executor.0 *46851 158663 151 32767 7 0x4000010 syz-executor.0 96794 319356 48560 32767 2 0x490 syz-executor.1 48560 204148 99206 0 3 0x82 wait syz-executor.1 151 241729 3053 32767 7 0x490 syz-executor.0 3053 76043 99206 0 3 0x82 wait syz-executor.0 59132 24287 0 0 3 0x14200 bored sosplice 99206 279359 22056 0 2 0x482 syz-fuzzer 99206 126112 22056 0 2 0x4000482 syz-fuzzer 99206 320850 22056 0 3 0x4000082 thrsleep syz-fuzzer 99206 272466 22056 0 3 0x4000082 thrsleep syz-fuzzer 99206 118764 22056 0 3 0x4000082 thrsleep syz-fuzzer 99206 161286 22056 0 3 0x4000082 thrsleep syz-fuzzer 99206 329982 22056 0 3 0x4000082 thrsleep syz-fuzzer 99206 302795 22056 0 3 0x4000082 thrsleep syz-fuzzer 99206 102425 22056 0 3 0x4000082 thrsleep syz-fuzzer 99206 203138 22056 0 3 0x4000082 kqread syz-fuzzer 99206 199819 22056 0 3 0x4000082 thrsleep syz-fuzzer 22056 17767 31586 0 3 0x10008a pause ksh 31586 400695 4222 0 3 0x92 select sshd 18866 466281 1 0 3 0x100083 ttyin getty 4222 353040 1 0 3 0x80 select sshd 80041 465376 95849 73 3 0x100090 kqread syslogd 95849 439319 1 0 3 0x100082 netio syslogd 66751 280972 1 77 3 0x100090 poll dhclient 94184 81095 1 0 3 0x80 poll dhclient 18221 166792 0 0 3 0x14200 pgzero zerothread 87854 253266 0 0 3 0x14200 aiodoned aiodoned 15368 442306 0 0 3 0x14200 syncer update 23506 217038 0 0 3 0x14200 cleaner cleaner 98787 127053 0 0 3 0x14200 reaper reaper 92849 311186 0 0 3 0x14200 pgdaemon pagedaemon 83415 172401 0 0 3 0x14200 bored crynlk 92113 516175 0 0 3 0x14200 bored crypto 98153 237011 0 0 3 0x40014200 acpi0 acpi0 44034 267773 0 0 3 0x40014200 idle1 54918 425403 0 0 3 0x14200 bored softnet 37921 241234 0 0 3 0x14200 bored systqmp 25050 112906 0 0 3 0x14200 bored systq 47774 172619 0 0 3 0x40014200 bored softclock 88648 180841 0 0 3 0x40014200 idle0 60235 212582 0 0 3 0x14200 bored smr 1 183854 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: shared mutex timeout r = 0 (0xffffffff824a8ed0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 timeout_run+0xb9 sys/kern/kern_timeout.c:488 #2 softclock+0x175 sys/kern/kern_timeout.c:532 #3 softintr_dispatch+0x107 sys/arch/amd64/amd64/softintr.c:89 #4 Xsoftclock+0x1f #5 __mp_lock+0xe6 sys/kern/kern_lock.c:147 #6 pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 #7 kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 #8 alltraps_kern_meltdown+0x7b #9 copyout+0x53 #10 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #10 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #11 Xsyscall+0x128 Process 46851 (syz-executor.0) thread 0xffff800020aa9608 (158663) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82629b90) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:570 #2 Xsyscall+0x128 shared mutex timeout r = 0 (0xffffffff824a8ed0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 timeout_run+0xb9 sys/kern/kern_timeout.c:488 #2 softclock+0x175 sys/kern/kern_timeout.c:532 #3 softintr_dispatch+0x107 sys/arch/amd64/amd64/softintr.c:89 #4 Xsoftclock+0x1f #5 __mp_lock+0xe6 sys/kern/kern_lock.c:147 #6 pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 #7 kerntrap+0xec sys/arch/amd64/amd64/trap.c:302 #8 alltraps_kern_meltdown+0x7b #9 copyout+0x53 #10 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #10 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #11 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9483 6334K 6334K 78643K 11047 0 pcb 13 10K 12K 78643K 15 0 rtable 105 3K 4K 78643K 4970 0 ifaddr 39 11K 11K 78643K 885 0 counters 43 33K 33K 78643K 279 0 ioctlops 0 0K 2K 78643K 259 0 iov 0 0K 36K 78643K 1088 0 mount 1 1K 1K 78643K 1 0 vnodes 1215 76K 76K 78643K 4072 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 76 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 2349 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 8 25K 33K 78643K 6430 0 sigio 0 0K 0K 78643K 193 0 proc 48 50K 83K 78643K 6113 0 subproc 34 2K 2K 78643K 2040 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 1K 78643K 1576 0 in_multi 33 2K 2K 78643K 1514 0 ether_multi 1 0K 0K 78643K 14 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 139 625K 625K 78643K 139 0 exec 0 0K 1K 78643K 2444 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 198 27K 42K 78643K 24881 0 UVM aobj 130 6K 6K 78643K 133 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 607 0 NDP 7 0K 0K 78643K 363 0 temp 102 3021K 3086K 78643K 28107 0 kqueue 7 5K 23K 78643K 748 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 249 0 243 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1198 0 1196 1 0 1 1 0 8 0 rtentry 112 1271 0 1227 2 0 2 2 0 8 0 unpcb 120 7107 0 7087 28 26 2 3 0 8 1 syncache 264 95 0 95 24 24 0 1 0 8 0 sackhl 24 5 0 5 3 3 0 1 0 8 0 tcpqe 32 61 0 61 17 17 0 1 0 8 0 tcpcb 544 10975 0 10969 78 75 3 12 0 8 1 ipq 40 72 0 72 24 23 1 1 0 8 1 ipqe 40 1898 0 1898 24 23 1 1 0 8 1 inpcb 280 16444 0 16435 72 69 3 9 0 8 1 ip6q 72 12 0 12 7 6 1 1 0 8 1 ip6af 40 20 0 20 6 5 1 1 0 8 1 nd6 48 279 0 275 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 5588 0 5373 23 9 14 15 0 8 0 art_table 32 5589 0 5373 2 0 2 2 0 8 0 art_node 16 1270 0 1230 1 0 1 1 0 8 0 sysvmsgpl 40 52 0 40 1 0 1 1 0 8 0 semapl 112 2347 0 2337 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 8708 0 7290 46 0 46 46 0 8 0 ffsino 272 8708 0 7290 97 2 95 95 0 8 0 nchpl 144 17543 0 15940 60 0 60 60 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 79856 0 79856 1 0 1 1 0 8 1 percpumem 16 150 0 118 1 0 1 1 0 8 0 scxspl 192 55248 0 55248 50 47 3 7 0 8 3 plimitpl 152 1156 0 1147 1 0 1 1 0 8 0 sigapl 432 6247 0 6231 11 9 2 3 0 8 0 futexpl 56 143569 0 143568 2 1 1 1 0 8 0 knotepl 112 2481 0 2460 3 2 1 2 0 8 0 kqueuepl 104 4570 0 4566 25 24 1 4 0 8 0 pipelkpl 48 2733 0 2723 1 0 1 1 0 8 0 pipepl 120 5466 0 5447 26 25 1 3 0 8 0 fdescpl 496 6248 0 6231 3 0 3 3 0 8 0 filepl 152 68160 0 68056 114 106 8 14 0 8 4 lockfpl 104 2163 0 2162 1 0 1 1 0 8 0 lockfspl 48 727 0 726 1 0 1 1 0 8 0 sessionpl 112 135 0 125 1 0 1 1 0 8 0 pgrppl 48 257 0 247 1 0 1 1 0 8 0 ucredpl 96 12097 0 12088 1 0 1 1 0 8 0 zombiepl 144 6231 0 6231 1 0 1 1 0 8 1 processpl 960 6264 0 6231 5 0 5 5 0 8 0 procpl 624 18298 0 18253 24 20 4 5 0 8 0 sosppl 128 185 0 185 27 27 0 1 0 8 0 sockpl 400 25006 0 24974 140 131 9 15 0 8 4 mcl64k 65536 45 0 0 4 1 3 3 0 8 0 mcl16k 16384 43 0 0 5 3 2 3 0 8 0 mcl12k 12288 36 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 35 0 0 4 1 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 187 0 0 16 5 11 16 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 724 0 0 27 0 27 27 0 8 0 bufpl 280 20644 0 14354 450 0 450 450 0 8 0 anonpl 16 912370 0 900915 213 149 64 85 0 125 5 amapchunkpl 152 62686 0 62548 189 178 11 20 0 158 4 amappl16 192 33239 0 32477 266 223 43 61 0 8 3 amappl15 184 1381 0 1377 1 0 1 1 0 8 0 amappl14 176 1761 0 1754 1 0 1 1 0 8 0 amappl13 168 627 0 626 9 8 1 1 0 8 0 amappl12 160 742 0 742 15 15 0 1 0 8 0 amappl11 152 1127 0 1116 1 0 1 1 0 8 0 amappl10 144 447 0 442 1 0 1 1 0 8 0 amappl9 136 2778 0 2773 1 0 1 1 0 8 0 amappl8 128 1884 0 1772 5 1 4 4 0 8 0 amappl7 120 1206 0 1189 1 0 1 1 0 8 0 amappl6 112 825 0 802 1 0 1 1 0 8 0 amappl5 104 1880 0 1871 1 0 1 1 0 8 0 amappl4 96 6244 0 6208 1 0 1 1 0 8 0 amappl3 88 1838 0 1831 1 0 1 1 0 8 0 amappl2 80 41029 0 40949 3 1 2 3 0 8 0 amappl1 72 179651 0 179199 25 15 10 20 0 8 0 amappl 80 20623 0 20577 2 0 2 2 0 84 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 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 64 132 0 3 3 0 3 3 0 8 0 uaddrrnd 24 6248 0 6231 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6248 0 6231 1 0 1 1 0 8 0 vmmpekpl 168 61355 0 61321 4 1 3 3 0 8 0 vmmpepl 168 875269 0 873072 328 200 128 156 0 357 21 vmsppl 368 6247 0 6231 2 0 2 2 0 8 0 pdppl 4096 12503 0 12462 6 0 6 6 0 8 0 pvpl 32 2288626 0 2273363 439 280 159 210 0 265 15 pmappl 232 6247 0 6231 18 17 1 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 436 0 249 6 0 6 6 0 8 0