uvm_fault(0xffffffff839a1640, 0xffff80003ca7dc10, 0, 1) -> e kernel: page fault trap, code=0 Stopped at mtx_enter+0x6e: movq 0(%r14),%r15 TID PID UID PRFLAGS PFLAGS CPU COMMAND mtx_enter(ffff80003ca7dc10) at mtx_enter+0x6e sys/kern/kern_lock.c:549 filt_procdetach(fffffd8069be9bd0) at filt_procdetach+0x4d sys/kern/kern_event.c:432 knote_remove(ffff80002ccf0558,fffffd806f518508,fffffd806f518580,1,1) at knote_remove+0x22e filter_detach sys/kern/kern_event.c:-1 [inline] knote_remove(ffff80002ccf0558,fffffd806f518508,fffffd806f518580,1,1) at knote_remove+0x22e sys/kern/kern_event.c:2154 kqueue_purge(ffff80002ccf0558,fffffd806f518508) at kqueue_purge+0x117 sys/kern/kern_event.c:1890 kqueue_close(fffffd806d4a22e0,ffff80002ccf0558) at kqueue_close+0x48 sys/kern/kern_event.c:1934 fdrop(fffffd806d4a22e0,ffff80002ccf0558) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd806d4a22e0,ffff80002ccf0558) at closef+0x190 sys/kern/kern_descrip.c:1264 fdfree(ffff80002ccf0558) at fdfree+0x115 sys/kern/kern_descrip.c:1195 exit1(ffff80002ccf0558,b,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80002ccf0558,ffff8000314fdc10,ffff8000314fdb60) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff8000314fdc10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000314fdc10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x779440d4b680, count: 3 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: uvm_fault(0xffffffff839a1640, 0xffff80003ca7dc10, 0, 1) -> e ddb> trace mtx_enter(ffff80003ca7dc10) at mtx_enter+0x6e sys/kern/kern_lock.c:549 filt_procdetach(fffffd8069be9bd0) at filt_procdetach+0x4d sys/kern/kern_event.c:432 knote_remove(ffff80002ccf0558,fffffd806f518508,fffffd806f518580,1,1) at knote_remove+0x22e filter_detach sys/kern/kern_event.c:-1 [inline] knote_remove(ffff80002ccf0558,fffffd806f518508,fffffd806f518580,1,1) at knote_remove+0x22e sys/kern/kern_event.c:2154 kqueue_purge(ffff80002ccf0558,fffffd806f518508) at kqueue_purge+0x117 sys/kern/kern_event.c:1890 kqueue_close(fffffd806d4a22e0,ffff80002ccf0558) at kqueue_close+0x48 sys/kern/kern_event.c:1934 fdrop(fffffd806d4a22e0,ffff80002ccf0558) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd806d4a22e0,ffff80002ccf0558) at closef+0x190 sys/kern/kern_descrip.c:1264 fdfree(ffff80002ccf0558) at fdfree+0x115 sys/kern/kern_descrip.c:1195 exit1(ffff80002ccf0558,b,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80002ccf0558,ffff8000314fdc10,ffff8000314fdb60) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff8000314fdc10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000314fdc10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x779440d4b680, count: -12 ddb> show registers rdi 0 rsi 0 rbp 0xffff8000314fd820 rbx 0xfffffd8069be9b00 rdx 0 rcx 0x1 rax 0xffff80002ccf0500 r8 0x1 r9 0 r10 0x79cee617888e7118 r11 0xd0ac8594938b5c97 r12 0x1b r13 0xffff80003ca7db30 r14 0xffff80003ca7dc10 r15 0 rip 0xffffffff822fac3e mtx_enter+0x6e cs 0x8 rflags 0x10297 __ALIGN_SIZE+0xf297 rsp 0xffff8000314fd7f0 ss 0 mtx_enter+0x6e: movq 0(%r14),%r15 ddb> show proc PROC (syz-executor) tid=8001 pid=16905 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=63, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002ccf0558 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002ccf1780,0xffff80002a7bd250 process=0xffff800039118498 user=0xffff8000314f8000, vmspace=0xfffffd806c5f3180 estcpu=13, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 40025 453437 59639 0 2 0 syz-executor 40025 460578 59639 0 3 0x4000080 ttyopn syz-executor 69375 331700 82733 0 2 0xc80 syz-executor 69375 216605 82733 0 3 0x4000080 kqread syz-executor 69375 448160 82733 0 3 0x4000080 fsleep syz-executor 62844 36159 0 0 3 0x14200 acct acct 27504 495776 74118 0 2 0 syz-executor 74394 394651 50690 0 2 0xc80 syz-executor 74394 393173 50690 0 2 0x4000000 syz-executor 74394 486845 50690 0 3 0x4000080 fsleep syz-executor 74394 18807 50690 0 3 0x4000080 fsleep syz-executor 50690 111017 44448 0 2 0xc82 syz-executor 84630 195039 44448 0 2 0xc82 syz-executor 37371 222852 44448 0 2 0xc82 syz-executor 74118 321433 44448 0 2 0xc82 syz-executor 32893 118967 44448 0 3 0x82 wait syz-executor 85138 474095 44448 0 2 0xc82 syz-executor 82733 150998 44448 0 2 0xc82 syz-executor 59639 252515 44448 0 3 0x82 nanoslp syz-executor 44448 381265 30840 0 3 0x82 kqread syz-executor 30840 318484 9337 0 3 0x10008a sigsusp ksh 9337 93179 21587 0 3 0x98 kqread sshd-session 21587 259982 17081 0 3 0x92 kqread sshd-session 85417 235959 1 0 3 0x100083 ttyin getty 17081 186979 1 0 3 0x88 kqread sshd 94837 289124 37736 73 2 0x1100010 syslogd 37736 399293 1 0 3 0x100082 sbwait syslogd 22853 11741 1 0 3 0x100080 kqread resolvd 2473 187740 21289 77 3 0x100092 kqread dhcpleased 88266 62051 21289 77 3 0x100092 kqread dhcpleased 21289 58378 1 0 3 0x80 kqread dhcpleased 17582 247226 0 0 3 0x14200 bored smr 69664 415561 0 0 2 0x14200 zerothread 27269 432336 0 0 3 0x14200 aiodoned aiodoned 63318 482384 0 0 3 0x14200 syncer update 22513 6668 0 0 3 0x14200 cleaner cleaner 85118 300390 0 0 3 0x14200 reaper reaper 30036 286476 0 0 3 0x14200 pgdaemon pagedaemon 87998 210370 0 0 3 0x14200 bored viomb 9520 422705 0 0 3 0x40014200 acpi0 acpi0 6635 233602 0 0 3 0x14200 bored softnet0 32795 256416 0 0 3 0x14200 bored systqmp 79795 254658 0 0 3 0x14200 bored systq 4151 291049 0 0 3 0x40014200 tmoslp softclock 52219 395148 0 0 3 0x40014200 idle0 1 380010 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11074 12199K 13174K 166960K 12906 0 pcb 18 14K 15K 166960K 185 0 rtable 241 7K 7K 166960K 383 0 pf 32 13K 14K 166960K 41 0 ifaddr 42 7K 8K 166960K 53 0 ifgroup 52 2K 2K 166960K 65 0 sysctl 2 1K 9K 166960K 7 0 counters 34 17K 18K 166960K 41 0 ioctlops 0 0K 4K 166960K 87 0 iov 0 0K 16K 166960K 73 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1470 92K 93K 166960K 1820 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 5 0K 0K 166960K 6 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 73K 166960K 279 0 sigio 0 0K 0K 166960K 4 0 proc 60 59K 75K 166960K 492 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 15 0 in_multi 98 7K 7K 166960K 108 0 ether_multi 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 366 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 241 163K 179K 166960K 4453 0 UVM aobj 8 6K 8K 166960K 9 0 pinsyscall 39 78K 84K 166960K 1347 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 4 0 NDP 12 0K 2K 166960K 32 0 temp 39 8659K 8725K 166960K 9836 0 kqueue 16 24K 27K 166960K 59 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 45 0 42 1 0 1 1 0 8 0 rtentry 136 115 0 7 4 0 4 4 0 8 0 unpcb 144 244 0 227 6 0 6 6 0 8 5 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 736 69 0 64 4 0 4 4 0 8 3 arp 96 18 0 0 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 0 1 0 1 1 0 8 0 inpcb 328 472 0 463 9 0 9 9 0 8 8 nd6 112 25 0 1 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 6 0 5 1 0 1 1 0 8 0 pppxif 1384 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 466 0 14 30 0 30 30 0 8 0 art_table 40 468 0 14 5 0 5 5 0 8 0 art_node 32 115 0 17 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 1 1 0 1 1 0 8 0 semapl 112 3 0 0 1 0 1 1 0 8 0 shmpl 112 3 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2016 0 511 95 0 95 95 0 8 0 ffsino 256 2016 0 511 95 0 95 95 0 8 0 nchpl 144 2402 0 705 64 0 64 64 0 8 0 vnodes 216 2252 0 0 126 0 126 126 0 8 0 namei 1024 7892 0 7892 2 0 2 2 0 8 2 vcpupl 3904 2 0 0 1 0 1 1 0 8 0 vmpool 808 3 0 1 1 0 1 1 0 8 0 kstatmem 264 32 0 8 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 8862 0 8862 8 0 8 8 1 8 8 plimitpl 152 112 0 95 1 0 1 1 0 8 0 sigapl 424 826 0 782 34 8 26 34 0 8 21 knotepl 120 7720 0 7424 11 0 11 11 0 8 0 kqueuepl 184 129 0 117 4 0 4 4 0 8 3 pipepl 304 133 0 106 3 0 3 3 0 8 0 fdescpl 448 552 0 522 4 0 4 4 0 8 0 filepl 120 3608 0 3384 14 0 14 14 0 8 5 lockfpl 104 180 0 177 2 0 2 2 0 8 1 lockfspl 48 88 0 85 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 33 0 17 1 0 1 1 0 8 0 ucredpl 104 896 0 884 1 0 1 1 0 8 0 zombiepl 144 786 0 782 1 0 1 1 0 8 0 processpl 1152 826 0 782 22 4 18 22 0 8 14 procpl 664 1063 0 1013 26 6 20 26 0 8 14 sockpl 552 867 0 838 12 1 11 12 0 8 8 mcl64k 65536 78 0 78 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 7 0 7 1 0 1 1 0 8 1 mcl4k 4096 2641 0 2590 14 0 14 14 0 8 7 mcl2k 2048 414 0 413 1 0 1 1 0 8 0 mtagpl 96 8 0 4 1 0 1 1 0 8 0 mbufpl 256 29400 0 29236 16 0 16 16 0 8 4 bufpl 280 3895 0 119 270 0 270 270 0 8 0 anonpl 24 114829 0 111231 44 0 44 44 0 187 20 amapchunkpl 152 32120 0 31619 35 0 35 35 0 158 14 amappl16 200 2293 0 2242 14 3 11 14 0 8 8 amappl15 192 6 0 6 1 0 1 1 0 8 1 amappl14 184 5 0 5 1 0 1 1 0 8 1 amappl13 176 404 0 403 1 0 1 1 0 8 0 amappl12 168 890 0 851 2 0 2 2 0 8 0 amappl11 160 2 0 2 1 0 1 1 0 8 1 amappl10 152 47 0 37 1 0 1 1 0 8 0 amappl9 144 251 0 251 1 0 1 1 0 8 1 amappl8 136 53 0 52 1 0 1 1 0 8 0 amappl7 128 78 0 77 1 0 1 1 0 8 0 amappl6 120 265 0 254 1 0 1 1 0 8 0 amappl5 112 68 0 61 1 0 1 1 0 8 0 amappl4 104 374 0 350 1 0 1 1 0 8 0 amappl3 96 2047 0 1955 3 0 3 3 0 8 0 amappl2 88 660 0 590 2 0 2 2 0 8 0 amappl1 80 9262 0 8713 12 0 12 12 0 8 0 amappl 88 3724 0 3554 5 0 5 5 0 92 0 uvmvnodes 80 101 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 254 0 254 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 8 0 1 1 0 1 1 0 8 0 uaddrrnd 24 552 0 522 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 552 0 522 1 0 1 1 0 8 0 vmmpekpl 168 6735 0 6689 3 0 3 3 0 8 0 vmmpepl 168 42794 0 40931 91 0 91 91 0 357 9 vmsppl 368 551 0 522 3 0 3 3 0 8 0 rwobjpl 40 14923 0 13936 13 0 13 13 0 8 1 pdppl 4096 1116 0 1048 84 16 68 70 0 8 0 pvpl 32 268340 0 259052 107 0 107 107 0 265 25 pmappl 216 554 0 523 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 360 0 16 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace mtx_enter(ffff80003ca7dc10) at mtx_enter+0x6e sys/kern/kern_lock.c:549 filt_procdetach(fffffd8069be9bd0) at filt_procdetach+0x4d sys/kern/kern_event.c:432 knote_remove(ffff80002ccf0558,fffffd806f518508,fffffd806f518580,1,1) at knote_remove+0x22e filter_detach sys/kern/kern_event.c:-1 [inline] knote_remove(ffff80002ccf0558,fffffd806f518508,fffffd806f518580,1,1) at knote_remove+0x22e sys/kern/kern_event.c:2154 kqueue_purge(ffff80002ccf0558,fffffd806f518508) at kqueue_purge+0x117 sys/kern/kern_event.c:1890 kqueue_close(fffffd806d4a22e0,ffff80002ccf0558) at kqueue_close+0x48 sys/kern/kern_event.c:1934 fdrop(fffffd806d4a22e0,ffff80002ccf0558) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd806d4a22e0,ffff80002ccf0558) at closef+0x190 sys/kern/kern_descrip.c:1264 fdfree(ffff80002ccf0558) at fdfree+0x115 sys/kern/kern_descrip.c:1195 exit1(ffff80002ccf0558,b,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80002ccf0558,ffff8000314fdc10,ffff8000314fdb60) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff8000314fdc10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000314fdc10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x779440d4b680, count: -12 ddb> machine ddbcpu 1 No such command ddb> trace mtx_enter(ffff80003ca7dc10) at mtx_enter+0x6e sys/kern/kern_lock.c:549 filt_procdetach(fffffd8069be9bd0) at filt_procdetach+0x4d sys/kern/kern_event.c:432 knote_remove(ffff80002ccf0558,fffffd806f518508,fffffd806f518580,1,1) at knote_remove+0x22e filter_detach sys/kern/kern_event.c:-1 [inline] knote_remove(ffff80002ccf0558,fffffd806f518508,fffffd806f518580,1,1) at knote_remove+0x22e sys/kern/kern_event.c:2154 kqueue_purge(ffff80002ccf0558,fffffd806f518508) at kqueue_purge+0x117 sys/kern/kern_event.c:1890 kqueue_close(fffffd806d4a22e0,ffff80002ccf0558) at kqueue_close+0x48 sys/kern/kern_event.c:1934 fdrop(fffffd806d4a22e0,ffff80002ccf0558) at fdrop+0x121 sys/kern/kern_descrip.c:1280 closef(fffffd806d4a22e0,ffff80002ccf0558) at closef+0x190 sys/kern/kern_descrip.c:1264 fdfree(ffff80002ccf0558) at fdfree+0x115 sys/kern/kern_descrip.c:1195 exit1(ffff80002ccf0558,b,0,1) at exit1+0x576 sys/kern/kern_exit.c:215 sys_exit(ffff80002ccf0558,ffff8000314fdc10,ffff8000314fdb60) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff8000314fdc10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000314fdc10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x779440d4b680, count: -12