panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va 0x792015216000, opte 0xffffffffffffffff Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *362069 84773 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828c2ec8) at panic+0x165 sys/kern/subr_prf.c:198 pmap_remove_ptes(fffffd8079c81520,fffffd80062f1700,7fbc900a9000,792015200000,79201522c000,0,d637a8df3c4da04a) at pmap_remove_ptes+0x33e pmap_do_remove(fffffd8079c81520,79201512c000,79201522c000,0) at pmap_do_remove+0x427 sys/arch/amd64/amd64/pmap.c:1896 uvm_unmap_kill_entry_withlock(fffffd80074a22b0,fffffd806b5a2a40,0) at uvm_unmap_kill_entry_withlock+0x1a7 sys/uvm/uvm_map.c:1897 uvm_map_teardown(fffffd80074a22b0) at uvm_map_teardown+0x157 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd80074a22b0) at uvm_map_teardown+0x157 sys/uvm/uvm_map.c:2534 uvmspace_free(fffffd80074a22b0) at uvmspace_free+0x96 sys/uvm/uvm_map.c:3461 reaper(ffff80002a5d7c38) at reaper+0x15a sys/kern/kern_exit.c:463 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 0x792015216000, opte 0xffffffffffffffff ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828c2ec8) at panic+0x165 sys/kern/subr_prf.c:198 pmap_remove_ptes(fffffd8079c81520,fffffd80062f1700,7fbc900a9000,792015200000,79201522c000,0,d637a8df3c4da04a) at pmap_remove_ptes+0x33e pmap_do_remove(fffffd8079c81520,79201512c000,79201522c000,0) at pmap_do_remove+0x427 sys/arch/amd64/amd64/pmap.c:1896 uvm_unmap_kill_entry_withlock(fffffd80074a22b0,fffffd806b5a2a40,0) at uvm_unmap_kill_entry_withlock+0x1a7 sys/uvm/uvm_map.c:1897 uvm_map_teardown(fffffd80074a22b0) at uvm_map_teardown+0x157 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd80074a22b0) at uvm_map_teardown+0x157 sys/uvm/uvm_map.c:2534 uvmspace_free(fffffd80074a22b0) at uvmspace_free+0x96 sys/uvm/uvm_map.c:3461 reaper(ffff80002a5d7c38) at reaper+0x15a sys/kern/kern_exit.c:463 end trace frame: 0x0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a5d52b0 rbx 0 rdx 0 rcx 0 rax 0xffff80002a5d7c38 r8 0x101010101010101 r9 0x8080808080808080 r10 0xafc6411f148e8457 r11 0xf27fd354e50097b6 r12 0 r13 0x7fbc900a90b0 r14 0 r15 0x1 rip 0xffffffff8268fd8c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a5d52a0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (reaper) tid=362069 pid=84773 tcnt=1 stat=onproc flags process=14000 proc=200 runpri=4, usrpri=63, slppri=4, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a58d480,0xffff80002a5d7728 process=0xffff8000ffffee10 user=0xffff80002a5d0000, vmspace=0xffffffff82e53f60 estcpu=13, cpticks=22, pctcpu=0.60, user=0, sys=21, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 16291 264338 62237 0 2 0x8000000 syz-executor.4 16291 237160 62237 0 2 0xc000000 syz-executor.4 30274 226520 12071 0 2 0x8000000 syz-executor.0 30274 359041 12071 0 3 0xc000080 fsleep syz-executor.0 41280 139810 48935 0 2 0x8000000 syz-executor.3 41280 32170 48935 0 3 0xc000080 fsleep syz-executor.3 95748 244697 82736 0 2 0x8000002 syz-executor.5 48935 493185 82736 0 3 0x8000082 nanoslp syz-executor.3 62237 208852 82736 0 3 0x8000082 nanoslp syz-executor.4 95342 285605 1 0 3 0x18100083 ttyin getty 12071 368355 82736 0 3 0x8000082 nanoslp syz-executor.0 59519 119961 82736 0 3 0x8000002 biowait syz-executor.6 2709 83911 82736 0 2 0x8000002 syz-executor.1 13224 445699 82736 0 3 0x8000082 nanoslp syz-executor.2 55018 151206 82736 0 3 0x8000002 biowait syz-executor.7 60779 318780 0 0 3 0x14200 bored sosplice 82736 331045 52661 0 3 0x1a000082 wait syz-fuzzer 82736 148423 52661 0 3 0x1e000082 nanoslp syz-fuzzer 82736 129490 52661 0 3 0x1e000082 thrsleep syz-fuzzer 82736 245632 52661 0 3 0x1e000082 wait syz-fuzzer 82736 375547 52661 0 3 0x1e000082 wait syz-fuzzer 82736 475422 52661 0 3 0x1e000082 thrsleep syz-fuzzer 82736 407641 52661 0 3 0x1e000082 thrsleep syz-fuzzer 82736 335525 52661 0 3 0x1e000082 wait syz-fuzzer 82736 124418 52661 0 3 0x1e000082 wait syz-fuzzer 82736 523978 52661 0 3 0x1e000082 wait syz-fuzzer 82736 517902 52661 0 3 0x1e000082 thrsleep syz-fuzzer 82736 321295 52661 0 3 0x1e000082 wait syz-fuzzer 82736 108398 52661 0 3 0x1e000082 wait syz-fuzzer 82736 162805 52661 0 2 0x1e000002 syz-fuzzer 82736 268769 52661 0 3 0x1e000082 thrsleep syz-fuzzer 52661 230373 43171 0 3 0x810008a sigsusp ksh 43171 161571 89618 0 3 0x1800009a kqread sshd 89618 54660 1 0 3 0x18000088 kqread sshd 8171 408812 32431 73 3 0x19100090 kqread syslogd 32431 151327 1 0 3 0x18100082 sbwait syslogd 23469 169228 1 0 3 0x18100080 kqread resolvd 77234 311676 65839 77 3 0x18100092 kqread dhcpleased 67519 128190 65839 77 3 0x18100092 kqread dhcpleased 65839 99355 1 0 3 0x18000080 kqread dhcpleased 58956 283715 0 0 3 0x14200 bored smr 52383 381286 0 0 2 0x14200 zerothread 41488 84084 0 0 3 0x14200 aiodoned aiodoned 71583 352145 0 0 3 0x14200 syncer update 56574 162145 0 0 3 0x14200 cleaner cleaner *84773 362069 0 0 7 0x14200 reaper 71964 88364 0 0 3 0x14200 pgdaemon pagedaemon 5484 302593 0 0 3 0x14200 bored viomb 8565 44156 0 0 3 0x40014200 acpi0 acpi0 17337 73150 0 0 3 0x14200 bored softnet3 32221 254739 0 0 3 0x14200 bored softnet2 68326 467079 0 0 3 0x14200 bored softnet1 78900 144613 0 0 3 0x14200 bored softnet0 63331 14312 0 0 3 0x14200 bored systqmp 91809 50107 0 0 3 0x14200 bored systq 27027 429339 0 0 3 0x40014200 tmoslp softclock 19869 470552 0 0 3 0x40014200 idle0 1 151650 0 0 3 0x8000082 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 10231 6821K 7080K 166960K 23698 0 pcb 17 24K 26K 166960K 963 0 rtable 239 10K 10K 166960K 8628 0 pf 35 9K 11K 166960K 752 0 ifaddr 45 15K 15K 166960K 1172 0 ifgroup 62 2K 3K 166960K 1405 0 sysctl 4 1K 3K 166960K 10 0 counters 33 17K 18K 166960K 363 0 ioctlops 0 0K 2K 166960K 555 0 iov 0 0K 24K 166960K 337 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1635 103K 103K 166960K 11324 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 13K 166960K 130 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 872 0 dirhash 12 2K 3K 166960K 159 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 13 45K 105K 166960K 9441 0 sigio 0 0K 0K 166960K 144 0 proc 58 59K 124K 166960K 8157 0 subproc 104 6K 9K 166960K 3748 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 788 0 in_multi 97 7K 7K 166960K 3173 0 ether_multi 1 0K 0K 166960K 46 0 mrt 1 0K 0K 166960K 12 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 229 1023K 1023K 166960K 229 0 exec 0 0K 1K 166960K 4460 0 pfkey data 0 0K 0K 166960K 10 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 280 164K 165K 166960K 71774 0 UVM aobj 131 4K 5K 166960K 140 0 pinsyscall 33 66K 112K 166960K 17613 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 449 0 NDP 14 0K 2K 166960K 877 0 temp 75 6812K 6940K 166960K 196160 0 kqueue 12 18K 28K 166960K 672 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 1238 0 1234 2 0 2 2 0 8 1 rtentry 112 3088 0 2985 4 0 4 4 0 8 0 unpcb 144 5224 0 5211 6 0 6 6 0 8 5 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 808 3412 0 3407 36 27 9 27 0 8 8 arp 88 567 0 552 1 0 1 1 0 8 0 ipq 40 13 0 12 1 0 1 1 0 8 0 ipqe 40 201 0 200 1 0 1 1 0 8 0 inpcb 352 10162 0 10153 43 34 9 25 0 8 8 nd6 104 839 0 812 1 0 1 1 0 8 0 pkpcb 40 33 0 33 1 0 1 1 0 8 1 kcovpl 48 288 0 280 1 0 1 1 0 8 0 ppxss 1072 19 0 19 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 12273 0 11804 192 162 30 30 0 8 0 art_table 32 12274 0 11804 4 0 4 4 0 8 0 art_node 16 3070 0 2977 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 5 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 867 0 857 1 0 1 1 0 8 0 shmpl 112 137 0 9 4 0 4 4 0 8 0 dirhash 1024 115 0 98 3 0 3 3 0 8 0 dino2pl 256 11957 0 10446 96 0 96 96 0 8 0 ffsino 240 11957 0 10446 90 0 90 90 0 8 0 nchpl 144 22042 0 20307 66 0 66 66 0 8 1 uvmvnodes 80 9270 0 0 190 0 190 190 0 8 0 vnodes 216 9270 0 0 515 0 515 515 0 8 0 namei 1024 106734 0 106734 2 0 2 2 0 8 2 vcpupl 3904 15 0 2 2 0 2 2 0 8 0 vmpool 664 29 0 16 2 0 2 2 0 8 0 kstatmem 264 688 0 660 3 0 3 3 0 8 1 scsiplug 72 3 0 3 1 0 1 1 0 8 1 scxspl 216 151308 0 151306 8 0 8 8 1 8 7 plimitpl 152 1736 0 1721 1 0 1 1 0 8 0 sigapl 424 9207 0 9165 9 0 9 9 0 8 1 futexpl 64 94114 0 94112 1 0 1 1 0 8 0 knotepl 120 21382 0 21300 11 0 11 11 0 8 4 kqueuepl 184 1581 0 1573 4 0 4 4 0 8 3 pipepl 288 2014 0 1986 7 0 7 7 0 8 4 fdescpl 432 9168 0 9144 5 0 5 5 0 8 1 filepl 120 58711 0 58466 18 3 15 17 0 8 5 lockfpl 104 1613 0 1609 1 0 1 1 0 8 0 lockfspl 48 602 0 598 1 0 1 1 0 8 0 sessionpl 144 290 0 274 1 0 1 1 0 8 0 pgrppl 48 560 0 544 1 0 1 1 0 8 0 ucredpl 104 7536 0 7524 1 0 1 1 0 8 0 zombiepl 144 9166 0 9165 1 0 1 1 0 8 0 processpl 1072 9207 0 9165 6 0 6 6 0 8 1 procpl 656 16636 0 16577 9 0 9 9 0 8 1 sosppl 168 75 0 75 1 0 1 1 0 8 1 sockpl 504 16745 0 16719 169 158 11 36 0 8 7 mcl64k 65536 19 0 19 1 0 1 1 0 8 1 mcl12k 12288 26 0 26 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 213 0 213 1 0 1 1 0 8 1 mcl4k 4096 126 0 126 1 0 1 1 0 8 1 mcl2k2 2112 4 0 4 1 0 1 1 0 8 1 mcl2k 2048 67213 0 67111 37 16 21 34 0 8 6 mtagpl 96 381 0 299 3 0 3 3 0 8 0 mbufpl 256 205123 0 204862 96 72 24 49 0 8 2 bufpl 280 23158 0 13886 663 0 663 663 0 8 0 anonpl 24 1095276 0 1089154 139 0 139 139 0 188 75 amapchunkpl 152 227661 0 227028 58 0 58 58 0 158 29 amappl16 200 19171 0 19046 71 55 16 23 0 8 8 amappl15 192 378 0 377 1 0 1 1 0 8 0 amappl14 184 951 0 940 2 0 2 2 0 8 1 amappl13 176 17 0 17 1 0 1 1 0 8 1 amappl12 168 13676 0 13651 3 0 3 3 0 8 1 amappl11 160 57 0 47 1 0 1 1 0 8 0 amappl10 152 507 0 496 1 0 1 1 0 8 0 amappl9 144 142 0 142 1 0 1 1 0 8 1 amappl8 136 867 0 835 2 0 2 2 0 8 0 amappl7 128 79 0 64 1 0 1 1 0 8 0 amappl6 120 3701 0 3684 2 0 2 2 0 8 0 amappl5 112 1208 0 1196 1 0 1 1 0 8 0 amappl4 104 2422 0 2391 2 0 2 2 0 8 1 amappl3 96 41309 0 41238 3 0 3 3 0 8 0 amappl2 88 10302 0 10231 3 0 3 3 0 8 1 amappl1 80 54382 0 53895 22 2 20 22 0 8 7 amappl 88 69021 0 68837 6 0 6 6 0 92 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 139 0 9 3 0 3 3 0 8 0 uaddrrnd 24 9197 0 9160 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 9197 0 9160 1 0 1 1 0 8 0 vmmpekpl 168 72032 0 71979 4 0 4 4 0 8 0 vmmpepl 168 622272 0 620526 111 0 111 111 0 357 23 vmsppl 344 9196 0 9159 4 0 4 4 0 8 0 rwobjpl 24 148169 0 137706 65 0 65 65 0 8 0 pdppl 4096 18400 0 18331 735 659 76 86 0 8 7 pvpl 32 3356104 0 3344396 361 14 347 361 0 265 207 pmappl 216 9196 0 9159 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1471 0 1094 12 0 12 12 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828c2ec8) at panic+0x165 sys/kern/subr_prf.c:198 pmap_remove_ptes(fffffd8079c81520,fffffd80062f1700,7fbc900a9000,792015200000,79201522c000,0,d637a8df3c4da04a) at pmap_remove_ptes+0x33e pmap_do_remove(fffffd8079c81520,79201512c000,79201522c000,0) at pmap_do_remove+0x427 sys/arch/amd64/amd64/pmap.c:1896 uvm_unmap_kill_entry_withlock(fffffd80074a22b0,fffffd806b5a2a40,0) at uvm_unmap_kill_entry_withlock+0x1a7 sys/uvm/uvm_map.c:1897 uvm_map_teardown(fffffd80074a22b0) at uvm_map_teardown+0x157 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd80074a22b0) at uvm_map_teardown+0x157 sys/uvm/uvm_map.c:2534 uvmspace_free(fffffd80074a22b0) at uvmspace_free+0x96 sys/uvm/uvm_map.c:3461 reaper(ffff80002a5d7c38) at reaper+0x15a sys/kern/kern_exit.c:463 end trace frame: 0x0, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828c2ec8) at panic+0x165 sys/kern/subr_prf.c:198 pmap_remove_ptes(fffffd8079c81520,fffffd80062f1700,7fbc900a9000,792015200000,79201522c000,0,d637a8df3c4da04a) at pmap_remove_ptes+0x33e pmap_do_remove(fffffd8079c81520,79201512c000,79201522c000,0) at pmap_do_remove+0x427 sys/arch/amd64/amd64/pmap.c:1896 uvm_unmap_kill_entry_withlock(fffffd80074a22b0,fffffd806b5a2a40,0) at uvm_unmap_kill_entry_withlock+0x1a7 sys/uvm/uvm_map.c:1897 uvm_map_teardown(fffffd80074a22b0) at uvm_map_teardown+0x157 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd80074a22b0) at uvm_map_teardown+0x157 sys/uvm/uvm_map.c:2534 uvmspace_free(fffffd80074a22b0) at uvmspace_free+0x96 sys/uvm/uvm_map.c:3461 reaper(ffff80002a5d7c38) at reaper+0x15a sys/kern/kern_exit.c:463 end trace frame: 0x0, count: -8