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 *453092 39147 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8246beeb) at panic+0x177 sys/kern/subr_prf.c:202 pmap_remove_ptes(fffffd807264b008,fffffd8006f46820,7fbfbffff000,7f7fffe00000,7f7fffefc000,0,7c1d6d8fd100b2e0) at pmap_remove_ptes+0x33e pmap_do_remove(fffffd807264b008,7f7fff7fc000,7f7fffefc000,0) at pmap_do_remove+0x416 sys/arch/amd64/amd64/pmap.c:1865 uvm_unmap_kill_entry_withlock(fffffd8062f96300,fffffd8064ce5bf0,0) at uvm_unmap_kill_entry_withlock+0x1af sys/uvm/uvm_map.c:2139 uvm_map_teardown(fffffd8062f96300) at uvm_map_teardown+0x197 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd8062f96300) at uvm_map_teardown+0x197 sys/uvm/uvm_map.c:2771 uvmspace_free(fffffd8062f96300) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685 reaper(ffff8000211497a0) at reaper+0x18b 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va 0x7f7fffe16000, opte 0xffffffffffffffff ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8246beeb) at panic+0x177 sys/kern/subr_prf.c:202 pmap_remove_ptes(fffffd807264b008,fffffd8006f46820,7fbfbffff000,7f7fffe00000,7f7fffefc000,0,7c1d6d8fd100b2e0) at pmap_remove_ptes+0x33e pmap_do_remove(fffffd807264b008,7f7fff7fc000,7f7fffefc000,0) at pmap_do_remove+0x416 sys/arch/amd64/amd64/pmap.c:1865 uvm_unmap_kill_entry_withlock(fffffd8062f96300,fffffd8064ce5bf0,0) at uvm_unmap_kill_entry_withlock+0x1af sys/uvm/uvm_map.c:2139 uvm_map_teardown(fffffd8062f96300) at uvm_map_teardown+0x197 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd8062f96300) at uvm_map_teardown+0x197 sys/uvm/uvm_map.c:2771 uvmspace_free(fffffd8062f96300) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685 reaper(ffff8000211497a0) at reaper+0x18b sys/kern/kern_exit.c:462 end trace frame: 0x0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000211855c0 rbx 0xffffffff827abbff cpu_info_full_primary+0x2bff rdx 0 rcx 0 rax 0xffff8000211497a0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xdc483714c650609b r11 0x1a66221c4e76c326 r12 0xffffffff827aba00 cpu_info_full_primary+0x2a00 r13 0 r14 0 r15 0x1 rip 0xffffffff814f5f98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000211855b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) pid=453092 stat=onproc flags process=14000 proc=200 pri=4, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800021149260,0xffff800021149cf0 process=0xffff8000ffffd4c8 user=0xffff800021180000, vmspace=0xffffffff829f0b10 estcpu=0, cpticks=1, pctcpu=0.1 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 8781 382264 26302 0 3 0x82 nanoslp syz-executor.1 97258 22225 26302 0 3 0x82 piperd syz-executor.0 72479 498437 1 0 3 0x100083 ttyin getty 49345 294536 0 0 3 0x14200 acct acct 62735 494292 0 0 3 0x14200 bored sosplice 26302 489881 39015 0 3 0x82 thrsleep syz-fuzzer 26302 405342 39015 0 3 0x4000082 thrsleep syz-fuzzer 26302 178461 39015 0 3 0x4000082 kqread syz-fuzzer 26302 162139 39015 0 3 0x4000082 thrsleep syz-fuzzer 26302 5356 39015 0 3 0x4000082 thrsleep syz-fuzzer 26302 255041 39015 0 3 0x4000082 thrsleep syz-fuzzer 26302 347567 39015 0 3 0x4000082 thrsleep syz-fuzzer 26302 398566 39015 0 3 0x4000082 thrsleep syz-fuzzer 39015 36064 35862 0 3 0x10008a sigsusp ksh 35862 220259 41019 0 3 0x9a poll sshd 41019 77379 1 0 3 0x88 poll sshd 94081 351402 41020 74 3 0x100092 bpf pflogd 41020 415740 1 0 3 0x80 netio pflogd 19601 14515 87609 73 3 0x100090 kqread syslogd 87609 218107 1 0 3 0x100082 netio syslogd 51520 189999 1 0 3 0x100080 kqread resolvd 14706 94357 70364 77 3 0x100092 kqread dhcpleased 65215 452631 70364 77 3 0x100092 kqread dhcpleased 70364 488246 1 0 3 0x80 kqread dhcpleased 43221 474896 0 0 3 0x14200 bored smr 16305 33881 0 0 3 0x14200 pgzero zerothread 82603 182383 0 0 3 0x14200 aiodoned aiodoned 38543 135767 0 0 3 0x14200 syncer update 313 355784 0 0 3 0x14200 cleaner cleaner *39147 453092 0 0 7 0x14200 reaper 44115 238609 0 0 3 0x14200 pgdaemon pagedaemon 98995 74004 0 0 3 0x14200 bored viomb 75206 217872 0 0 3 0x40014200 acpi0 acpi0 12410 455380 0 0 7 0x40014200 idle1 82917 291900 0 0 3 0x14200 bored softnet 89007 172867 0 0 3 0x14200 bored systqmp 12473 174045 0 0 3 0x14200 bored systq 18301 79911 0 0 3 0x40014200 bored softclock 57192 116703 0 0 3 0x40014200 idle0 1 140413 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 (0xfffffd807264b018) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pmap_do_remove+0x8b rcr3 machine/cpufunc.h:141 [inline] #3 pmap_do_remove+0x8b pmap_map_ptes sys/arch/amd64/amd64/pmap.c:414 [inline] #3 pmap_do_remove+0x8b sys/arch/amd64/amd64/pmap.c:1769 #4 uvm_unmap_kill_entry_withlock+0x1af sys/uvm/uvm_map.c:2139 #5 uvm_map_teardown+0x197 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] #5 uvm_map_teardown+0x197 sys/uvm/uvm_map.c:2771 #6 uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685 #7 reaper+0x18b sys/kern/kern_exit.c:462 #8 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10176 6488K 8081K 78643K 52737 0 pcb 13 20K 25K 78643K 5143 0 rtable 150 25K 26K 78643K 9865 0 ifaddr 74 24K 28K 78643K 3010 0 sysctl 2 0K 2K 78643K 7 0 counters 46 34K 34K 78643K 784 0 ioctlops 0 0K 4K 78643K 11679 0 iov 0 0K 24K 78643K 2373 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1486 93K 94K 78643K 18130 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 206 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 5400 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 4 9K 25K 78643K 29515 0 sigio 0 0K 0K 78643K 215 0 proc 71 87K 111K 78643K 5465 0 subproc 26 1K 1K 78643K 1909 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 3267 0 in_multi 25 1K 2K 78643K 3587 0 ether_multi 1 0K 0K 78643K 330 0 mrt 1 0K 0K 78643K 74 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 259 1155K 1155K 78643K 259 0 exec 0 0K 2K 78643K 6705 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 537 1430K 1430K 78643K 354676 0 UVM aobj 131 4K 4K 78643K 136 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1779 0 NDP 8 0K 0K 78643K 878 0 temp 108 4229K 4725K 78643K 282270 0 kqueue 10 14K 22K 78643K 1154 0 SYN cache 2 0K 16K 78643K 4 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 1989 0 1986 26 25 1 3 0 8 0 rtentry 112 2704 0 2673 3 1 2 2 0 8 0 unpcb 128 16312 0 16297 193 192 1 9 0 8 0 syncache 296 126 0 126 38 38 0 1 0 8 0 tcpqe 32 29 139 29 11 11 0 1 0 8 0 tcpcb 736 9800 0 9787 339 334 5 19 0 8 3 arp 120 332 0 326 1 0 1 1 0 8 0 inpcb 304 70613 0 70600 531 524 7 16 0 8 5 rttmr 72 32 0 32 10 10 0 1 0 8 0 nd6 48 678 0 676 1 0 1 1 0 8 0 pkpcb 40 334 0 334 14 14 0 2 0 8 0 kcovpl 48 146 0 144 1 0 1 1 0 8 0 ppxss 1248 39 0 39 11 11 0 1 0 8 0 pfstscr 40 21 0 21 5 5 0 1 0 8 0 pffrag 232 718 0 718 21 21 0 1 0 482 0 pffrnode 88 717 0 717 21 21 0 1 0 8 0 pffrent 40 7576 0 7576 25 25 0 1 0 8 0 pfosfp 40 1432 0 1008 5 0 5 5 0 8 0 pfosfpen 112 1432 0 717 21 0 21 21 0 8 0 pfrktable 1344 1191 0 1165 11 8 3 3 0 8 0 pftag 88 150 0 148 4 3 1 1 0 8 0 pfqueue 264 3 0 3 1 1 0 1 0 8 0 pfstitem 24 36 0 34 1 0 1 1 0 8 0 pfstkey 112 212 0 210 1 0 1 1 0 8 0 pfstate 320 124 0 122 3 2 1 3 0 8 0 pfsrctr 152 68 0 68 6 6 0 1 0 8 0 pfrule 1360 1850 0 1765 9 1 8 8 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 12994 0 12840 51 39 12 13 0 8 0 art_table 32 12995 0 12840 2 0 2 2 0 8 0 art_node 16 2697 0 2671 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 3 1 1 0 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 5398 0 5388 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 39169 0 37741 92 2 90 90 0 8 0 ffsino 272 39169 0 37741 97 1 96 96 0 8 0 nchpl 144 76319 0 74715 61 1 60 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 289939 0 289939 12 11 1 1 0 8 1 percpumem 16 404 0 369 1 0 1 1 0 8 0 vcpupl 2048 477 0 3 60 0 60 60 0 8 0 vmpool 560 514 0 40 35 1 34 34 0 8 0 pfiaddrpl 120 394 0 351 3 1 2 2 0 8 0 scsiplug 72 7 0 7 2 2 0 1 0 8 0 scxspl 216 229786 0 229786 23 22 1 8 0 8 1 plimitpl 152 3151 0 3142 1 0 1 1 0 8 0 sigapl 424 29382 0 29349 11 7 4 7 0 8 0 futexpl 64 283033 0 283033 13 12 1 1 0 8 1 knotepl 112 114 0 0 2 0 2 2 0 8 0 kqueuepl 216 7109 0 7097 167 164 3 8 0 8 2 pipepl 336 6247 0 6237 212 210 2 10 0 8 0 fdescpl 496 29325 0 29308 3 0 3 3 0 8 0 filepl 152 249773 0 249667 448 437 11 16 0 8 6 lockfpl 104 6785 0 6783 10 9 1 2 0 8 0 lockfspl 48 2046 0 2044 1 0 1 1 0 8 0 sessionpl 144 168 0 157 1 0 1 1 0 8 0 pgrppl 48 352 0 341 1 0 1 1 0 8 0 ucredpl 96 22962 0 22948 1 0 1 1 0 8 0 zombiepl 144 29349 0 29348 4 3 1 1 0 8 0 processpl 1064 29382 0 29348 4 1 3 4 0 8 0 procpl 672 74335 0 74294 86 81 5 7 0 8 0 srpgc 96 178 0 178 27 27 0 1 0 8 0 sosppl 168 228 0 228 41 41 0 1 0 8 0 sockpl 480 89347 0 89316 1464 1453 11 34 0 8 6 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 13 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 13 0 0 1 0 1 1 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 18 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 273 0 0 19 4 15 19 0 8 0 mtagpl 96 1488 0 0 9 3 6 9 0 8 0 mbufpl 256 8465 0 0 422 0 422 422 0 8 0 bufpl 288 51090 0 44746 454 0 454 454 0 8 0 anonpl 24 8169354 0 8146134 592 444 148 177 0 186 0 amapchunkpl 152 915285 0 914554 277 247 30 43 0 158 1 amappl16 200 83926 0 82955 311 257 54 69 0 8 0 amappl15 192 6261 0 6255 1 0 1 1 0 8 0 amappl14 184 1793 0 1792 1 0 1 1 0 8 0 amappl13 176 3823 0 3821 1 0 1 1 0 8 0 amappl12 168 4801 0 4793 1 0 1 1 0 8 0 amappl11 160 3586 0 3571 1 0 1 1 0 8 0 amappl10 152 1595 0 1587 1 0 1 1 0 8 0 amappl9 144 4445 0 4441 1 0 1 1 0 8 0 amappl8 136 7722 0 7622 5 1 4 4 0 8 0 amappl7 128 5577 0 5565 1 0 1 1 0 8 0 amappl6 120 4969 0 4948 1 0 1 1 0 8 0 amappl5 112 23922 0 23907 1 0 1 1 0 8 0 amappl4 104 9216 0 9184 1 0 1 1 0 8 0 amappl3 96 9252 0 9232 1 0 1 1 0 8 0 amappl2 88 6939 0 6881 5 3 2 2 0 8 0 amappl1 80 511349 0 510898 17 7 10 13 0 8 0 amappl 88 351430 0 351147 9 2 7 7 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 29839 0 29348 3 0 3 3 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 29839 0 29348 3 0 3 3 0 8 0 vmmpekpl 168 158730 0 158667 5 1 4 4 0 8 0 vmmpepl 168 2679967 0 2676517 1095 938 157 182 0 357 0 vmsppl 368 29838 0 29347 45 0 45 45 0 8 0 rwobjpl 56 622839 0 614844 174 60 114 117 0 8 0 pdppl 4096 59686 0 59168 583 64 519 522 0 8 1 pvpl 32 13941909 0 13920645 996 814 182 238 0 265 3 pmappl 248 29838 0 29347 33 2 31 31 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 2414 0 669 53 2 51 51 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8246beeb) at panic+0x177 sys/kern/subr_prf.c:202 pmap_remove_ptes(fffffd807264b008,fffffd8006f46820,7fbfbffff000,7f7fffe00000,7f7fffefc000,0,7c1d6d8fd100b2e0) at pmap_remove_ptes+0x33e pmap_do_remove(fffffd807264b008,7f7fff7fc000,7f7fffefc000,0) at pmap_do_remove+0x416 sys/arch/amd64/amd64/pmap.c:1865 uvm_unmap_kill_entry_withlock(fffffd8062f96300,fffffd8064ce5bf0,0) at uvm_unmap_kill_entry_withlock+0x1af sys/uvm/uvm_map.c:2139 uvm_map_teardown(fffffd8062f96300) at uvm_map_teardown+0x197 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd8062f96300) at uvm_map_teardown+0x197 sys/uvm/uvm_map.c:2771 uvmspace_free(fffffd8062f96300) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685 reaper(ffff8000211497a0) at reaper+0x18b sys/kern/kern_exit.c:462 end trace frame: 0x0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020d38ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020d38ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5