panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va 0x74bdae216000, opte 0xffffffffffffffff Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *517972 3957 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8306b2c7) at panic+0x1e5 sys/kern/subr_prf.c:198 pmap_remove_pte(fffffd806e019100,fffffd80075d1c00,7fba5ed71000,74bdae200000,74bdae217000,0) at pmap_remove_pte pmap_do_remove(fffffd806e019100,74bdadb17000,74bdae217000,0) at pmap_do_remove+0x533 sys/arch/amd64/amd64/pmap.c:1909 uvm_unmap_kill_entry_withlock(fffffd806c6606f8,fffffd806ce8ea18,0) at uvm_unmap_kill_entry_withlock+0x274 sys/uvm/uvm_map.c:1883 uvm_map_teardown(fffffd806c6606f8) at uvm_map_teardown+0x267 sys/uvm/uvm_map.c:2520 uvmspace_free(fffffd806c6606f8) at uvmspace_free+0xe8 sys/uvm/uvm_map.c:3447 reaper(ffff800029fd9448) at reaper+0x25b sys/kern/kern_exit.c:480 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 0x74bdae216000, opte 0xffffffffffffffff ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8306b2c7) at panic+0x1e5 sys/kern/subr_prf.c:198 pmap_remove_pte(fffffd806e019100,fffffd80075d1c00,7fba5ed71000,74bdae200000,74bdae217000,0) at pmap_remove_pte pmap_do_remove(fffffd806e019100,74bdadb17000,74bdae217000,0) at pmap_do_remove+0x533 sys/arch/amd64/amd64/pmap.c:1909 uvm_unmap_kill_entry_withlock(fffffd806c6606f8,fffffd806ce8ea18,0) at uvm_unmap_kill_entry_withlock+0x274 sys/uvm/uvm_map.c:1883 uvm_map_teardown(fffffd806c6606f8) at uvm_map_teardown+0x267 sys/uvm/uvm_map.c:2520 uvmspace_free(fffffd806c6606f8) at uvmspace_free+0xe8 sys/uvm/uvm_map.c:3447 reaper(ffff800029fd9448) at reaper+0x25b sys/kern/kern_exit.c:480 end trace frame: 0x0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800029fe56a0 rbx 0xffffffff834a3d87 cpu_info_full_primary+0x2d87 rdx 0 rcx 0xffff800029fd9448 rax 0xffffffff834a2ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x3e73ffae544f011d r11 0xe7b38e91c741c91e r12 0xffffffff834a3b88 cpu_info_full_primary+0x2b88 r13 0 r14 0 r15 0x1 rip 0xffffffff813bf665 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800029fe5690 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) tid=517972 pid=3957 tcnt=1 stat=onproc flags process=14000 proc=200 runpri=4, usrpri=73, slppri=4, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800029fd96d0,0xffff800029fd91d0 process=0xffff800029feb608 user=0xffff800029fe0000, vmspace=0xffffffff834f66f0 estcpu=23, cpticks=3, pctcpu=13.58, user=0, sys=6785, intr=122 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 79967 475319 5401 0 2 0x8000000 syz-executor 79967 94110 5401 0 3 0xc000080 fsleep syz-executor 21555 246972 9974 0 3 0x8000080 nanoslp syz-executor 21555 227428 9974 0 3 0xc000080 kqsel syz-executor 21555 200595 9974 0 3 0xc000080 fsleep syz-executor 97739 87462 68178 0 2 0x8000000 syz-executor 97739 68795 68178 0 3 0xc000080 fsleep syz-executor 28545 492547 18291 60928 3 0x8000090 nanoslp syz-executor 28545 497681 18291 60928 3 0xc000090 sbwait syz-executor 2826 273977 93111 0 3 0x8000080 nanoslp syz-executor 2826 191535 93111 0 3 0xc000080 piperd syz-executor 2826 368827 93111 0 3 0xc000080 fsleep syz-executor 2826 312173 93111 0 3 0xc000080 fsleep syz-executor 18291 79795 31723 0 3 0x8000082 nanoslp syz-executor 68178 389852 31723 0 3 0x8000082 nanoslp syz-executor 93111 192562 31723 0 3 0x8000082 nanoslp syz-executor 56667 97951 31723 0 3 0x8000082 nanoslp syz-executor 45144 472972 31723 0 3 0x8000082 nanoslp syz-executor 47339 143164 31723 0 3 0x8000082 wait syz-executor 5401 260126 31723 0 3 0x8000082 nanoslp syz-executor 9974 430224 31723 0 3 0x8000082 nanoslp syz-executor 7359 213154 0 0 3 0x14200 acct acct 59315 66534 0 0 3 0x14200 bored sosplice 31723 59729 59381 0 3 0x8000082 kqread syz-executor 59381 228877 21318 0 3 0x810008a sigsusp ksh 21318 66788 65272 0 3 0x18000098 kqread sshd-session 65272 7700 35377 0 3 0x18000092 kqread sshd-session 5064 70030 1 0 3 0x18100083 ttyopn getty 35377 106311 1 0 3 0x18000088 kqread sshd 97505 101224 74822 74 3 0x19100092 bpf pflogd 74822 478145 1 0 3 0x18000080 sbwait pflogd 56201 308561 55424 73 3 0x19100090 kqread syslogd 55424 368471 1 0 3 0x18100082 sbwait syslogd 89928 409024 1 0 3 0x18100080 kqread resolvd 63024 472727 28135 77 3 0x18100092 kqread dhcpleased 5423 400313 28135 77 3 0x18100092 kqread dhcpleased 28135 363070 1 0 3 0x18000080 kqread dhcpleased 16765 336572 0 0 3 0x14200 bored smr 23750 172161 0 0 2 0x14200 zerothread 86339 99073 0 0 3 0x14200 aiodoned aiodoned 81032 232596 0 0 3 0x14200 syncer update 21916 17976 0 0 3 0x14200 cleaner cleaner * 3957 517972 0 0 7 0x14200 reaper 95977 10320 0 0 3 0x14200 pgdaemon pagedaemon 5978 161941 0 0 3 0x14200 bored viomb 66581 317358 0 0 3 0x40014200 acpi0 acpi0 69378 39057 0 0 7 0x40014200 idle1 60819 217004 0 0 3 0x14200 bored softnet3 89818 462276 0 0 3 0x14200 bored softnet2 67023 482342 0 0 3 0x14200 bored softnet1 8909 511097 0 0 3 0x14200 bored softnet0 22540 423655 0 0 3 0x14200 bored systqmp 18339 283153 0 0 3 0x14200 bored systq 96069 518560 0 0 3 0x14200 tmoslp softclockmp 91861 206348 0 0 3 0x40014200 tmoslp softclock 2781 315495 0 0 3 0x40014200 idle0 1 221021 0 0 3 0x8000082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &pmap->pm_mtx r = 0 (0xfffffd806e019110) #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:430 [inline] #3 pmap_do_remove+0xa9 sys/arch/amd64/amd64/pmap.c:1813 #4 uvm_unmap_kill_entry_withlock+0x274 sys/uvm/uvm_map.c:1883 #5 uvm_map_teardown+0x267 sys/uvm/uvm_map.c:2520 #6 uvmspace_free+0xe8 sys/uvm/uvm_map.c:3447 #7 reaper+0x25b sys/kern/kern_exit.c:480 #8 proc_trampoline+0x10 Process 3957 (reaper) thread 0xffff800029fd9448 (517972) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10234 10567K 10764K 166960K 12975 0 pcb 18 15K 16K 166960K 264 0 rtable 232 8K 8K 166960K 1467 0 pf 43 11K 12K 166960K 154 0 ifaddr 48 15K 16K 166960K 203 0 ifgroup 73 3K 3K 166960K 241 0 sysctl 1 0K 1K 166960K 3 0 counters 72 37K 37K 166960K 164 0 ioctlops 0 0K 4K 166960K 1682 0 iov 1 12K 20K 166960K 109 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1466 92K 93K 166960K 2832 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 18 0 VM map 2 1K 1K 166960K 2 0 sem 24 3K 3K 166960K 35 0 dirhash 15 2K 3K 166960K 51 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 17 61K 93K 166960K 1373 0 sigio 0 0K 0K 166960K 49 0 proc 70 91K 116K 166960K 1535 0 subproc 104 6K 6K 166960K 533 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 115 0 in_multi 95 7K 7K 166960K 497 0 ether_multi 1 0K 0K 166960K 6 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 1013 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 249 77K 99K 166960K 12555 0 UVM aobj 4 2K 2K 166960K 5 0 pinsyscall 42 84K 104K 166960K 3300 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 119 0 NDP 16 0K 1K 166960K 146 0 temp 77 6816K 6891K 166960K 66289 0 kqueue 13 20K 29K 166960K 144 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 281 0 278 3 0 3 3 0 8 2 rtentry 112 510 0 404 4 0 4 4 0 8 0 unpcb 144 1306 0 1282 13 7 6 6 0 8 5 syncache 336 5 0 5 2 2 0 1 0 8 0 tcpcb 808 446 0 441 13 5 8 8 0 8 7 arp 120 91 0 73 1 0 1 1 0 8 0 inpcb 384 1812 0 1801 41 32 9 15 0 8 7 nd6 136 136 0 111 2 1 1 2 0 8 0 pkpcb 40 3 0 3 3 3 0 1 0 8 0 kcovpl 48 41 0 33 1 0 1 1 0 8 0 ppxss 1168 9 0 8 3 2 1 1 0 8 0 pffrag 232 9 0 3 1 0 1 1 0 482 0 pffrnode 88 8 0 2 1 0 1 1 0 8 0 pffrent 40 10 0 4 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 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 2 0 1 1 0 1 1 0 8 0 pfstitem 24 102 0 67 1 0 1 1 0 8 0 pfstkey 128 102 0 67 2 0 2 2 0 8 0 pfstate 376 102 0 67 4 0 4 4 0 8 0 pfrule 1344 25 0 20 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2001 0 1553 33 4 29 32 0 8 0 art_table 32 2002 0 1553 5 1 4 5 0 8 0 art_node 16 508 0 411 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 4 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 30 0 8 1 0 1 1 0 8 0 shmpl 112 2 0 1 1 0 1 1 0 8 0 dirhash 1024 43 0 24 3 0 3 3 0 8 0 dino2pl 256 3082 0 1516 99 0 99 99 0 8 0 ffsino 272 3082 0 1516 106 0 106 106 0 8 0 nchpl 144 4454 0 2720 65 0 65 65 0 8 0 uvmvnodes 80 4392 0 0 90 0 90 90 0 8 0 vnodes 216 4392 0 0 244 0 244 244 0 8 0 namei 1024 20992 0 20992 5 4 1 1 0 8 1 percpumem 16 96 0 46 1 0 1 1 0 8 0 vcpupl 3904 5 0 1 1 0 1 1 0 8 0 vmpool 696 15 0 11 1 0 1 1 0 8 0 kstatmem 264 124 0 92 3 0 3 3 0 8 0 scsiplug 72 4 0 4 2 1 1 1 0 8 1 scxspl 216 28779 0 28779 14 13 1 8 1 8 1 plimitpl 152 483 0 465 1 0 1 1 0 8 0 sigapl 424 1627 0 1575 9 2 7 9 0 8 0 futexpl 64 17066 0 17061 5 4 1 1 0 8 0 knotepl 120 572 0 0 17 1 16 16 0 8 0 kqueuepl 216 544 0 532 13 4 9 9 0 8 8 pipepl 320 451 0 423 8 5 3 8 0 8 0 fdescpl 496 1587 0 1556 7 2 5 5 0 8 0 filepl 152 12606 0 12339 36 17 19 19 0 8 8 lockfpl 104 649 0 646 3 1 2 2 0 8 1 lockfspl 48 210 0 207 1 0 1 1 0 8 0 sessionpl 144 55 0 46 1 0 1 1 0 8 0 pgrppl 48 108 0 91 1 0 1 1 0 8 0 ucredpl 104 1452 0 1437 1 0 1 1 0 8 0 zombiepl 144 1578 0 1575 2 1 1 1 0 8 0 processpl 1152 1627 0 1575 6 2 4 6 0 8 0 procpl 648 2904 0 2844 10 3 7 8 0 8 0 srpgc 96 4 0 4 2 2 0 1 0 8 0 sosppl 168 2 0 2 1 1 0 1 0 8 0 sockpl 664 3416 0 3378 41 30 11 14 0 8 6 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 249 0 0 32 1 31 32 0 8 0 mtagpl 96 8 0 0 1 0 1 1 0 8 0 mbufpl 256 750 0 0 46 0 46 46 0 8 0 bufpl 280 7963 0 1791 442 0 442 442 0 8 0 anonpl 24 257128 0 253517 70 23 47 52 0 185 15 amapchunkpl 152 39830 0 39303 45 13 32 33 0 158 9 amappl16 200 4979 0 4949 35 25 10 15 0 8 8 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 193 0 181 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 1 0 1 0 8 0 amappl12 168 2761 0 2729 4 2 2 3 0 8 0 amappl11 160 84 0 70 1 0 1 1 0 8 0 amappl10 152 14 0 14 1 1 0 1 0 8 0 amappl9 144 146 0 145 1 0 1 1 0 8 0 amappl8 136 108 0 106 1 0 1 1 0 8 0 amappl7 128 176 0 164 1 0 1 1 0 8 0 amappl6 120 503 0 501 1 0 1 1 0 8 0 amappl5 112 264 0 252 1 0 1 1 0 8 0 amappl4 104 420 0 400 1 0 1 1 0 8 0 amappl3 96 7988 0 7864 4 0 4 4 0 8 0 amappl2 88 1073 0 1010 2 0 2 2 0 8 0 amappl1 80 13399 0 12805 15 2 13 14 0 8 0 amappl 88 11858 0 11675 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 4 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1602 0 1567 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1602 0 1567 1 0 1 1 0 8 0 vmmpekpl 168 14976 0 14927 3 0 3 3 0 8 0 vmmpepl 168 102976 0 101017 109 12 97 97 0 357 11 vmsppl 440 1601 0 1566 7 2 5 5 0 8 0 rwobjpl 56 34882 0 29518 80 2 78 78 0 8 2 pdppl 4096 3211 0 3136 167 90 77 85 0 8 2 pvpl 32 28014 0 0 227 1 226 226 0 265 0 pmappl 248 1601 0 1566 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 517 0 110 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8306b2c7) at panic+0x1e5 sys/kern/subr_prf.c:198 pmap_remove_pte(fffffd806e019100,fffffd80075d1c00,7fba5ed71000,74bdae200000,74bdae217000,0) at pmap_remove_pte pmap_do_remove(fffffd806e019100,74bdadb17000,74bdae217000,0) at pmap_do_remove+0x533 sys/arch/amd64/amd64/pmap.c:1909 uvm_unmap_kill_entry_withlock(fffffd806c6606f8,fffffd806ce8ea18,0) at uvm_unmap_kill_entry_withlock+0x274 sys/uvm/uvm_map.c:1883 uvm_map_teardown(fffffd806c6606f8) at uvm_map_teardown+0x267 sys/uvm/uvm_map.c:2520 uvmspace_free(fffffd806c6606f8) at uvmspace_free+0xe8 sys/uvm/uvm_map.c:3447 reaper(ffff800029fd9448) at reaper+0x25b sys/kern/kern_exit.c:480 end trace frame: 0x0, 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:1208 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:1208 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: -5