panic: knote_enqueue:1330: kq=0xfffffd806ea88b40 kn=0xfffffd806eec5700 knote !QUEUED Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 234167 64717 32767 0x10 0 1 syz-executor.1 *135713 64717 32767 0x10 0x4000000 0K syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff822265ff) at panic+0x15c sys/kern/subr_prf.c:207 kqueue_do_check(fffffd806ea88b40,ffffffff8226a6bd,532) at kqueue_do_check+0x232 sys/kern/kern_event.c:624 knote_enqueue(fffffd806eec5700) at knote_enqueue+0x80 sys/kern/kern_event.c:1331 kqueue_register(fffffd806ea88b40,ffff800021f59c50,ffff800020a9d878) at kqueue_register+0x820 sys/kern/kern_event.c:797 sys_kevent(ffff800020a9d878,ffff800021f59df8,ffff800021f59e40) at sys_kevent+0x2b6 sys/kern/kern_event.c:580 syscall(ffff800021f59ec0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f59ec0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6c91b9a950, 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:1330: kq=0xfffffd806ea88b40 kn=0xfffffd806eec5700 knote !QUEUED ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff822265ff) at panic+0x15c sys/kern/subr_prf.c:207 kqueue_do_check(fffffd806ea88b40,ffffffff8226a6bd,532) at kqueue_do_check+0x232 sys/kern/kern_event.c:624 knote_enqueue(fffffd806eec5700) at knote_enqueue+0x80 sys/kern/kern_event.c:1331 kqueue_register(fffffd806ea88b40,ffff800021f59c50,ffff800020a9d878) at kqueue_register+0x820 sys/kern/kern_event.c:797 sys_kevent(ffff800020a9d878,ffff800021f59df8,ffff800021f59e40) at sys_kevent+0x2b6 sys/kern/kern_event.c:580 syscall(ffff800021f59ec0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f59ec0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6c91b9a950, count: -8 ddb{0}> show registers rdi 0xffffffff81101757 db_enter+0x17 rsi 0x200d __ALIGN_SIZE+0x100d rbp 0xffff800021f599f0 rbx 0xffff800021f59aa0 rdx 0x200e __ALIGN_SIZE+0x100e rcx 0xffff800022fa6000 rax 0xffff800022fa6000 r8 0xffffffff81f163cf kprintf+0x16f r9 0x1 r10 0x25 r11 0xfce5088e7ed6915b r12 0x3000000008 r13 0xffff800021f59a00 r14 0x100 r15 0x1 rip 0xffffffff81101758 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021f599e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=135713 stat=onproc flags process=10 proc=4000000 pri=75, usrpri=75, nice=20 forw=0xffffffffffffffff, list=0xffff800020a9c288,0xffffffff8266a500 process=0xffff800020ad6f20 user=0xffff800021f54000, vmspace=0xfffffd807f0008a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 64717 234167 13877 32767 7 0x10 syz-executor.1 64717 65490 13877 32767 3 0x4000090 fsleep syz-executor.1 *64717 135713 13877 32767 7 0x4000010 syz-executor.1 77317 45328 63087 32767 2 0x490 syz-executor.0 63087 140405 86246 0 3 0x82 wait syz-executor.0 13877 246926 91949 32767 3 0x90 nanosleep syz-executor.1 91949 355214 86246 0 3 0x82 wait syz-executor.1 19649 515526 0 0 3 0x14200 bored sosplice 86246 333811 83849 0 3 0x82 thrsleep syz-fuzzer 86246 131827 83849 0 3 0x4000082 nanosleep syz-fuzzer 86246 431965 83849 0 3 0x4000082 thrsleep syz-fuzzer 86246 239779 83849 0 3 0x4000082 thrsleep syz-fuzzer 86246 441613 83849 0 3 0x4000082 thrsleep syz-fuzzer 86246 169552 83849 0 3 0x4000082 thrsleep syz-fuzzer 86246 209781 83849 0 3 0x4000082 thrsleep syz-fuzzer 86246 276520 83849 0 3 0x4000082 thrsleep syz-fuzzer 86246 392222 83849 0 3 0x4000082 kqread syz-fuzzer 86246 84715 83849 0 3 0x4000082 nanosleep syz-fuzzer 83849 398317 4066 0 3 0x10008a pause ksh 4066 443524 42135 0 3 0x92 select sshd 53758 369329 1 0 3 0x100083 ttyin getty 42135 231083 1 0 3 0x80 select sshd 78599 207439 10991 73 3 0x100090 kqread syslogd 10991 147275 1 0 3 0x100082 netio syslogd 54938 451998 1 77 3 0x100090 poll dhclient 706 148606 1 0 3 0x80 poll dhclient 12229 289160 0 0 2 0x14200 zerothread 49041 233404 0 0 3 0x14200 aiodoned aiodoned 45260 57570 0 0 3 0x14200 syncer update 82571 417055 0 0 3 0x14200 cleaner cleaner 67706 136474 0 0 3 0x14200 reaper reaper 63777 194703 0 0 3 0x14200 pgdaemon pagedaemon 83906 306270 0 0 3 0x14200 bored crynlk 65368 158312 0 0 3 0x14200 bored crypto 97111 204575 0 0 3 0x40014200 acpi0 acpi0 32061 74537 0 0 3 0x40014200 idle1 41142 391941 0 0 3 0x14200 bored softnet 7994 241265 0 0 3 0x14200 bored systqmp 67109 15484 0 0 3 0x14200 bored systq 91246 214690 0 0 3 0x40014200 bored softclock 35096 60920 0 0 3 0x40014200 idle0 57628 464782 0 0 3 0x14200 bored smr 1 220840 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 64717 (syz-executor.1) thread 0xffff800020a9d878 (135713) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82669528) #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 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9485 6334K 6334K 78643K 11033 0 pcb 13 10K 12K 78643K 15 0 rtable 105 3K 4K 78643K 5225 0 ifaddr 39 11K 12K 78643K 856 0 counters 43 33K 33K 78643K 271 0 ioctlops 0 0K 2K 78643K 278 0 iov 0 0K 32K 78643K 1004 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 77K 77K 78643K 4297 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 51 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 3761 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 7 21K 33K 78643K 5751 0 sigio 0 0K 0K 78643K 203 0 proc 48 50K 83K 78643K 5863 0 subproc 34 2K 2K 78643K 1972 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 1K 78643K 1955 0 in_multi 33 2K 2K 78643K 1484 0 ether_multi 1 0K 0K 78643K 20 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 151 678K 678K 78643K 151 0 exec 0 0K 1K 78643K 2292 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 185 26K 41K 78643K 22535 0 UVM aobj 130 8K 8K 78643K 130 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 390 0 NDP 5 0K 0K 78643K 351 0 temp 102 3033K 3129K 78643K 26220 0 kqueue 9 6K 55K 78643K 5905 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 246 0 240 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1113 0 1111 1 0 1 1 0 8 0 rtentry 112 1346 0 1302 2 0 2 2 0 8 0 unpcb 120 13717 0 13694 23 21 2 4 0 8 0 syncache 264 127 0 127 20 19 1 1 0 8 1 sackhl 24 5 0 5 4 4 0 1 0 8 0 tcpqe 32 522 0 522 13 12 1 1 0 8 1 tcpcb 544 5106 0 5096 61 59 2 13 0 8 0 ipq 40 59 0 59 19 18 1 1 0 8 1 ipqe 40 1387 0 1387 19 18 1 1 0 8 1 inpcb 280 10681 0 10668 59 56 3 9 0 8 1 ip6q 72 3 0 3 3 3 0 1 0 8 0 ip6af 40 7 0 7 3 3 0 1 0 8 0 nd6 48 383 0 377 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 5465 0 5274 23 11 12 14 0 8 0 art_table 32 5466 0 5274 2 0 2 2 0 8 0 art_node 16 1345 0 1305 1 0 1 1 0 8 0 sysvmsgpl 40 37 0 13 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 3759 0 3749 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7796 0 6390 46 0 46 46 0 8 0 ffsino 272 7796 0 6390 96 1 95 95 0 8 0 nchpl 144 15110 0 13508 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 74526 0 74526 1 0 1 1 0 8 1 percpumem 16 146 0 114 1 0 1 1 0 8 0 scxspl 192 48852 0 48852 42 39 3 7 0 8 3 plimitpl 152 1040 0 1031 1 0 1 1 0 8 0 sigapl 432 5580 0 5565 7 5 2 3 0 8 0 futexpl 56 147138 0 147137 1 0 1 1 0 8 0 knotepl 112 10145 0 10119 27 25 2 5 0 8 1 kqueuepl 144 7273 0 7267 22 21 1 5 0 8 0 pipelkpl 48 2562 0 2552 1 0 1 1 0 8 0 pipepl 120 5124 0 5105 20 18 2 2 0 8 1 fdescpl 496 5581 0 5565 3 0 3 3 0 8 0 filepl 152 73133 0 73032 75 68 7 14 0 8 3 lockfpl 104 1994 0 1993 1 0 1 1 0 8 0 lockfspl 48 472 0 471 1 0 1 1 0 8 0 sessionpl 112 131 0 121 1 0 1 1 0 8 0 pgrppl 48 406 0 396 1 0 1 1 0 8 0 ucredpl 96 14422 0 14413 1 0 1 1 0 8 0 zombiepl 144 5565 0 5564 1 0 1 1 0 8 0 processpl 960 5597 0 5564 5 0 5 5 0 8 0 procpl 624 16447 0 16403 21 17 4 5 0 8 0 sosppl 128 177 0 177 22 21 1 1 0 8 1 sockpl 400 25773 0 25734 125 117 8 18 0 8 3 mcl64k 65536 33 0 0 3 0 3 3 0 8 0 mcl16k 16384 33 0 0 4 1 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 26 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 25 0 0 3 1 2 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 180 0 0 20 0 20 20 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 905 0 0 34 0 34 34 0 8 0 bufpl 280 18406 0 12139 448 0 448 448 0 8 0 anonpl 16 802165 0 788642 147 77 70 88 0 124 0 amapchunkpl 152 59147 0 59010 140 129 11 20 0 158 3 amappl16 192 26423 0 25561 206 160 46 60 0 8 0 amappl15 184 488 0 485 1 0 1 1 0 8 0 amappl14 176 818 0 815 2 1 1 1 0 8 0 amappl13 168 1868 0 1864 1 0 1 1 0 8 0 amappl12 160 620 0 615 2 1 1 1 0 8 0 amappl11 152 681 0 669 1 0 1 1 0 8 0 amappl10 144 488 0 481 1 0 1 1 0 8 0 amappl9 136 1031 0 1026 1 0 1 1 0 8 0 amappl8 128 3180 0 3089 3 0 3 3 0 8 0 amappl7 120 1204 0 1189 1 0 1 1 0 8 0 amappl6 112 314 0 307 1 0 1 1 0 8 0 amappl5 104 4804 0 4794 1 0 1 1 0 8 0 amappl4 96 3518 0 3478 5 3 2 2 0 8 0 amappl3 88 1330 0 1324 1 0 1 1 0 8 0 amappl2 80 35872 0 35799 3 1 2 3 0 8 0 amappl1 72 162679 0 162235 32 22 10 20 0 8 0 amappl 80 18683 0 18639 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 5581 0 5565 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5581 0 5565 1 0 1 1 0 8 0 vmmpekpl 168 56697 0 56666 2 0 2 2 0 8 0 vmmpepl 168 795621 0 793463 245 117 128 139 0 357 20 vmsppl 368 5580 0 5565 2 0 2 2 0 8 0 pdppl 4096 11169 0 11130 6 0 6 6 0 8 1 pvpl 32 2088211 0 2071442 367 198 169 216 0 265 5 pmappl 232 5580 0 5565 16 15 1 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 408 0 209 7 1 6 7 0 8 0