panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va 0x7f7fffe16000, opte 0xffffffffffffffff Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *470619 37845 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff82442358) at panic+0x161 sys/kern/subr_prf.c:202 pmap_remove_ptes(fffffd807580bd98,fffffd80063dd600,7fbfbffff000,7f7fffe00000,7f7fffefc000,0,a5c5824384165c4b) at pmap_remove_ptes+0x32e pmap_do_remove(fffffd807580bd98,7f7fff7fc000,7f7fffefc000,0) at pmap_do_remove+0x438 sys/arch/amd64/amd64/pmap.c:1865 uvm_unmap_kill_entry_withlock(fffffd807667e118,fffffd80682a9eb8,0) at uvm_unmap_kill_entry_withlock+0x1a2 sys/uvm/uvm_map.c:2139 uvm_map_teardown(fffffd807667e118) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd807667e118) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2771 uvmspace_free(fffffd807667e118) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3685 reaper(ffff8000ffffea80) at reaper+0x15e sys/kern/kern_exit.c:462 end trace frame: 0x0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va 0x7f7fffe16000, opte 0xffffffffffffffff ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff82442358) at panic+0x161 sys/kern/subr_prf.c:202 pmap_remove_ptes(fffffd807580bd98,fffffd80063dd600,7fbfbffff000,7f7fffe00000,7f7fffefc000,0,a5c5824384165c4b) at pmap_remove_ptes+0x32e pmap_do_remove(fffffd807580bd98,7f7fff7fc000,7f7fffefc000,0) at pmap_do_remove+0x438 sys/arch/amd64/amd64/pmap.c:1865 uvm_unmap_kill_entry_withlock(fffffd807667e118,fffffd80682a9eb8,0) at uvm_unmap_kill_entry_withlock+0x1a2 sys/uvm/uvm_map.c:2139 uvm_map_teardown(fffffd807667e118) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd807667e118) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2771 uvmspace_free(fffffd807667e118) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3685 reaper(ffff8000ffffea80) at reaper+0x15e sys/kern/kern_exit.c:462 end trace frame: 0x0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002160de10 rbx 0xfffffd80063dd600 rdx 0 rcx 0 rax 0xffff8000ffffea80 r8 0x101010101010101 r9 0x8080808080808080 r10 0x58b1024df1099a04 r11 0xa366b2f7d52c6f4a r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff8182b998 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002160de00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (reaper) pid=470619 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffffe540,0xffff8000fffffa50 process=0xffff8000ffffabc0 user=0xffff800021609000, vmspace=0xffffffff8291ad10 estcpu=1, cpticks=4, pctcpu=0.25 user=0, sys=3, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 80078 304943 64658 0 3 0x82 nanoslp syz-executor.1 43621 418337 64658 0 3 0x82 nanoslp syz-executor.0 38008 15038 64658 0 3 0x82 nanoslp syz-executor.3 58696 479345 64658 0 3 0x82 nanoslp syz-executor.2 50422 496928 1 0 3 0x100083 ttyin getty 6870 76542 0 0 3 0x14280 nfsidl nfsio 10124 46609 0 0 3 0x14280 nfsidl nfsio 89378 113705 0 0 3 0x14280 nfsidl nfsio 62624 411436 0 0 3 0x14280 nfsidl nfsio 29567 159265 0 0 3 0x14280 nfsidl nfsio 11927 33471 0 0 3 0x14280 nfsidl nfsio 80862 485771 0 0 3 0x14200 bored sosplice 64658 24140 68832 0 3 0x82 thrsleep syz-fuzzer 64658 3763 68832 0 3 0x4000082 thrsleep syz-fuzzer 64658 383594 68832 0 3 0x4000082 thrsleep syz-fuzzer 64658 1807 68832 0 3 0x4000082 thrsleep syz-fuzzer 64658 266683 68832 0 3 0x4000082 thrsleep syz-fuzzer 64658 121782 68832 0 3 0x4000082 kqread syz-fuzzer 68832 276570 59042 0 3 0x10008a sigsusp ksh 59042 390151 51961 0 3 0x9a poll sshd 51961 45319 1 0 3 0x88 poll sshd 52352 234034 32727 73 3 0x100090 kqread syslogd 32727 422724 1 0 3 0x100082 netio syslogd 70209 172971 1 0 3 0x100080 kqread resolvd 67994 50549 7543 77 3 0x100092 kqread dhcpleased 72093 178612 7543 77 3 0x100092 kqread dhcpleased 7543 485167 1 0 3 0x80 kqread dhcpleased 291 240290 0 0 3 0x14200 bored smr 30369 96594 0 0 2 0x14200 zerothread 18448 204928 0 0 3 0x14200 aiodoned aiodoned 72205 102199 0 0 3 0x14200 syncer update 47732 58944 0 0 3 0x14200 cleaner cleaner *37845 470619 0 0 7 0x14200 reaper 39140 131429 0 0 3 0x14200 pgdaemon pagedaemon 40616 151932 0 0 3 0x14200 bored viomb 77422 176958 0 0 3 0x40014200 acpi0 acpi0 46695 205536 0 0 3 0x14200 bored softnet 71687 271020 0 0 3 0x14200 bored systqmp 82242 204082 0 0 3 0x14200 bored systq 36322 231692 0 0 3 0x40014200 bored softclock 15678 366602 0 0 3 0x40014200 idle0 1 495716 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10155 6404K 7045K 78643K 16011 0 pcb 13 16K 18K 78643K 1972 0 rtable 121 12K 13K 78643K 719 0 ifaddr 60 14K 15K 78643K 566 0 sysctl 2 0K 0K 78643K 2 0 counters 24 17K 17K 78643K 122 0 ioctlops 0 0K 4K 78643K 451 0 iov 0 0K 24K 78643K 441 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1290 81K 81K 78643K 3901 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 215 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 1211 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 6 17K 49K 78643K 9509 0 sigio 0 0K 0K 78643K 28 0 proc 59 55K 79K 78643K 805 0 subproc 52 3K 3K 78643K 182 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 2921 0 in_multi 44 2K 3K 78643K 1006 0 ether_multi 1 0K 0K 78643K 702 0 mrt 1 0K 0K 78643K 9 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 67 307K 307K 78643K 67 0 exec 0 0K 2K 78643K 873 0 pfkey data 0 0K 0K 78643K 3 0 tdb 3 0K 0K 78643K 3 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 272 249K 250K 78643K 114616 0 UVM aobj 131 5K 5K 78643K 136 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 267 0 NDP 9 0K 1K 78643K 142 0 temp 102 4194K 4265K 78643K 52539 0 kqueue 10 14K 22K 78643K 169 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 235 0 232 4 3 1 3 0 8 0 rtentry 112 226 0 179 2 0 2 2 0 8 0 unpcb 136 2609 0 2596 37 36 1 6 0 8 0 syncache 296 35 0 35 8 8 0 1 0 8 0 tcpqe 32 485 0 485 6 6 0 1 0 8 0 tcpcb 736 4561 0 4535 98 95 3 18 0 8 0 arp 88 38 0 30 1 0 1 1 0 8 0 ipq 40 14 0 13 4 3 1 1 0 8 0 ipqe 40 61 0 60 4 3 1 1 0 8 0 inpcb 304 10588 0 10581 76 75 1 12 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 1 0 1 1 1 0 1 0 8 0 nd6 48 52 0 43 1 0 1 1 0 8 0 pkpcb 40 8 0 8 4 4 0 1 0 8 0 kcovpl 48 14 0 10 1 0 1 1 0 8 0 ppxss 1152 3 0 3 2 2 0 1 0 8 0 pfrktable 1344 4 0 4 1 1 0 1 0 8 0 pfrule 1360 10 0 9 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 975 0 747 22 7 15 18 0 8 0 art_table 32 976 0 747 3 0 3 3 0 8 0 art_node 16 225 0 187 1 0 1 1 0 8 0 sysvmsgpl 40 65 0 25 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1207 0 1197 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 13560 0 12156 89 0 89 89 0 8 0 ffsino 240 13560 0 12156 83 0 83 83 0 8 0 nchpl 144 24711 0 23114 61 0 61 61 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 224 5926 0 0 349 0 349 349 0 8 0 namei 1024 66438 0 66438 1 0 1 1 0 8 1 vcpupl 1984 46 0 1 6 0 6 6 0 8 0 vmpool 528 46 0 1 4 0 4 4 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 79703 0 79703 12 11 1 8 0 8 1 plimitpl 152 133 0 123 1 0 1 1 0 8 0 sigapl 424 9712 0 9675 8 3 5 7 0 8 0 futexpl 64 66080 0 66080 1 0 1 1 0 8 1 knotepl 112 1405 0 1355 3 1 2 3 0 8 0 kqueuepl 184 4321 0 4310 34 30 4 6 0 8 2 pipepl 304 1276 0 1260 38 36 2 11 0 8 0 fdescpl 432 9678 0 9661 3 0 3 3 0 8 0 filepl 120 48443 0 48298 74 67 7 12 0 8 2 lockfpl 104 852 0 850 2 1 1 2 0 8 0 lockfspl 48 306 0 304 1 0 1 1 0 8 0 sessionpl 144 32 0 20 1 0 1 1 0 8 0 pgrppl 48 43 0 31 1 0 1 1 0 8 0 ucredpl 96 2476 0 2466 1 0 1 1 0 8 0 zombiepl 144 9675 0 9671 1 0 1 1 0 8 0 processpl 1000 9712 0 9671 7 1 6 7 0 8 0 procpl 672 21929 0 21883 16 11 5 6 0 8 0 sosppl 168 26 0 26 7 7 0 1 0 8 0 sockpl 448 13442 0 13419 199 196 3 25 0 8 0 mcl64k 65536 158 0 158 16 15 1 1 0 8 1 mcl16k 16384 34 0 34 11 11 0 1 0 8 0 mcl12k 12288 154 0 154 18 18 0 1 0 8 0 mcl9k 9216 121 0 121 20 19 1 1 0 8 1 mcl8k 8192 372 0 372 16 15 1 1 0 8 1 mcl4k 4096 559 0 559 13 12 1 1 0 8 1 mcl2k2 2112 57 0 57 17 16 1 1 0 8 1 mcl2k 2048 90800 0 90731 46 36 10 19 0 8 0 mtagpl 96 754 0 753 10 9 1 8 0 8 0 mbufpl 256 205692 0 205472 81 56 25 65 0 8 0 bufpl 288 15745 0 9329 459 0 459 459 0 8 0 anonpl 24 2500308 0 2482296 192 54 138 138 0 188 24 amapchunkpl 152 272800 0 272178 56 28 28 35 0 158 1 amappl16 200 21579 0 20943 92 50 42 47 0 8 8 amappl15 192 4598 0 4594 1 0 1 1 0 8 0 amappl14 184 755 0 753 1 0 1 1 0 8 0 amappl13 176 161 0 160 1 0 1 1 0 8 0 amappl12 168 224 0 223 1 0 1 1 0 8 0 amappl11 160 95 0 85 1 0 1 1 0 8 0 amappl10 152 1827 0 1820 1 0 1 1 0 8 0 amappl9 144 260 0 257 1 0 1 1 0 8 0 amappl8 136 2671 0 2605 3 0 3 3 0 8 0 amappl7 128 2178 0 2168 1 0 1 1 0 8 0 amappl6 120 201 0 184 1 0 1 1 0 8 0 amappl5 112 11487 0 11470 1 0 1 1 0 8 0 amappl4 104 920 0 895 1 0 1 1 0 8 0 amappl3 96 762 0 746 1 0 1 1 0 8 0 amappl2 88 832 0 793 2 0 2 2 0 8 0 amappl1 80 163318 0 162886 17 6 11 12 0 8 0 amappl 88 113996 0 113827 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 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 72 135 0 5 3 0 3 3 0 8 0 uaddrrnd 24 9724 0 9662 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 9724 0 9662 1 0 1 1 0 8 0 vmmpekpl 168 59173 0 59140 2 0 2 2 0 8 0 vmmpepl 168 838226 0 836236 209 100 109 118 0 357 14 vmsppl 272 9723 0 9661 5 0 5 5 0 8 0 rwobjpl 24 193167 0 185696 47 0 47 47 0 8 1 pdppl 4096 19454 0 19367 127 34 93 94 0 8 6 pvpl 32 4264314 0 4244196 324 116 208 219 0 265 35 pmappl 216 9723 0 9661 4 0 4 4 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 1274 0 479 25 0 25 25 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff82442358) at panic+0x161 sys/kern/subr_prf.c:202 pmap_remove_ptes(fffffd807580bd98,fffffd80063dd600,7fbfbffff000,7f7fffe00000,7f7fffefc000,0,a5c5824384165c4b) at pmap_remove_ptes+0x32e pmap_do_remove(fffffd807580bd98,7f7fff7fc000,7f7fffefc000,0) at pmap_do_remove+0x438 sys/arch/amd64/amd64/pmap.c:1865 uvm_unmap_kill_entry_withlock(fffffd807667e118,fffffd80682a9eb8,0) at uvm_unmap_kill_entry_withlock+0x1a2 sys/uvm/uvm_map.c:2139 uvm_map_teardown(fffffd807667e118) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd807667e118) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2771 uvmspace_free(fffffd807667e118) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3685 reaper(ffff8000ffffea80) at reaper+0x15e sys/kern/kern_exit.c:462 end trace frame: 0x0, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff82442358) at panic+0x161 sys/kern/subr_prf.c:202 pmap_remove_ptes(fffffd807580bd98,fffffd80063dd600,7fbfbffff000,7f7fffe00000,7f7fffefc000,0,a5c5824384165c4b) at pmap_remove_ptes+0x32e pmap_do_remove(fffffd807580bd98,7f7fff7fc000,7f7fffefc000,0) at pmap_do_remove+0x438 sys/arch/amd64/amd64/pmap.c:1865 uvm_unmap_kill_entry_withlock(fffffd807667e118,fffffd80682a9eb8,0) at uvm_unmap_kill_entry_withlock+0x1a2 sys/uvm/uvm_map.c:2139 uvm_map_teardown(fffffd807667e118) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd807667e118) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2771 uvmspace_free(fffffd807667e118) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3685 reaper(ffff8000ffffea80) at reaper+0x15e sys/kern/kern_exit.c:462 end trace frame: 0x0, count: -8