uvm_fault(0xffffffff83504770, 0xffff8000277d28f0, 0, 2) -> d kernel: page fault trap, code=2 Stopped at memset+0x52: repe stosq %es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *221534 61031 73 0x1100010 0 1K syslogd 290346 81555 0 0x14000 0x200 0 reaper memset() at memset+0x52 ffs_write(ffff80002a06a9e0) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd806e2a58c0,ffff80002a06ac00,3,fffffd807f7d3af8) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 vn_write(fffffd806f8a4098,ffff80002a06ac00,0) at vn_write+0x1d1 sys/kern/vfs_vnops.c:408 dofilewritev(ffff8000ffffd960,e,ffff80002a06ac00,0,ffff80002a06acc0) at dofilewritev+0x23c sys/kern/sys_generic.c:380 sys_writev(ffff8000ffffd960,ffff80002a06ad70,ffff80002a06acc0) at sys_writev+0xd8 sys/kern/sys_generic.c:327 syscall(ffff80002a06ad70) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a06ad70) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7430135a8740, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: uvm_fault(0xffffffff83504770, 0xffff8000277d28f0, 0, 2) -> d ddb{1}> trace memset() at memset+0x52 ffs_write(ffff80002a06a9e0) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd806e2a58c0,ffff80002a06ac00,3,fffffd807f7d3af8) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 vn_write(fffffd806f8a4098,ffff80002a06ac00,0) at vn_write+0x1d1 sys/kern/vfs_vnops.c:408 dofilewritev(ffff8000ffffd960,e,ffff80002a06ac00,0,ffff80002a06acc0) at dofilewritev+0x23c sys/kern/sys_generic.c:380 sys_writev(ffff8000ffffd960,ffff80002a06ad70,ffff80002a06acc0) at sys_writev+0xd8 sys/kern/sys_generic.c:327 syscall(ffff80002a06ad70) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a06ad70) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7430135a8740, count: -8 ddb{1}> show registers rdi 0xffff8000277d28f0 rsi 0 rbp 0xffff80002a06a900 rbx 0x7c8f0 acpi_pdirpa+0x68761 rdx 0 rcx 0x6e2 rax 0 r8 0x3710 __ALIGN_SIZE+0x2710 r9 0xffff80002a06a860 r10 0x48837ffc2723e884 r11 0xffff8000277d28f0 r12 0x4000 __ALIGN_SIZE+0x3000 r13 0x8f0 r14 0xfffffd806e2a58c0 r15 0x1 rip 0xffffffff810078c2 memset+0x52 cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80002a06a6f8 ss 0x10 memset+0x52: repe stosq %es:(%rdi) ddb{1}> show proc PROC (syslogd) tid=221534 pid=61031 tcnt=1 stat=onproc flags process=1100010 proc=0 runpri=17, usrpri=53, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffffd450,0xffff8000ffffca40 process=0xffff8000ffff8920 user=0xffff80002a065000, vmspace=0xfffffd807e49a378 estcpu=3, cpticks=10, pctcpu=4.9, user=3, sys=962, intr=343 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 25997 349749 83049 0 2 0x80 syz-executor 25997 225327 83049 0 3 0x4000080 fsleep syz-executor 99399 397643 83768 0 2 0x80 syz-executor 99399 264816 83768 0 3 0x4000080 fsleep syz-executor 39808 412939 40471 0 3 0x80 fsleep syz-executor 39808 511938 40471 0 2 0x4000080 syz-executor 97359 6035 73302 0 3 0x80 fsleep syz-executor 97359 227113 73302 0 3 0x4000080 sbwait syz-executor 96990 304316 49479 0 2 0x2 ifconfig 49479 480705 44717 0 3 0x10008a sigsusp sh 12354 207162 50271 0 3 0x10008a sigsusp sh 6029 266211 14586 0 3 0x80 fsleep syz-executor 6029 135976 14586 0 3 0x4000080 nanoslp syz-executor 40471 411122 71460 0 3 0x82 nanoslp syz-executor 50271 150149 71460 0 3 0x82 wait syz-executor 44717 183333 71460 0 3 0x82 wait syz-executor 73302 31651 71460 0 2 0x482 syz-executor 83768 465793 71460 0 3 0x82 nanoslp syz-executor 83049 267060 71460 0 2 0x482 syz-executor 36141 512272 1 0 3 0x100083 ttyin getty 14586 491689 71460 0 2 0x482 syz-executor 96450 62951 0 0 3 0x14200 bored sosplice 71460 406810 92215 0 2 0x82 syz-executor 92215 496320 56396 0 3 0x10008a sigsusp ksh 56396 7425 48938 0 3 0x98 kqread sshd-session 48938 516500 39376 0 3 0x92 kqread sshd-session 39376 250831 1 0 3 0x88 kqread sshd 92471 156394 65115 74 3 0x1100092 bpf pflogd 65115 159139 1 0 3 0x80 sbwait pflogd *61031 221534 86001 73 7 0x1100010 syslogd 86001 103123 1 0 3 0x100082 sbwait syslogd 91468 442657 1 0 3 0x100080 kqread resolvd 29141 99900 82288 77 3 0x100092 kqread dhcpleased 24014 493537 82288 77 3 0x100092 kqread dhcpleased 82288 398344 1 0 3 0x80 kqread dhcpleased 12891 15344 0 0 3 0x14200 bored smr 88037 343530 0 0 2 0x14200 zerothread 39072 480665 0 0 3 0x14200 aiodoned aiodoned 28377 15714 0 0 3 0x14200 syncer update 20169 60724 0 0 3 0x14200 cleaner cleaner 81555 290346 0 0 7 0x14200 reaper 61698 470995 0 0 3 0x14200 pgdaemon pagedaemon 24688 198762 0 0 3 0x14200 bored viomb 13263 400252 0 0 3 0x40014200 acpi0 acpi0 12381 68826 0 0 3 0x40014200 idle1 2989 503555 0 0 3 0x14200 bored softnet3 72706 86117 0 0 3 0x14200 bored softnet2 40758 33326 0 0 3 0x14200 bored softnet1 18133 445410 0 0 2 0x14200 softnet0 27402 253830 0 0 3 0x14200 bored systqmp 97355 339267 0 0 3 0x14200 bored systq 70380 322951 0 0 3 0x14200 tmoslp softclockmp 98072 328418 0 0 3 0x40014200 tmoslp softclock 32215 407993 0 0 3 0x40014200 idle0 1 79784 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 0: exclusive mutex &pmap->pm_mtx r = 0 (0xfffffd8068877020) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 mtx_enter_try+0x178 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 pmap_do_remove+0xa9 rcr3 machine/cpufunc.h:139 [inline] #3 pmap_do_remove+0xa9 pmap_map_ptes sys/arch/amd64/amd64/pmap.c:432 [inline] #3 pmap_do_remove+0xa9 sys/arch/amd64/amd64/pmap.c:1819 #4 uvm_unmap_kill_entry_withlock+0x274 sys/uvm/uvm_map.c:1865 #5 uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 #6 uvmspace_free+0xcd sys/uvm/uvm_map.c:3422 #7 reaper+0x246 sys/kern/kern_exit.c:480 #8 proc_trampoline+0x10 Process 61031 (syslogd) thread 0xffff8000ffffd960 (221534) Process 81555 (reaper) thread 0xffff800029fd91c0 (290346) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10207 10169K 10589K 166960K 12253 0 pcb 17 13K 14K 166960K 165 0 rtable 204 7K 8K 166960K 1075 0 pf 38 18K 22K 166960K 123 0 ifaddr 41 7K 8K 166960K 143 0 ifgroup 62 2K 2K 166960K 163 0 sysctl 2 0K 0K 166960K 2 0 counters 66 36K 36K 166960K 118 0 ioctlops 0 0K 4K 166960K 1549 0 iov 0 0K 16K 166960K 34 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1487 93K 93K 166960K 2279 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 8 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 59 0 dirhash 12 2K 2K 166960K 39 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 18 65K 93K 166960K 1048 0 sigio 0 0K 0K 166960K 16 0 proc 79 103K 164K 166960K 1210 0 subproc 104 6K 6K 166960K 403 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 141 0 in_multi 85 6K 7K 166960K 357 0 ether_multi 1 0K 0K 166960K 6 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 0 0K 1K 166960K 774 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 227 72K 91K 166960K 10008 0 UVM aobj 13 5K 5K 166960K 13 0 pinsyscall 43 86K 104K 166960K 2730 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 33 0 NDP 20 1K 1K 166960K 98 0 temp 57 6819K 6887K 166960K 31020 0 kqueue 13 20K 26K 166960K 109 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 120 0 116 1 0 1 1 0 8 0 rtentry 112 371 0 280 3 0 3 3 0 8 0 unpcb 144 691 0 671 9 8 1 6 0 8 0 syncache 336 8 0 8 3 3 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 351 0 347 12 7 5 8 0 8 4 arp 120 68 0 50 1 0 1 1 0 8 0 inpcb 336 1223 0 1212 19 15 4 9 0 8 3 nd6 136 92 0 73 1 0 1 1 0 8 0 pkpcb 40 5 0 5 2 2 0 1 0 8 0 kcovpl 48 31 0 23 1 0 1 1 0 8 0 ppxss 1168 2 0 2 2 2 0 1 0 8 0 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pffrag 232 3 0 1 1 0 1 1 0 482 0 pffrnode 88 3 0 1 1 0 1 1 0 8 0 pffrent 40 8 0 6 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pftag 88 1 0 1 1 1 0 1 0 8 0 pfstitem 24 76 0 49 1 0 1 1 0 8 0 pfstkey 128 78 0 51 2 0 2 2 0 8 0 pfstate 376 77 0 50 4 0 4 4 0 8 0 pfrule 1344 26 0 17 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1477 0 1083 31 3 28 29 0 8 3 art_table 32 1478 0 1083 4 0 4 4 0 8 0 art_node 16 369 0 287 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 3 1 0 1 1 0 8 0 semapl 112 54 0 44 1 0 1 1 0 8 0 shmpl 112 10 0 0 1 0 1 1 0 8 0 dirhash 1024 36 0 19 3 0 3 3 0 8 0 dino2pl 256 2630 0 1082 97 0 97 97 0 8 0 ffsino 272 2630 0 1082 104 0 104 104 0 8 0 nchpl 144 3664 0 1945 64 0 64 64 0 8 0 uvmvnodes 80 3491 0 0 72 0 72 72 0 8 0 vnodes 216 3491 0 0 194 0 194 194 0 8 0 namei 1024 14462 0 14462 3 2 1 2 0 8 1 percpumem 16 73 0 26 1 0 1 1 0 8 0 kstatmem 264 78 0 52 2 0 2 2 0 8 0 scsiplug 72 4 0 4 2 2 0 1 0 8 0 scxspl 216 20219 0 20219 11 10 1 8 1 8 1 plimitpl 152 323 0 306 1 0 1 1 0 8 0 sigapl 424 1308 0 1256 9 2 7 7 0 8 0 futexpl 64 12767 0 12762 3 2 1 1 0 8 0 knotepl 120 353 0 0 10 0 10 10 0 8 0 kqueuepl 216 236 0 227 5 4 1 5 0 8 0 pipepl 320 253 0 226 3 0 3 3 0 8 0 fdescpl 496 1288 0 1256 7 2 5 5 0 8 0 filepl 152 7253 0 7002 24 11 13 16 0 8 3 lockfpl 104 334 0 332 1 0 1 1 0 8 0 lockfspl 48 164 0 162 1 0 1 1 0 8 0 sessionpl 144 51 0 42 1 0 1 1 0 8 0 pgrppl 48 97 0 80 1 0 1 1 0 8 0 ucredpl 104 846 0 833 1 0 1 1 0 8 0 zombiepl 144 1258 0 1256 1 0 1 1 0 8 0 processpl 1160 1308 0 1256 5 1 4 5 0 8 0 procpl 648 2267 0 2210 7 1 6 6 0 8 0 srpgc 96 4 0 4 2 2 0 1 0 8 0 sosppl 168 3 0 3 2 2 0 1 0 8 0 sockpl 664 2044 0 2009 24 18 6 14 0 8 3 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 246 0 0 31 0 31 31 0 8 0 mtagpl 96 108 0 0 3 1 2 3 0 8 0 mbufpl 256 307 0 0 19 0 19 19 0 8 0 bufpl 280 6637 0 463 442 0 442 442 0 8 0 anonpl 24 256803 0 253292 73 22 51 62 0 185 27 amapchunkpl 152 32168 0 31713 38 7 31 33 0 158 12 amappl16 200 5881 0 5869 25 23 2 14 0 8 1 amappl15 192 14 0 14 1 1 0 1 0 8 0 amappl14 184 172 0 159 1 0 1 1 0 8 0 amappl13 176 10 0 10 1 1 0 1 0 8 0 amappl12 168 2297 0 2263 3 1 2 2 0 8 0 amappl11 160 56 0 42 1 0 1 1 0 8 0 amappl10 152 20 0 20 1 1 0 1 0 8 0 amappl9 144 171 0 171 1 1 0 1 0 8 0 amappl8 136 23 0 20 1 0 1 1 0 8 0 amappl7 128 161 0 147 1 0 1 1 0 8 0 amappl6 120 393 0 388 1 0 1 1 0 8 0 amappl5 112 235 0 222 1 0 1 1 0 8 0 amappl4 104 387 0 366 1 0 1 1 0 8 0 amappl3 96 6241 0 6136 4 0 4 4 0 8 0 amappl2 88 1047 0 974 2 0 2 2 0 8 0 amappl1 80 12765 0 12171 15 1 14 14 0 8 0 amappl 88 9382 0 9221 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 7 0 7 2 2 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 12 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1288 0 1256 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1288 0 1256 1 0 1 1 0 8 0 vmmpekpl 168 11592 0 11537 4 1 3 3 0 8 0 vmmpepl 168 87555 0 85715 99 12 87 93 0 357 4 vmsppl 440 1287 0 1255 6 2 4 5 0 8 0 rwobjpl 56 31563 0 27104 66 3 63 63 0 8 0 pdppl 4096 2583 0 2510 145 68 77 85 0 8 4 pvpl 32 30446 0 0 246 0 246 246 0 265 0 pmappl 248 1287 0 1255 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 478 0 103 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83466ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83552f70) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83552f70) at __mp_lock+0x192 sys/kern/kern_lock.c:144 uvn_detach(fffffd806f01bec0) at uvn_detach+0x28 sys/uvm/uvm_vnode.c:310 uvm_unmap_detach(ffff800029fe5240,0) at uvm_unmap_detach+0x15e sys/uvm/uvm_map.c:1364 uvm_map_teardown(fffffd807ec78000) at uvm_map_teardown+0x35e sys/uvm/uvm_map.c:2518 uvmspace_free(fffffd807ec78000) at uvmspace_free+0xcd sys/uvm/uvm_map.c:3422 reaper(ffff800029fd91c0) at reaper+0x246 sys/kern/kern_exit.c:480 end trace frame: 0x0, count: 6 ddb{0}> trace x86_ipi_db(ffffffff83466ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83552f70) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83552f70) at __mp_lock+0x192 sys/kern/kern_lock.c:144 uvn_detach(fffffd806f01bec0) at uvn_detach+0x28 sys/uvm/uvm_vnode.c:310 uvm_unmap_detach(ffff800029fe5240,0) at uvm_unmap_detach+0x15e sys/uvm/uvm_map.c:1364 uvm_map_teardown(fffffd807ec78000) at uvm_map_teardown+0x35e sys/uvm/uvm_map.c:2518 uvmspace_free(fffffd807ec78000) at uvmspace_free+0xcd sys/uvm/uvm_map.c:3422 reaper(ffff800029fd91c0) at reaper+0x246 sys/kern/kern_exit.c:480 end trace frame: 0x0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at memset+0x52: repe stosq %es:(%rdi) memset() at memset+0x52 ffs_write(ffff80002a06a9e0) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd806e2a58c0,ffff80002a06ac00,3,fffffd807f7d3af8) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 vn_write(fffffd806f8a4098,ffff80002a06ac00,0) at vn_write+0x1d1 sys/kern/vfs_vnops.c:408 dofilewritev(ffff8000ffffd960,e,ffff80002a06ac00,0,ffff80002a06acc0) at dofilewritev+0x23c sys/kern/sys_generic.c:380 sys_writev(ffff8000ffffd960,ffff80002a06ad70,ffff80002a06acc0) at sys_writev+0xd8 sys/kern/sys_generic.c:327 syscall(ffff80002a06ad70) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a06ad70) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7430135a8740, count: 7 ddb{1}> trace memset() at memset+0x52 ffs_write(ffff80002a06a9e0) at ffs_write+0xbab sys/ufs/ffs/ffs_vnops.c:401 VOP_WRITE(fffffd806e2a58c0,ffff80002a06ac00,3,fffffd807f7d3af8) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 vn_write(fffffd806f8a4098,ffff80002a06ac00,0) at vn_write+0x1d1 sys/kern/vfs_vnops.c:408 dofilewritev(ffff8000ffffd960,e,ffff80002a06ac00,0,ffff80002a06acc0) at dofilewritev+0x23c sys/kern/sys_generic.c:380 sys_writev(ffff8000ffffd960,ffff80002a06ad70,ffff80002a06acc0) at sys_writev+0xd8 sys/kern/sys_generic.c:327 syscall(ffff80002a06ad70) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a06ad70) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7430135a8740, count: -8