panic: knote_enqueue:1283: kq=0xfffffd806e8af958 kn=0xfffffd806ec18460 knote !QUEUED Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *202954 83679 32767 0x10 0x4000000 0K syz-executor.1 345327 14524 32767 0x10 0x480 1 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8220b79d) at panic+0x15c sys/kern/subr_prf.c:207 kqueue_do_check(fffffd806e8af958,ffffffff8224f39d,503) at kqueue_do_check+0x232 sys/kern/kern_event.c:597 knote_enqueue(fffffd806ec18460) at knote_enqueue+0x80 sys/kern/kern_event.c:1284 kqueue_register(fffffd806e8af958,ffff800024d912a0,ffff800020ac8508) at kqueue_register+0x820 sys/kern/kern_event.c:770 sys_kevent(ffff800020ac8508,ffff800024d913c8,ffff800024d91410) at sys_kevent+0x2b6 sys/kern/kern_event.c:553 syscall(ffff800024d91490) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024d91490) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x936322b0620, count: 7 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:1283: kq=0xfffffd806e8af958 kn=0xfffffd806ec18460 knote !QUEUED ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8220b79d) at panic+0x15c sys/kern/subr_prf.c:207 kqueue_do_check(fffffd806e8af958,ffffffff8224f39d,503) at kqueue_do_check+0x232 sys/kern/kern_event.c:597 knote_enqueue(fffffd806ec18460) at knote_enqueue+0x80 sys/kern/kern_event.c:1284 kqueue_register(fffffd806e8af958,ffff800024d912a0,ffff800020ac8508) at kqueue_register+0x820 sys/kern/kern_event.c:770 sys_kevent(ffff800020ac8508,ffff800024d913c8,ffff800024d91410) at sys_kevent+0x2b6 sys/kern/kern_event.c:553 syscall(ffff800024d91490) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024d91490) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x936322b0620, count: -8 ddb{0}> show registers rdi 0xffffffff81d98097 db_enter+0x17 rsi 0x274a __ALIGN_SIZE+0x174a rbp 0xffff800024d90fc0 rbx 0xffff800024d91070 rdx 0x274b __ALIGN_SIZE+0x174b rcx 0xffff800020d50000 rax 0xffff800020d50000 r8 0xffffffff816e01bf kprintf+0x16f r9 0x1 r10 0x25 r11 0x1d906014590a8f93 r12 0x3000000008 r13 0xffff800024d90fd0 r14 0x100 r15 0x1 rip 0xffffffff81d98098 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024d90fb0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=202954 stat=onproc flags process=10 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac9b40,0xffffffff8264b5c0 process=0xffff800020aa3190 user=0xffff800024d8c000, vmspace=0xfffffd807f0005c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 83679 422393 43367 32767 2 0x10 syz-executor.1 *83679 202954 43367 32767 7 0x4000010 syz-executor.1 43367 363522 16377 32767 3 0x90 nanosleep syz-executor.1 16377 510060 10780 0 3 0x82 wait syz-executor.1 14524 345327 29695 32767 7 0x490 syz-executor.0 29695 379490 10780 0 3 0x82 wait syz-executor.0 73113 483736 0 0 3 0x14200 bored sosplice 10780 493320 87693 0 3 0x82 thrsleep syz-fuzzer 10780 156571 87693 0 2 0x4000482 syz-fuzzer 10780 119364 87693 0 3 0x4000082 thrsleep syz-fuzzer 10780 77466 87693 0 3 0x4000082 thrsleep syz-fuzzer 10780 448144 87693 0 3 0x4000082 thrsleep syz-fuzzer 10780 517587 87693 0 3 0x4000082 kqread syz-fuzzer 10780 382490 87693 0 3 0x4000082 thrsleep syz-fuzzer 10780 89238 87693 0 3 0x4000082 thrsleep syz-fuzzer 10780 498858 87693 0 3 0x4000082 thrsleep syz-fuzzer 10780 207232 87693 0 3 0x4000082 thrsleep syz-fuzzer 87693 154833 26607 0 3 0x10008a pause ksh 26607 43279 44810 0 3 0x92 select sshd 44169 177711 1 0 3 0x100083 ttyin getty 44810 164065 1 0 3 0x80 select sshd 46500 383899 71543 73 3 0x100090 kqread syslogd 71543 179290 1 0 3 0x100082 netio syslogd 64187 171565 1 77 3 0x100090 poll dhclient 10103 346609 1 0 3 0x80 poll dhclient 44067 271536 0 0 3 0x14200 pgzero zerothread 79007 154070 0 0 3 0x14200 aiodoned aiodoned 11489 178162 0 0 3 0x14200 syncer update 76827 245277 0 0 3 0x14200 cleaner cleaner 48455 108893 0 0 3 0x14200 reaper reaper 45549 101601 0 0 3 0x14200 pgdaemon pagedaemon 31305 168764 0 0 3 0x14200 bored crynlk 42042 317575 0 0 3 0x14200 bored crypto 9338 497154 0 0 3 0x40014200 acpi0 acpi0 45783 449843 0 0 3 0x40014200 idle1 69944 349892 0 0 3 0x14200 bored softnet 10700 102076 0 0 3 0x14200 bored systqmp 80462 359912 0 0 3 0x14200 bored systq 576 122499 0 0 2 0x40014200 softclock 10 399165 0 0 3 0x40014200 idle0 32962 520560 0 0 3 0x14200 bored smr 1 20062 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 83679 (syz-executor.1) thread 0xffff800020ac8508 (202954) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82636c50) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:570 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9484 6334K 6334K 78643K 12324 0 pcb 13 10K 12K 78643K 15 0 rtable 109 3K 4K 78643K 18910 0 ifaddr 39 17K 21K 78643K 3155 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 2K 78643K 964 0 iov 0 0K 36K 78643K 3703 0 mount 1 1K 1K 78643K 1 0 vnodes 1215 76K 76K 78643K 11199 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 307 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 6174 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 7 21K 33K 78643K 21929 0 sigio 0 0K 0K 78643K 621 0 proc 48 50K 83K 78643K 21356 0 subproc 34 2K 2K 78643K 7463 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 6551 0 in_multi 33 2K 2K 78643K 5630 0 ether_multi 1 0K 0K 78643K 98 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 145 652K 652K 78643K 145 0 exec 0 0K 1K 78643K 8171 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 263 30K 46K 78643K 80689 0 UVM aobj 130 4K 4K 78643K 145 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1875 0 NDP 5 0K 0K 78643K 1320 0 temp 102 3021K 3089K 78643K 96217 0 kqueue 7 5K 42K 78643K 7839 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 945 0 939 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 3339 0 3337 1 0 1 1 0 8 0 rtentry 112 4484 0 4438 2 0 2 2 0 8 0 unpcb 120 20566 0 20526 68 66 2 4 0 8 0 syncache 264 316 0 316 72 72 0 1 0 8 0 sackhl 24 13 0 13 12 12 0 1 0 8 0 tcpqe 32 201 0 201 64 64 0 1 0 8 0 tcpcb 544 33681 0 33675 247 245 2 15 0 8 1 ipq 40 210 0 210 83 83 0 1 0 8 0 ipqe 40 6059 0 6059 83 83 0 1 0 8 0 inpcb 280 51367 0 51357 194 191 3 10 0 8 2 ip6q 72 12 0 12 9 9 0 1 0 8 0 ip6af 40 27 0 27 9 9 0 1 0 8 0 nd6 48 880 0 876 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 19578 0 19333 16 0 16 16 0 8 0 art_table 32 19579 0 19333 9 7 2 3 0 8 0 art_node 16 4483 0 4441 1 0 1 1 0 8 0 sysvmsgpl 40 56 0 24 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 6172 0 6162 1 0 1 1 0 8 0 shmpl 112 143 0 15 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 23954 0 22515 50 3 47 47 0 8 0 ffsino 272 23954 0 22515 107 10 97 97 0 8 0 nchpl 144 51386 0 49784 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 237679 0 237679 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 163681 0 163681 154 151 3 7 0 8 3 plimitpl 152 4105 0 4096 1 0 1 1 0 8 0 sigapl 432 20789 0 20774 21 19 2 3 0 8 0 futexpl 56 399860 0 399860 3 2 1 1 0 8 1 knotepl 112 16823 0 16800 36 35 1 3 0 8 0 kqueuepl 104 18393 0 18390 71 70 1 4 0 8 0 pipelkpl 48 7495 0 7485 1 0 1 1 0 8 0 pipepl 120 14990 0 14971 59 58 1 4 0 8 0 fdescpl 496 20790 0 20774 4 1 3 3 0 8 0 filepl 152 207689 0 207590 306 300 6 14 0 8 2 lockfpl 104 7990 0 7989 1 0 1 1 0 8 0 lockfspl 48 1946 0 1945 1 0 1 1 0 8 0 sessionpl 112 454 0 444 1 0 1 1 0 8 0 pgrppl 48 647 0 637 1 0 1 1 0 8 0 ucredpl 96 37381 0 37372 1 0 1 1 0 8 0 zombiepl 144 20774 0 20773 1 0 1 1 0 8 0 processpl 896 20806 0 20773 4 0 4 4 0 8 0 procpl 632 59627 0 59584 18 13 5 5 0 8 1 srpgc 64 874 0 874 57 56 1 1 0 8 1 sosppl 128 500 0 500 76 76 0 1 0 8 0 sockpl 384 75783 0 75733 361 352 9 18 0 8 2 mcl64k 65536 84 0 0 3 0 3 3 0 8 0 mcl16k 16384 107 0 0 9 6 3 3 0 8 0 mcl12k 12288 74 0 0 3 1 2 2 0 8 0 mcl9k 9216 65 0 0 3 1 2 2 0 8 0 mcl8k 8192 65 0 0 4 1 3 3 0 8 0 mcl4k 4096 42 0 0 3 1 2 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 227 0 0 16 8 8 16 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 1976 0 0 29 0 29 29 0 8 0 bufpl 280 82175 0 75109 506 0 506 506 0 8 0 anonpl 16 2847181 0 2836603 473 416 57 80 0 125 0 amapchunkpl 152 230875 0 230751 645 634 11 20 0 158 5 amappl16 192 109305 0 108692 769 728 41 56 0 8 8 amappl15 184 3242 0 3235 1 0 1 1 0 8 0 amappl14 176 6505 0 6501 1 0 1 1 0 8 0 amappl13 168 2871 0 2870 1 0 1 1 0 8 0 amappl12 160 1527 0 1524 1 0 1 1 0 8 0 amappl11 152 4144 0 4133 1 0 1 1 0 8 0 amappl10 144 1676 0 1670 1 0 1 1 0 8 0 amappl9 136 8467 0 8464 1 0 1 1 0 8 0 amappl8 128 6182 0 5993 8 1 7 7 0 8 0 amappl7 120 4356 0 4339 1 0 1 1 0 8 0 amappl6 112 2951 0 2934 1 0 1 1 0 8 0 amappl5 104 5197 0 5185 1 0 1 1 0 8 0 amappl4 96 21675 0 21631 7 5 2 2 0 8 0 amappl3 88 4962 0 4953 1 0 1 1 0 8 0 amappl2 80 134284 0 134197 6 4 2 3 0 8 0 amappl1 72 584858 0 584415 66 57 9 20 0 8 0 amappl 80 67608 0 67566 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 144 0 15 3 0 3 3 0 8 0 uaddrrnd 24 20790 0 20774 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 20790 0 20774 1 0 1 1 0 8 0 vmmpekpl 168 191499 0 191470 2 0 2 2 0 8 0 vmmpepl 168 2886962 0 2884906 579 461 118 133 0 357 14 vmsppl 368 20789 0 20774 2 0 2 2 0 8 0 pdppl 4096 41587 0 41548 7 1 6 6 0 8 1 pvpl 32 7445905 0 7432011 1028 882 146 193 0 265 7 pmappl 232 20789 0 20774 53 52 1 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 451 0 275 6 0 6 6 0 8 0