uvm_fault(0xfffffd806778b210, 0x5a80, 0, 2) -> e kernel: page fault trap, code=2 Stopped at copyout+0x57: repe movsq (%rsi),%es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *238934 60626 0 0 0x4000000 0 syz-executor 111095 39142 0 0x2 0x1 1 syz-executor copyout() at copyout+0x57 syscall(ffff80003c47f710) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c47f710) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc5a96df02c0, count: 12 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 *cpu0: uvm_fault(0xfffffd806778b210, 0x5a80, 0, 2) -> e ddb{0}> trace copyout() at copyout+0x57 syscall(ffff80003c47f710) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c47f710) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc5a96df02c0, count: -3 ddb{0}> show registers rdi 0x5a80 __ALIGN_SIZE+0x4a80 rsi 0xffff80003c47f410 rbp 0xffff80003c47f630 rbx 0xa726 __ALIGN_SIZE+0x9726 rdx 0xffff80003c47a000 rcx 0x4 rax 0x20 r8 0x7f7fffffc000 r9 0 r10 0x18b56a35eec24d4e r11 0xffffffff82578360 copy_fault r12 0x3 r13 0x16 r14 0xffff80003c47f410 r15 0xffff80003c47f710 rip 0xffffffff82578287 copyout+0x57 cs 0x8 rflags 0x50202 acpi_pdirpa+0x3c073 rsp 0xffff80003c47f380 ss 0x10 copyout+0x57: repe movsq (%rsi),%es:(%rdi) ddb{0}> show proc PROC (syz-executor) tid=238934 pid=60626 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c48ed30,0xffff80003c48f270 process=0xffff80003c4c4028 user=0xffff80003c47a000, vmspace=0xfffffd806778b210 estcpu=33, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 9849 194041 39142 0 2 0 syz-executor 60626 8297 98095 0 2 0 syz-executor *60626 238934 98095 0 7 0x4000000 syz-executor 27543 120290 35904 0 2 0 syz-executor 27543 189236 35904 0 3 0x4000080 lockf syz-executor 27543 482803 35904 0 2 0x4000000 syz-executor 27543 187025 35904 0 3 0x4000080 fsleep syz-executor 43161 172271 39889 0 2 0 syz-executor 43161 498586 39889 0 3 0x4000080 ttyout syz-executor 43161 394291 39889 0 3 0x4000080 ttyout syz-executor 43161 167481 39889 0 3 0x4000080 fsleep syz-executor 48723 160430 1 0 3 0x100083 ttyopn getty 85276 265070 52743 0 2 0xc82 syz-executor 1522 199175 0 0 3 0x14200 bored sosplice 81879 236936 52743 0 3 0x82 nanoslp syz-executor 98095 331915 52743 0 2 0xc82 syz-executor 39889 457198 52743 0 3 0x82 nanoslp syz-executor 39142 111095 52743 0 7 0x3 syz-executor 35904 126546 52743 0 2 0xc82 syz-executor 83419 484240 52743 0 2 0x2 syz-executor 58878 208981 52743 0 2 0x2 syz-executor 52743 438955 22362 0 2 0x82 syz-executor 22362 305699 91838 0 3 0x10008a sigsusp ksh 91838 10623 26308 0 3 0x98 kqread sshd-session 26308 408046 48960 0 3 0x92 kqread sshd-session 48960 272669 1 0 3 0x88 kqread sshd 52259 306041 32586 74 3 0x1100092 bpf pflogd 32586 107157 1 0 3 0x80 sbwait pflogd 36642 506759 54215 73 2 0x1100090 syslogd 54215 342788 1 0 3 0x100082 sbwait syslogd 22781 31382 1 0 3 0x100080 kqread resolvd 37052 335259 47176 77 3 0x100092 kqread dhcpleased 76809 290817 47176 77 3 0x100092 kqread dhcpleased 47176 461601 1 0 3 0x80 kqread dhcpleased 39702 376990 0 0 3 0x14200 bored smr 84234 258390 0 0 2 0x14200 zerothread 16491 227097 0 0 3 0x14200 aiodoned aiodoned 35525 464220 0 0 3 0x14200 syncer update 33932 427642 0 0 3 0x14200 cleaner cleaner 94125 76685 0 0 2 0x14200 reaper 73126 159000 0 0 3 0x14200 pgdaemon pagedaemon 25121 415019 0 0 3 0x14200 bored viomb 62193 196979 0 0 3 0x40014200 acpi0 acpi0 88917 306415 0 0 3 0x40014200 idle1 23347 471369 0 0 3 0x14200 bored softnet7 31166 476622 0 0 3 0x14200 bored softnet6 46390 22207 0 0 3 0x14200 bored softnet5 90590 156103 0 0 3 0x14200 bored softnet4 14023 491401 0 0 3 0x14200 bored softnet3 45036 354809 0 0 3 0x14200 bored softnet2 3957 395352 0 0 3 0x14200 bored softnet1 36097 482546 0 0 3 0x14200 bored softnet0 83529 453172 0 0 3 0x14200 bored systqmp 66683 420610 0 0 3 0x14200 bored systq 9845 411663 0 0 3 0x14200 tmoslp softclockmp 85246 167501 0 0 2 0x40014200 softclock 52528 436379 0 0 3 0x40014200 idle0 1 240886 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 39142 (syz-executor) thread 0xffff8000ffff2fa0 (111095) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83921c88) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 sleep_finish+0x2d8 sys/kern/kern_synch.c:367 #3 biowait+0xc6 sys/kern/vfs_bio.c:1242 #4 bwrite+0x2e7 sys/kern/vfs_bio.c:754 #5 VOP_BWRITE+0x60 sys/kern/vfs_vops.c:651 #6 ufs_direnter+0x7ac sys/ufs/ufs/ufs_lookup.c:833 #7 ufs_mkdir+0x5d5 sys/ufs/ufs/ufs_vnops.c:1179 #8 VOP_MKDIR+0x101 sys/kern/vfs_vops.c:394 #9 domkdirat+0x179 sys/kern/vfs_syscalls.c:3109 #10 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #10 syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 #11 Xsyscall+0x128 Process 58878 (syz-executor) thread 0xffff80002a2b8548 (208981) exclusive rrwlock inode r = 0 (0xfffffd806e197790) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 rrw_enter+0xc6 sys/kern/kern_rwlock.c:621 #3 VOP_LOCK+0xa3 sys/kern/vfs_vops.c:527 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:570 #5 vget+0x2a2 sys/kern/vfs_subr.c:693 #6 ufs_ihashget+0x185 sys/ufs/ufs/ufs_ihash.c:98 #7 ffs_vget+0x8c sys/ufs/ffs/ffs_vfsops.c:1203 #8 ufs_lookup+0x1a36 sys/ufs/ufs/ufs_lookup.c:478 #9 VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 #10 vfs_lookup+0x93a sys/kern/vfs_lookup.c:566 #11 namei+0x7ca sys/kern/vfs_lookup.c:250 #12 dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1864 #13 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #13 syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806e1970a0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 rrw_enter+0xc6 sys/kern/kern_rwlock.c:621 #3 VOP_LOCK+0xa3 sys/kern/vfs_vops.c:527 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:570 #5 vget+0x2a2 sys/kern/vfs_subr.c:693 #6 cache_lookup+0x351 sys/kern/vfs_cache.c:222 #7 ufs_lookup+0x1e3 sys/ufs/ufs/ufs_lookup.c:160 #8 VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 #9 vfs_lookup+0x93a sys/kern/vfs_lookup.c:566 #10 namei+0x7ca sys/kern/vfs_lookup.c:250 #11 dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1864 #12 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #12 syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 #13 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10217 11042K 12530K 166960K 13407 0 pcb 17 17K 19K 166960K 350 0 rtable 169 9K 10K 166960K 483 0 pf 33 17K 82K 166960K 216 0 ifaddr 32 5K 7K 166960K 109 0 ifgroup 51 2K 2K 166960K 203 0 sysctl 4 1K 9K 166960K 20 0 counters 66 36K 38K 166960K 228 0 ioctlops 0 0K 4K 166960K 1863 0 iov 0 0K 32K 166960K 148 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1511 95K 95K 166960K 2795 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 24 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 50 0 dirhash 12 2K 2K 166960K 30 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 15 53K 240K 166960K 1618 0 sigio 0 0K 0K 166960K 159 0 proc 73 115K 180K 166960K 783 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 224 0 in_multi 63 4K 7K 166960K 142 0 ether_multi 1 0K 0K 166960K 5 0 mrt 3 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 115 519K 519K 166960K 115 0 exec 0 0K 1K 166960K 629 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 226 167K 189K 166960K 16421 0 UVM aobj 6 2K 2K 166960K 6 0 pinsyscall 40 80K 102K 166960K 2797 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 99 0 NDP 11 0K 2K 166960K 79 0 temp 79 8652K 8773K 166960K 80890 0 kqueue 15 22K 31K 166960K 359 0 SYN cache 2 8K 16K 166960K 3 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 147 0 144 1 0 1 1 0 8 0 rtentry 176 153 0 91 5 0 5 5 0 8 1 unpcb 144 1657 0 1640 16 10 6 6 0 8 5 syncache 336 13 0 13 3 3 0 1 0 8 0 tcpqe 32 4 0 4 2 2 0 1 0 8 0 tcpcb 736 530 0 522 9 2 7 7 0 8 6 arp 128 21 0 13 1 0 1 1 0 8 0 inpcb 328 1806 0 1764 21 14 7 12 0 8 3 nd6 144 23 0 9 1 0 1 1 0 8 0 pkpcb 40 15 0 15 3 2 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1192 64 0 64 2 1 1 1 0 8 1 pppxif 1504 7 0 7 2 2 0 1 0 8 0 pffrag 232 14 0 7 1 0 1 1 0 482 0 pffrnode 88 13 0 6 1 0 1 1 0 8 0 pffrent 40 23 0 16 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 0 1 0 1 1 0 8 0 pfstitem 24 103 0 31 1 0 1 1 0 8 0 pfstkey 128 105 0 33 3 0 3 3 0 8 0 pfstate 384 104 0 32 8 0 8 8 0 8 0 pfrule 1344 24 0 19 2 1 1 2 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 617 0 315 29 4 25 28 0 8 2 art_table 40 620 0 315 5 0 5 5 0 8 1 art_node 32 151 0 99 1 0 1 1 0 8 0 sysvmsgpl 40 58 0 19 1 0 1 1 0 8 0 semapl 112 46 0 36 1 0 1 1 0 8 0 shmpl 112 3 0 0 1 0 1 1 0 8 0 dirhash 1024 29 0 12 3 0 3 3 0 8 0 dino2pl 256 4519 0 3023 95 0 95 95 0 8 0 ffsino 296 4519 0 3023 117 0 117 117 0 8 0 nchpl 144 6805 0 5113 64 0 64 64 0 8 0 rtmask 32 14 0 14 4 4 0 1 0 8 0 uvmvnodes 80 5376 0 0 110 0 110 110 0 8 0 vnodes 216 5376 0 0 299 0 299 299 0 8 0 namei 1024 23496 0 23496 3 2 1 2 0 8 1 percpumem 16 129 0 81 1 0 1 1 0 8 0 kstatmem 264 124 0 98 5 2 3 3 0 8 1 scsiplug 72 7 0 7 4 3 1 1 0 8 1 scxspl 216 38659 0 38659 14 11 3 8 1 8 3 plimitpl 152 368 0 351 1 0 1 1 0 8 0 sigapl 424 1972 0 1919 9 0 9 9 0 8 2 knotepl 120 533 0 0 16 0 16 16 0 8 0 kqueuepl 224 685 0 675 8 6 2 5 0 8 1 pipepl 344 227 0 200 3 0 3 3 0 8 0 fdescpl 528 1905 0 1876 3 0 3 3 0 8 0 filepl 160 12738 0 12489 29 13 16 18 0 8 5 lockfpl 104 682 0 678 2 1 1 2 0 8 0 lockfspl 48 246 0 243 1 0 1 1 0 8 0 sessionpl 144 33 0 24 1 0 1 1 0 8 0 pgrppl 48 68 0 51 1 0 1 1 0 8 0 ucredpl 104 1904 0 1891 1 0 1 1 0 8 0 zombiepl 144 1921 0 1919 1 0 1 1 0 8 0 processpl 1248 1972 0 1919 7 1 6 7 0 8 0 procpl 664 4494 0 4434 9 0 9 9 0 8 3 sosppl 168 14 0 14 3 2 1 1 0 8 1 sockpl 752 3662 0 3600 44 29 15 17 0 8 8 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 111 0 0 14 0 14 14 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 30 0 0 4 0 4 4 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 1285 0 0 78 0 78 78 0 8 0 bufpl 280 15966 0 9823 439 0 439 439 0 8 0 anonpl 32 11598 0 0 94 0 94 94 0 246 0 amapchunkpl 152 56459 0 55960 46 14 32 32 0 158 2 amappl16 200 6719 0 6656 47 31 16 21 0 8 8 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 134 0 122 1 0 1 1 0 8 0 amappl13 176 5 0 5 1 1 0 1 0 8 0 amappl12 168 2591 0 2563 4 1 3 3 0 8 0 amappl11 160 49 0 35 1 0 1 1 0 8 0 amappl10 152 6 0 4 1 0 1 1 0 8 0 amappl9 144 249 0 249 1 1 0 1 0 8 0 amappl8 136 29 0 26 1 0 1 1 0 8 0 amappl7 128 125 0 112 1 0 1 1 0 8 0 amappl6 120 208 0 203 1 0 1 1 0 8 0 amappl5 112 125 0 115 1 0 1 1 0 8 0 amappl4 104 348 0 328 1 0 1 1 0 8 0 amappl3 96 11345 0 11249 5 1 4 4 0 8 0 amappl2 88 733 0 669 2 0 2 2 0 8 0 amappl1 80 16602 0 15998 16 1 15 16 0 8 0 amappl 88 15379 0 15226 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma16384 16384 1 0 1 1 1 0 1 0 8 0 dma4096 4096 2 0 2 2 2 0 1 0 8 0 dma1024 1024 3 0 2 1 0 1 1 0 8 0 dma256 256 12 0 12 5 4 1 1 0 8 1 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 8 0 8 2 2 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1906 0 1877 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1906 0 1877 1 0 1 1 0 8 0 vmmpekpl 168 17103 0 17057 4 1 3 3 0 8 0 vmmpepl 168 127158 0 125220 121 15 106 112 0 357 2 vmsppl 488 1905 0 1876 7 2 5 5 0 8 0 rwobjpl 80 40070 0 33719 135 0 135 135 0 8 0 pdppl 4096 3820 0 3752 124 52 72 84 0 8 4 pvpl 32 21956 0 0 178 1 177 177 0 265 0 pmappl 256 1905 0 1876 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 384 0 72 9 0 9 9 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace copyout() at copyout+0x57 syscall(ffff80003c47f710) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c47f710) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc5a96df02c0, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299edff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xb kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xb sys/dev/kcov.c:153 ktrsysret(ffff8000ffff2fa0,5b,0,ffff80002a37d420) at ktrsysret+0xde ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff8000ffff2fa0,5b,0,ffff80002a37d420) at ktrsysret+0xde sys/kern/kern_ktrace.c:209 syscall(ffff80002a37d4d0) at syscall+0xa50 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a37d4d0) at syscall+0xa50 sys/arch/amd64/amd64/trap.c:769 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7028acae5240, count: 8 ddb{1}> trace x86_ipi_db(ffff8000299edff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xb kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xb sys/dev/kcov.c:153 ktrsysret(ffff8000ffff2fa0,5b,0,ffff80002a37d420) at ktrsysret+0xde ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff8000ffff2fa0,5b,0,ffff80002a37d420) at ktrsysret+0xde sys/kern/kern_ktrace.c:209 syscall(ffff80002a37d4d0) at syscall+0xa50 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a37d4d0) at syscall+0xa50 sys/arch/amd64/amd64/trap.c:769 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7028acae5240, count: -7