panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va 0x200000016000, opte 0xffffffffffffffff Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8349ec7d) at panic+0x1cf sys/kern/subr_prf.c:198 pmap_remove_pte(fffffd805fe7f528,fffffd8007178380,7f9000000080,200000010000,200000200000,0) at pmap_remove_pte pmap_do_remove(fffffd805fe7f528,200000010000,200000400000,0) at pmap_do_remove+0x53a sys/arch/amd64/amd64/pmap.c:1920 uvm_unmap_kill_entry_withlock(fffffd806562b470,fffffd806961fdd0,0) at uvm_unmap_kill_entry_withlock+0x269 sys/uvm/uvm_map.c:1869 uvm_map_teardown(fffffd806562b470) at uvm_map_teardown+0x117 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:-1 [inline] uvm_map_teardown(fffffd806562b470) at uvm_map_teardown+0x117 sys/uvm/uvm_map.c:2497 exit1(ffff80003c91ba10,0,0,3) at exit1+0x6e6 sys/kern/kern_exit.c:259 proc_suspend_check_locked(ffff80003c91ba10,0) at proc_suspend_check_locked+0x4ba sys/kern/kern_sig.c:2235 userret(ffff80003c91ba10) at userret+0x8c proc_suspend_check sys/kern/kern_sig.c:-1 [inline] userret(ffff80003c91ba10) at userret+0x8c sys/kern/kern_sig.c:2194 syscall(ffff8000314d7490) at syscall+0xa56 mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff8000314d7490) at syscall+0xa56 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7453a36da910, count: 4 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 0x200000016000, opte 0xffffffffffffffff ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8349ec7d) at panic+0x1cf sys/kern/subr_prf.c:198 pmap_remove_pte(fffffd805fe7f528,fffffd8007178380,7f9000000080,200000010000,200000200000,0) at pmap_remove_pte pmap_do_remove(fffffd805fe7f528,200000010000,200000400000,0) at pmap_do_remove+0x53a sys/arch/amd64/amd64/pmap.c:1920 uvm_unmap_kill_entry_withlock(fffffd806562b470,fffffd806961fdd0,0) at uvm_unmap_kill_entry_withlock+0x269 sys/uvm/uvm_map.c:1869 uvm_map_teardown(fffffd806562b470) at uvm_map_teardown+0x117 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:-1 [inline] uvm_map_teardown(fffffd806562b470) at uvm_map_teardown+0x117 sys/uvm/uvm_map.c:2497 exit1(ffff80003c91ba10,0,0,3) at exit1+0x6e6 sys/kern/kern_exit.c:259 proc_suspend_check_locked(ffff80003c91ba10,0) at proc_suspend_check_locked+0x4ba sys/kern/kern_sig.c:2235 userret(ffff80003c91ba10) at userret+0x8c proc_suspend_check sys/kern/kern_sig.c:-1 [inline] userret(ffff80003c91ba10) at userret+0x8c sys/kern/kern_sig.c:2194 syscall(ffff8000314d7490) at syscall+0xa56 mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff8000314d7490) at syscall+0xa56 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7453a36da910, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000314d6fa0 rbx 0xfffffd8007178380 rdx 0 rcx 0 rax 0xffff80003c91ba10 r8 0x101010101010101 r9 0x8080808080808080 r10 0x41b13c2158adc136 r11 0x6d2c0687a46ce4d4 r12 0 r13 0x7f90000000b0 r14 0 r15 0x1 rip 0xffffffff81bd0215 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000314d6f90 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=331092 pid=8643 tcnt=0 stat=onproc flags process=1008 proc=82000 runpri=32, usrpri=78, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003c91b248 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002f0d0fa8,0xffff80003c91a560 process=0xffff8000ffffa418 user=0xffff8000314d2000, vmspace=0xfffffd806562b470 estcpu=28, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 13172 337733 87450 0 3 0x80 fsleep syz-executor 13172 330813 87450 0 3 0x4000080 fifor syz-executor 15142 472800 43832 0 3 0x80 nanoslp syz-executor 15142 132085 43832 0 3 0x4000080 fsleep syz-executor 15142 356998 43832 0 3 0x4000080 ttyopn syz-executor 15142 490909 43832 0 3 0x4000080 fsleep syz-executor 88932 430549 14883 0 3 0x80 fsleep syz-executor 88932 336104 14883 0 3 0x4000080 netacc syz-executor 51592 181015 55661 -1 3 0x90 fsleep syz-executor 51592 382716 55661 -1 3 0x4000090 nanoslp syz-executor 23879 344027 70209 0 3 0x80 fsleep syz-executor 23879 384732 70209 0 3 0x4000080 kqsel syz-executor 99589 147040 68609 60929 3 0x90 fsleep syz-executor 99589 21663 68609 60929 3 0x4000090 piperd syz-executor 80882 54885 15157 0 3 0x80 fsleep syz-executor 80882 269272 15157 0 3 0x4000080 ttyout syz-executor 43832 163345 53429 0 3 0x82 nanoslp syz-executor 71770 517779 61308 27 3 0x1100092 kqread sshd-auth 61308 111374 29542 0 3 0x82 kqread sshd-session 55661 44944 53429 0 3 0x82 nanoslp syz-executor 35723 82302 14851 27 3 0x1100092 kqread sshd-auth 14851 1973 29542 0 3 0x82 kqread sshd-session 20349 47122 0 0 3 0x14200 acct acct 15157 252465 53429 0 3 0x82 nanoslp syz-executor 68609 362956 53429 0 3 0x82 nanoslp syz-executor 87450 122736 53429 0 3 0x82 nanoslp syz-executor 70209 337215 53429 0 3 0x82 nanoslp syz-executor 14883 82433 53429 0 3 0x82 nanoslp syz-executor 49459 281483 53429 0 2 0x2 syz-executor 53429 305849 77971 0 3 0x82 kqread syz-executor 77971 178502 73271 0 3 0x10008a sigsusp ksh 73271 189613 90937 0 3 0x98 kqread sshd-session 90937 386309 29542 0 3 0x92 kqread sshd-session 94567 63001 1 0 3 0x100083 ttyopn getty 29542 160267 1 0 3 0x88 kqread sshd 3735 66994 1378 73 3 0x1100090 kqread syslogd 1378 287910 1 0 3 0x100082 sbwait syslogd 14163 219272 1 0 3 0x100080 kqread resolvd 54714 38161 70949 77 3 0x100092 kqread dhcpleased 76571 478111 70949 77 3 0x100092 kqread dhcpleased 70949 417318 1 0 3 0x80 kqread dhcpleased 91654 39277 0 0 3 0x14200 bored smr 57521 49590 0 0 3 0x14200 pgzero zerothread 42424 64134 0 0 3 0x14200 aiodoned aiodoned 89445 117469 0 0 3 0x14200 syncer update 84557 225444 0 0 3 0x14200 cleaner cleaner 99865 309853 0 0 3 0x14200 reaper reaper 9343 160474 0 0 3 0x14200 pgdaemon pagedaemon 91149 48762 0 0 3 0x14200 bored viomb 89295 339400 0 0 3 0x40014200 acpi0 acpi0 7534 317569 0 0 3 0x14200 bored softnet0 17884 191077 0 0 3 0x14200 bored systqmp 41983 20861 0 0 3 0x14200 bored systq 82607 85962 0 0 3 0x40014200 tmoslp softclock 75239 188970 0 0 3 0x40014200 idle0 1 287996 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11057 12196K 12774K 166960K 14241 0 pcb 20 16K 18K 166960K 417 0 rtable 215 11K 11K 166960K 636 0 pf 40 15K 20K 166960K 161 0 ifaddr 37 6K 7K 166960K 94 0 ifgroup 51 2K 2K 166960K 138 0 sysctl 4 1K 9K 166960K 46 0 counters 34 17K 18K 166960K 85 0 ioctlops 0 0K 4K 166960K 424 0 iov 1 1K 24K 166960K 122 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1421 89K 90K 166960K 2560 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 16 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 92 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 228K 166960K 1234 0 sigio 0 0K 0K 166960K 52 0 proc 60 59K 124K 166960K 635 0 subproc 72 4K 4K 166960K 90 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 141 0 in_multi 77 5K 7K 166960K 166 0 ether_multi 1 0K 0K 166960K 12 0 mrt 0 0K 0K 166960K 27 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 109 493K 493K 166960K 109 0 exec 0 0K 1K 166960K 552 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 268 179K 196K 166960K 12340 0 UVM aobj 113 20K 20K 166960K 117 0 pinsyscall 46 92K 98K 166960K 2404 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 63 0 NDP 11 0K 2K 166960K 63 0 temp 71 9074K 9150K 166960K 59766 0 kqueue 20 30K 36K 166960K 223 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 127 0 122 1 0 1 1 0 8 0 rtentry 136 163 0 80 4 0 4 4 0 8 0 unpcb 144 678 0 650 2 0 2 2 0 8 0 syncache 336 8 0 8 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 736 532 0 519 8 1 7 7 0 8 5 arp 96 26 0 13 1 0 1 1 0 8 0 ipq 40 3 0 2 1 0 1 1 0 8 0 ipqe 40 4 0 2 1 0 1 1 0 8 0 inpcb 328 1495 0 1475 12 3 9 12 0 8 7 nd6 112 32 0 13 1 0 1 1 0 8 0 pkpcb 40 10 0 10 1 0 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1072 42 0 41 1 0 1 1 0 8 0 pppxif 1384 7 0 6 1 0 1 1 0 8 0 pfstscr 40 2 0 2 1 0 1 1 0 8 1 pffrag 232 3 0 0 1 0 1 1 0 482 0 pffrnode 88 3 0 0 1 0 1 1 0 8 0 pffrent 40 5 0 1 1 0 1 1 0 8 0 pfrktable 1344 8 0 4 2 1 1 1 0 8 0 pfanchor 1288 5 0 2 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 16 0 12 1 0 1 1 0 8 0 pfstate 384 9 0 7 1 0 1 1 0 8 0 pfrule 1360 16 0 14 1 0 1 1 0 8 0 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 716 0 332 30 0 30 30 0 8 4 art_table 40 719 0 332 5 0 5 5 0 8 0 art_node 32 161 0 88 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 11 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 83 0 73 1 0 1 1 0 8 0 shmpl 112 105 0 3 3 0 3 3 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 3605 0 2148 92 0 92 92 0 8 0 ffsino 256 3605 0 2148 92 0 92 92 0 8 0 nchpl 144 5223 0 3522 64 0 64 64 0 8 0 rtmask 32 8 0 8 2 1 1 1 0 8 1 vnodes 216 4433 0 0 247 0 247 247 0 8 0 namei 1024 19167 0 19167 3 2 1 2 0 8 1 vcpupl 3904 9 0 1 1 0 1 1 0 8 0 vmpool 808 9 0 1 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 0 1 0 1 1 0 8 0 kstatmem 264 86 0 64 3 0 3 3 0 8 1 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 5 0 5 1 0 1 1 0 8 1 scxspl 216 20410 0 20410 9 7 2 8 1 8 2 plimitpl 152 558 0 541 1 0 1 1 0 8 0 sigapl 424 1519 0 1471 6 0 6 6 0 8 0 knotepl 120 427530 0 427471 17 7 10 16 0 8 7 kqueuepl 184 554 0 538 4 0 4 4 0 8 3 pipepl 304 266 0 236 3 0 3 3 0 8 0 fdescpl 448 1504 0 1471 5 1 4 5 0 8 0 filepl 120 10115 0 9861 13 1 12 12 0 8 2 lockfpl 104 524 0 521 3 1 2 2 0 8 1 lockfspl 48 200 0 197 1 0 1 1 0 8 0 sessionpl 144 28 0 18 1 0 1 1 0 8 0 pgrppl 48 87 0 69 1 0 1 1 0 8 0 ucredpl 104 1511 0 1496 1 0 1 1 0 8 0 zombiepl 144 1472 0 1471 2 1 1 1 0 8 0 processpl 1152 1519 0 1471 4 0 4 4 0 8 0 procpl 664 3089 0 3032 7 1 6 6 0 8 0 sosppl 176 3 0 3 1 0 1 1 0 8 1 sockpl 552 2353 0 2300 12 2 10 12 0 8 6 mcl64k 65536 47 0 45 2 1 1 1 0 8 0 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 16 0 16 2 1 1 1 0 8 1 mcl4k 4096 3938 0 3884 17 8 9 16 0 8 1 mcl2k 2048 1345 0 1339 7 3 4 4 0 8 3 mtagpl 96 46 0 8 1 0 1 1 0 8 0 mbufpl 256 18087 0 17854 77 53 24 77 0 8 6 bufpl 280 6496 0 281 445 0 445 445 0 8 0 anonpl 24 219500 0 208990 126 4 122 122 0 187 30 amapchunkpl 152 41850 0 41078 46 8 38 38 0 158 8 amappl16 200 4432 0 4067 57 19 38 50 0 8 8 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 431 0 430 1 0 1 1 0 8 0 amappl13 176 127 0 113 1 0 1 1 0 8 0 amappl12 168 1803 0 1770 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 1 0 1 0 8 0 amappl10 152 57 0 47 1 0 1 1 0 8 0 amappl9 144 267 0 267 1 1 0 1 0 8 0 amappl8 136 100 0 98 1 0 1 1 0 8 0 amappl7 128 149 0 133 1 0 1 1 0 8 0 amappl6 120 168 0 165 1 0 1 1 0 8 0 amappl5 112 99 0 86 1 0 1 1 0 8 0 amappl4 104 282 0 267 1 0 1 1 0 8 0 amappl3 96 8419 0 8300 4 0 4 4 0 8 0 amappl2 88 585 0 507 2 0 2 2 0 8 0 amappl1 80 16214 0 15313 19 0 19 19 0 8 0 amappl 88 11384 0 11202 5 0 5 5 0 92 0 uvmvnodes 80 123 0 0 3 0 3 3 0 8 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 8 0 8 2 1 1 1 0 8 1 dma128 128 256 0 256 2 1 1 1 0 8 1 dma64 64 7 0 7 2 1 1 1 0 8 1 dma32 32 8 0 8 2 1 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 116 0 4 3 0 3 3 0 8 0 uaddrrnd 24 1504 0 1470 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1504 0 1470 1 0 1 1 0 8 0 vmmpekpl 168 13282 0 13231 3 0 3 3 0 8 0 vmmpepl 168 103146 0 100432 138 7 131 131 0 357 7 vmsppl 368 1503 0 1470 5 1 4 4 0 8 0 rwobjpl 40 28810 0 26990 21 0 21 21 0 8 0 pdppl 4096 3032 0 2950 141 58 83 83 0 8 1 pvpl 32 650055 0 631666 215 5 210 210 0 265 35 pmappl 216 1512 0 1471 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 496 0 132 12 0 12 12 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8349ec7d) at panic+0x1cf sys/kern/subr_prf.c:198 pmap_remove_pte(fffffd805fe7f528,fffffd8007178380,7f9000000080,200000010000,200000200000,0) at pmap_remove_pte pmap_do_remove(fffffd805fe7f528,200000010000,200000400000,0) at pmap_do_remove+0x53a sys/arch/amd64/amd64/pmap.c:1920 uvm_unmap_kill_entry_withlock(fffffd806562b470,fffffd806961fdd0,0) at uvm_unmap_kill_entry_withlock+0x269 sys/uvm/uvm_map.c:1869 uvm_map_teardown(fffffd806562b470) at uvm_map_teardown+0x117 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:-1 [inline] uvm_map_teardown(fffffd806562b470) at uvm_map_teardown+0x117 sys/uvm/uvm_map.c:2497 exit1(ffff80003c91ba10,0,0,3) at exit1+0x6e6 sys/kern/kern_exit.c:259 proc_suspend_check_locked(ffff80003c91ba10,0) at proc_suspend_check_locked+0x4ba sys/kern/kern_sig.c:2235 userret(ffff80003c91ba10) at userret+0x8c proc_suspend_check sys/kern/kern_sig.c:-1 [inline] userret(ffff80003c91ba10) at userret+0x8c sys/kern/kern_sig.c:2194 syscall(ffff8000314d7490) at syscall+0xa56 mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff8000314d7490) at syscall+0xa56 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7453a36da910, count: -11 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8349ec7d) at panic+0x1cf sys/kern/subr_prf.c:198 pmap_remove_pte(fffffd805fe7f528,fffffd8007178380,7f9000000080,200000010000,200000200000,0) at pmap_remove_pte pmap_do_remove(fffffd805fe7f528,200000010000,200000400000,0) at pmap_do_remove+0x53a sys/arch/amd64/amd64/pmap.c:1920 uvm_unmap_kill_entry_withlock(fffffd806562b470,fffffd806961fdd0,0) at uvm_unmap_kill_entry_withlock+0x269 sys/uvm/uvm_map.c:1869 uvm_map_teardown(fffffd806562b470) at uvm_map_teardown+0x117 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:-1 [inline] uvm_map_teardown(fffffd806562b470) at uvm_map_teardown+0x117 sys/uvm/uvm_map.c:2497 exit1(ffff80003c91ba10,0,0,3) at exit1+0x6e6 sys/kern/kern_exit.c:259 proc_suspend_check_locked(ffff80003c91ba10,0) at proc_suspend_check_locked+0x4ba sys/kern/kern_sig.c:2235 userret(ffff80003c91ba10) at userret+0x8c proc_suspend_check sys/kern/kern_sig.c:-1 [inline] userret(ffff80003c91ba10) at userret+0x8c sys/kern/kern_sig.c:2194 syscall(ffff8000314d7490) at syscall+0xa56 mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff8000314d7490) at syscall+0xa56 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7453a36da910, count: -11