uvm_fault(0xfffffd806e8fd378, 0x7f82af5372b0, 0, 2) -> e kernel: page fault trap, code=2 Stopped at pmap_page_remove+0x45d: xchgq %rax,0(%r14,%rcx,1) TID PID UID PRFLAGS PFLAGS CPU COMMAND *196521 67829 0 0x1004 0 0K syz-executor pmap_page_remove(fffffd8007e788e0) at pmap_page_remove+0x45d _atomic_swap_64 machine/atomic.h:117 [inline] pmap_page_remove(fffffd8007e788e0) at pmap_page_remove+0x45d sys/arch/amd64/amd64/pmap.c:2014 uvm_anfree_list(fffffd8068b8bab0,0) at uvm_anfree_list+0xd6 amap_wipeout(fffffd80773820c8) at amap_wipeout+0x248 sys/uvm/uvm_amap.c:502 uvm_unmap_detach(ffff800030e213e8,0) at uvm_unmap_detach+0x8a sys/uvm/uvm_map.c:1353 uvmspace_exec(ffff80002a040cc0,1000,7f7fffffc000) at uvmspace_exec+0x44d sys/uvm/uvm_map.c:3388 sys_execve(ffff80002a040cc0,ffff800030e21a80,ffff800030e219d0) at sys_execve+0xadb sys/kern/kern_exec.c:448 syscall(ffff800030e21a80) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800030e21a80) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x793ae92447f0, 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 *cpu0: uvm_fault(0xfffffd806e8fd378, 0x7f82af5372b0, 0, 2) -> e ddb{0}> trace pmap_page_remove(fffffd8007e788e0) at pmap_page_remove+0x45d _atomic_swap_64 machine/atomic.h:117 [inline] pmap_page_remove(fffffd8007e788e0) at pmap_page_remove+0x45d sys/arch/amd64/amd64/pmap.c:2014 uvm_anfree_list(fffffd8068b8bab0,0) at uvm_anfree_list+0xd6 amap_wipeout(fffffd80773820c8) at amap_wipeout+0x248 sys/uvm/uvm_amap.c:502 uvm_unmap_detach(ffff800030e213e8,0) at uvm_unmap_detach+0x8a sys/uvm/uvm_map.c:1353 uvmspace_exec(ffff80002a040cc0,1000,7f7fffffc000) at uvmspace_exec+0x44d sys/uvm/uvm_map.c:3388 sys_execve(ffff80002a040cc0,ffff800030e21a80,ffff800030e219d0) at sys_execve+0xadb sys/kern/kern_exec.c:448 syscall(ffff800030e21a80) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800030e21a80) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x793ae92447f0, count: -8 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff800030e212d0 rbx 0xfffffd8059f518d0 rdx 0 rcx 0x7f8000000000 rax 0 r8 0 r9 0 r10 0x97022fdb6f89444b r11 0xe726ee432ba79d14 r12 0 r13 0x800000006f9b9001 r14 0x2af5372b0 r15 0xfffffd8007e78948 rip 0xffffffff82e58ccd pmap_page_remove+0x45d cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800030e21250 ss 0x10 pmap_page_remove+0x45d: xchgq %rax,0(%r14,%rcx,1) ddb{0}> show proc PROC (syz-executor) tid=196521 pid=67829 tcnt=1 stat=onproc flags process=1004 proc=0 runpri=62, usrpri=62, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a040cc0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a03ea40,0xffff8000ffffdbf8 process=0xffff800030e11b38 user=0xffff800030e1c000, vmspace=0xfffffd806e8fd378 estcpu=26, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 72624 181897 51478 0 2 0x2 sh *67829 196521 58728 0 7 0x1004 syz-executor 31590 187317 58728 0 3 0x2 biowait syz-executor 51478 297072 58728 0 3 0x82 wait syz-executor 3799 92935 58728 0 3 0x82 piperd syz-executor 11091 391195 58728 0 2 0x2 syz-executor 74025 170284 58728 0 2 0x2 syz-executor 92999 16259 58728 0 3 0x2 biowait syz-executor 97240 246679 1 0 3 0x100083 ttyin getty 36626 193539 0 0 3 0x14280 nfsidl nfsio 40636 338689 0 0 3 0x14280 nfsidl nfsio 71884 303474 0 0 3 0x14280 nfsidl nfsio 86920 257796 0 0 3 0x14280 nfsidl nfsio 43119 210196 0 0 3 0x14280 nfsidl nfsio 76853 97823 0 0 3 0x14280 nfsidl nfsio 28329 330966 0 0 3 0x14280 nfsidl nfsio 33841 73731 0 0 3 0x14280 nfsidl nfsio 38140 305903 0 0 3 0x14280 nfsidl nfsio 94969 281721 0 0 3 0x14280 nfsidl nfsio 31996 6855 0 0 3 0x14280 nfsidl nfsio 79042 3967 0 0 3 0x14280 nfsidl nfsio 32323 246993 0 0 3 0x14280 nfsidl nfsio 38688 498337 0 0 3 0x14280 nfsidl nfsio 94231 122538 0 0 3 0x14280 nfsidl nfsio 34020 485916 0 0 3 0x14280 nfsidl nfsio 29268 249067 0 0 3 0x14280 nfsidl nfsio 3427 501296 0 0 3 0x14280 nfsidl nfsio 76578 396225 0 0 3 0x14280 nfsidl nfsio 80940 499323 0 0 3 0x14280 nfsidl nfsio 28693 66970 0 0 3 0x14200 acct acct 3902 261988 0 0 3 0x14200 bored sosplice 58728 9305 81255 0 3 0x82 wait syz-executor 81255 372979 59200 0 3 0x10008a sigsusp ksh 59200 500634 25241 0 3 0x98 kqread sshd-session 25241 36666 50836 0 3 0x92 kqread sshd-session 50836 288634 1 0 3 0x88 kqread sshd 78318 459730 89239 74 3 0x1100092 bpf pflogd 89239 149615 1 0 3 0x80 sbwait pflogd 37496 248029 19082 73 2 0x1100010 syslogd 19082 290645 1 0 3 0x100082 sbwait syslogd 71903 196145 1 0 3 0x100080 kqread resolvd 59510 426628 38842 77 3 0x100092 kqread dhcpleased 40047 4589 38842 77 3 0x100092 kqread dhcpleased 38842 139692 1 0 3 0x80 kqread dhcpleased 50324 50643 0 0 3 0x14200 bored smr 58854 242875 0 0 2 0x14200 zerothread 52915 120824 0 0 3 0x14200 aiodoned aiodoned 24184 503640 0 0 3 0x14200 syncer update 37484 308234 0 0 3 0x14200 cleaner cleaner 57906 359434 0 0 3 0x14200 reaper reaper 8011 53121 0 0 3 0x14200 pgdaemon pagedaemon 84476 451381 0 0 3 0x14200 bored viomb 84566 408266 0 0 3 0x40014200 acpi0 acpi0 83065 28529 0 0 7 0x40014200 idle1 23674 521613 0 0 3 0x14200 bored softnet3 3688 266542 0 0 3 0x14200 bored softnet2 95012 458206 0 0 3 0x14200 bored softnet1 17234 441567 0 0 3 0x14200 bored softnet0 33208 461987 0 0 3 0x14200 bored systqmp 80902 289297 0 0 3 0x14200 bored systq 96478 22472 0 0 3 0x14200 tmoslp softclockmp 60496 227396 0 0 3 0x40014200 tmoslp softclock 6164 470599 0 0 3 0x40014200 idle0 1 105419 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &pmap->pm_mtx r = 0 (0xfffffd806ae0b5f0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 mtx_enter_try+0x178 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 pmap_page_remove+0xcd rcr3 machine/cpufunc.h:139 [inline] #3 pmap_page_remove+0xcd pmap_map_ptes sys/arch/amd64/amd64/pmap.c:437 [inline] #3 pmap_page_remove+0xcd sys/arch/amd64/amd64/pmap.c:1974 #4 uvm_anfree_list+0xd6 #5 amap_wipeout+0x248 sys/uvm/uvm_amap.c:502 #6 uvm_unmap_detach+0x8a sys/uvm/uvm_map.c:1353 #7 uvmspace_exec+0x44d sys/uvm/uvm_map.c:3388 #8 sys_execve+0xadb sys/kern/kern_exec.c:448 #9 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] #9 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #10 Xsyscall+0x128 Process 67829 (syz-executor) thread 0xffff80002a040cc0 (196521) Process 31590 (syz-executor) thread 0xffff80002a03ea40 (187317) Process 11091 (syz-executor) thread 0xffff80002a357470 (391195) Process 74025 (syz-executor) thread 0xffff80002a3562b8 (170284) Process 92999 (syz-executor) thread 0xffff80002a041458 (16259) Process 37496 (syslogd) thread 0xffff8000ffffd960 (248029) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10197 14202K 14605K 166960K 14352 0 pcb 17 16K 18K 166960K 633 0 rtable 196 8K 9K 166960K 4672 0 pf 40 19K 23K 166960K 602 0 ifaddr 40 8K 9K 166960K 611 0 ifgroup 55 2K 2K 166960K 637 0 sysctl 4 1K 1K 166960K 15 0 counters 64 36K 37K 166960K 370 0 ioctlops 0 0K 4K 166960K 2135 0 iov 0 0K 24K 166960K 200 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1525 96K 96K 166960K 5033 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 41 0 VM map 2 1K 1K 166960K 2 0 sem 12 1K 1K 166960K 137 0 dirhash 15 2K 3K 166960K 48 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 11 34K 97K 166960K 4664 0 sigio 0 0K 0K 166960K 64 0 proc 73 91K 140K 166960K 4301 0 subproc 91 5K 7K 166960K 1859 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 498 0 in_multi 80 6K 7K 166960K 1652 0 ether_multi 1 0K 0K 166960K 46 0 mrt 1 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 1 0K 1K 166960K 2411 0 pfkey data 0 0K 0K 166960K 6 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 191 65K 96K 166960K 35897 0 UVM aobj 60 6K 6K 166960K 69 0 pinsyscall 37 74K 106K 166960K 9079 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 98 0 NDP 12 0K 2K 166960K 442 0 temp 74 6823K 7074K 166960K 236959 0 kqueue 13 20K 31K 166960K 451 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> 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 472 0 469 1 0 1 1 0 8 0 rtentry 112 1659 0 1574 4 1 3 4 0 8 0 unpcb 144 1996 0 1979 11 10 1 4 0 8 0 syncache 336 9 0 9 2 2 0 1 0 8 0 tcpqe 32 9 0 9 2 2 0 1 0 8 0 tcpcb 808 820 0 816 14 13 1 4 0 8 0 arp 120 290 0 271 1 0 1 1 0 8 0 inpcb 336 3758 0 3751 54 50 4 13 0 8 3 nd6 136 422 0 402 1 0 1 1 0 8 0 pkpcb 40 14 0 14 7 7 0 1 0 8 0 kcovpl 48 143 0 136 1 0 1 1 0 8 0 ppxss 1168 20 0 20 8 8 0 1 0 8 0 pfstscr 40 5 0 3 1 0 1 1 0 8 0 pffrag 232 91 0 91 2 2 0 1 0 482 0 pffrnode 88 88 0 88 2 2 0 1 0 8 0 pffrent 40 322 0 322 2 2 0 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 pfanchor 1288 9 0 5 2 1 1 1 0 8 0 pftag 88 5 0 3 1 0 1 1 0 8 0 pfstitem 24 371 0 353 1 0 1 1 0 8 0 pfstkey 128 459 0 439 2 0 2 2 0 8 0 pfstate 376 412 0 396 8 3 5 6 0 8 0 pfrule 1344 54 0 46 2 1 1 2 0 8 0 art_heap8 4096 3 0 1 3 1 2 3 0 8 0 art_heap4 256 6437 0 6092 51 26 25 31 0 8 0 art_table 32 6440 0 6093 4 0 4 4 0 8 0 art_node 16 1586 0 1513 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 5 1 0 1 1 0 8 0 semapl 112 130 0 120 1 0 1 1 0 8 0 shmpl 112 66 0 9 2 0 2 2 0 8 0 dirhash 1024 43 0 23 3 0 3 3 0 8 0 dino2pl 256 6196 0 4432 111 0 111 111 0 8 0 ffsino 272 6197 0 4432 119 0 119 119 0 8 0 nchpl 144 10326 0 9618 68 40 28 66 0 8 0 uvmvnodes 80 8503 0 0 174 0 174 174 0 8 0 vnodes 216 8503 0 0 473 0 473 473 0 8 0 namei 1024 46690 0 46688 18 17 1 2 0 8 0 percpumem 16 199 0 153 1 0 1 1 0 8 0 kstatmem 264 330 0 306 4 2 2 3 0 8 0 scsiplug 72 2 0 2 2 2 0 1 0 8 0 scxspl 216 91293 0 91291 11 10 1 8 1 8 0 plimitpl 152 569 0 553 1 0 1 1 0 8 0 sigapl 424 4724 0 4659 10 1 9 9 0 8 0 futexpl 64 38956 0 38956 15 15 0 1 0 8 0 knotepl 120 1033 0 0 25 1 24 24 0 8 0 kqueuepl 216 819 0 810 10 9 1 5 0 8 0 pipepl 320 799 0 772 6 3 3 6 0 8 0 fdescpl 496 4684 0 4659 9 4 5 6 0 8 0 filepl 152 24557 0 24332 46 34 12 17 0 8 0 lockfpl 104 1086 0 1084 3 2 1 2 0 8 0 lockfspl 48 431 0 429 1 0 1 1 0 8 0 sessionpl 144 159 0 150 1 0 1 1 0 8 0 pgrppl 48 347 0 330 1 0 1 1 0 8 0 ucredpl 104 4353 0 4339 1 0 1 1 0 8 0 zombiepl 144 4734 0 4733 3 2 1 1 0 8 0 processpl 1160 4724 0 4659 8 2 6 7 0 8 0 procpl 648 8225 0 8160 12 4 8 8 0 8 1 srpgc 96 43 0 43 12 12 0 1 0 8 0 sosppl 168 39 0 39 9 9 0 1 0 8 0 sockpl 664 6315 0 6288 62 56 6 16 0 8 3 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 297 0 0 32 3 29 32 0 8 0 mtagpl 96 21 0 0 1 0 1 1 0 8 0 mbufpl 256 770 0 0 33 0 33 33 0 8 0 bufpl 280 17958 0 11466 608 53 555 608 0 8 0 anonpl 24 696833 0 686680 207 100 107 119 0 185 15 amapchunkpl 152 114267 0 113699 96 56 40 46 0 158 10 amappl16 200 15353 0 15109 141 116 25 28 0 8 0 amappl15 192 12 0 12 2 2 0 1 0 8 0 amappl14 184 381 0 369 1 0 1 1 0 8 0 amappl13 176 10 0 10 1 1 0 1 0 8 0 amappl12 168 7355 0 7331 4 2 2 3 0 8 0 amappl11 160 61 0 47 1 0 1 1 0 8 0 amappl10 152 13 0 13 1 1 0 1 0 8 0 amappl9 144 137 0 137 1 1 0 1 0 8 0 amappl8 136 23 0 20 1 0 1 1 0 8 0 amappl7 128 372 0 359 1 0 1 1 0 8 0 amappl6 120 1442 0 1439 1 0 1 1 0 8 0 amappl5 112 647 0 635 1 0 1 1 0 8 0 amappl4 104 725 0 707 1 0 1 1 0 8 0 amappl3 96 22904 0 22837 4 0 4 4 0 8 0 amappl2 88 2521 0 2451 2 0 2 2 0 8 0 amappl1 80 30050 0 29498 16 0 16 16 0 8 0 amappl 88 34340 0 34209 6 1 5 6 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 9 0 9 3 3 0 1 0 8 0 dma16 16 20 0 19 1 0 1 1 0 8 0 aobjpl 72 68 0 9 2 0 2 2 0 8 0 uaddrrnd 24 4684 0 4659 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4684 0 4659 1 0 1 1 0 8 0 vmmpekpl 168 36721 0 36653 5 1 4 4 0 8 0 vmmpepl 168 299312 0 297588 184 83 101 107 0 357 1 vmsppl 440 4683 0 4659 5 1 4 5 0 8 0 rwobjpl 56 87101 0 77437 144 5 139 140 0 8 0 pdppl 4096 9375 0 9318 302 229 73 87 0 8 16 pvpl 32 40768 0 0 328 2 326 326 0 265 0 pmappl 248 4683 0 4659 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 758 0 352 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pmap_page_remove(fffffd8007e788e0) at pmap_page_remove+0x45d _atomic_swap_64 machine/atomic.h:117 [inline] pmap_page_remove(fffffd8007e788e0) at pmap_page_remove+0x45d sys/arch/amd64/amd64/pmap.c:2014 uvm_anfree_list(fffffd8068b8bab0,0) at uvm_anfree_list+0xd6 amap_wipeout(fffffd80773820c8) at amap_wipeout+0x248 sys/uvm/uvm_amap.c:502 uvm_unmap_detach(ffff800030e213e8,0) at uvm_unmap_detach+0x8a sys/uvm/uvm_map.c:1353 uvmspace_exec(ffff80002a040cc0,1000,7f7fffffc000) at uvmspace_exec+0x44d sys/uvm/uvm_map.c:3388 sys_execve(ffff80002a040cc0,ffff800030e21a80,ffff800030e219d0) at sys_execve+0xadb sys/kern/kern_exec.c:448 syscall(ffff800030e21a80) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800030e21a80) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x793ae92447f0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029b7bff0) 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 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1219 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800029b7bff0) 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 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1219 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: -5