panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va 0x1b33460000, opte 0x3efff Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *211671 4578 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83078a49) at panic+0x1e5 sys/kern/subr_prf.c:198 pmap_remove_pte(fffffd806ae9a5e0,fffffd800809ede0,7f800d99a300,1b33460000,1b33600000,0) at pmap_remove_pte pmap_do_remove(fffffd806ae9a5e0,1b33460000,1b33820000,0) at pmap_do_remove+0x533 sys/arch/amd64/amd64/pmap.c:1911 uvm_unmap_kill_entry_withlock(fffffd806ce9dc20,fffffd806ceaa028,0) at uvm_unmap_kill_entry_withlock+0x274 sys/uvm/uvm_map.c:1865 uvm_map_teardown(fffffd806ce9dc20) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806ce9dc20) at uvmspace_free+0xcd sys/uvm/uvm_map.c:3422 reaper(ffff800029fd91c0) at reaper+0x246 sys/kern/kern_exit.c:481 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 0x1b33460000, opte 0x3efff ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83078a49) at panic+0x1e5 sys/kern/subr_prf.c:198 pmap_remove_pte(fffffd806ae9a5e0,fffffd800809ede0,7f800d99a300,1b33460000,1b33600000,0) at pmap_remove_pte pmap_do_remove(fffffd806ae9a5e0,1b33460000,1b33820000,0) at pmap_do_remove+0x533 sys/arch/amd64/amd64/pmap.c:1911 uvm_unmap_kill_entry_withlock(fffffd806ce9dc20,fffffd806ceaa028,0) at uvm_unmap_kill_entry_withlock+0x274 sys/uvm/uvm_map.c:1865 uvm_map_teardown(fffffd806ce9dc20) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806ce9dc20) at uvmspace_free+0xcd sys/uvm/uvm_map.c:3422 reaper(ffff800029fd91c0) at reaper+0x246 sys/kern/kern_exit.c:481 end trace frame: 0x0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800029fe5b20 rbx 0xffffffff83433d87 cpu_info_full_primary+0x2d87 rdx 0 rcx 0xffff800029fd91c0 rax 0xffffffff83432ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xcaf95b2f2366a41f r11 0xbbf35f2953c0c382 r12 0xffffffff83433b88 cpu_info_full_primary+0x2b88 r13 0 r14 0 r15 0x1 rip 0xffffffff8124a355 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800029fe5b10 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) tid=211671 pid=4578 tcnt=1 stat=onproc flags process=14000 proc=200 runpri=4, usrpri=72, slppri=4, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800029fd9958,0xffff800029fd8cc0 process=0xffff800029feb1e0 user=0xffff800029fe0000, vmspace=0xffffffff83519648 estcpu=22, cpticks=11, pctcpu=9.61, user=0, sys=10494, intr=37 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 64459 244380 77439 0 3 0x80 fsleep syz-executor 64459 276300 77439 0 3 0x4000080 ttyout syz-executor 77439 85153 18909 0 3 0x82 nanoslp syz-executor 98119 467660 85373 0 3 0x80 fsleep syz-executor 98119 498571 85373 0 3 0x4000080 lockf syz-executor 98119 37376 85373 0 3 0x4000080 fsleep syz-executor 53950 318950 57566 0 3 0x80 fsleep syz-executor 53950 377988 57566 0 3 0x4000080 ttyout syz-executor 85373 40057 18909 0 3 0x82 nanoslp syz-executor 96190 36959 64242 0 3 0x80 fsleep syz-executor 96190 244428 64242 0 3 0x4000080 kqread syz-executor 211 110875 5326 0 3 0x80 fsleep syz-executor 211 274007 5326 0 3 0x4000080 ttyout syz-executor 8369 449740 54770 0 3 0x80 fsleep syz-executor 8369 377230 54770 0 3 0x4000080 kqread syz-executor 30530 249925 43589 0 3 0x80 fsleep syz-executor 30530 395776 43589 0 3 0x4000080 fifor syz-executor 5326 26068 18909 0 3 0x82 nanoslp syz-executor 43589 117479 18909 0 3 0x82 nanoslp syz-executor 54770 210241 18909 0 3 0x82 nanoslp syz-executor 57566 416995 18909 0 3 0x82 nanoslp syz-executor 64242 152926 18909 0 3 0x82 nanoslp syz-executor 95736 402627 18909 0 3 0x82 wait syz-executor 43988 334984 0 0 3 0x14200 acct acct 73778 361352 0 0 3 0x14280 nfsidl nfsio 7408 478292 0 0 3 0x14280 nfsidl nfsio 26440 324316 0 0 3 0x14280 nfsidl nfsio 67780 512458 0 0 3 0x14280 nfsidl nfsio 869 319587 0 0 3 0x14280 nfsidl nfsio 61151 511333 0 0 3 0x14280 nfsidl nfsio 59345 382165 0 0 3 0x14280 nfsidl nfsio 7085 100059 0 0 3 0x14280 nfsidl nfsio 80034 476236 0 0 3 0x14280 nfsidl nfsio 47625 394736 0 0 3 0x14280 nfsidl nfsio 26684 483131 0 0 3 0x14280 nfsidl nfsio 56505 253273 0 0 3 0x14280 nfsidl nfsio 94080 224255 0 0 3 0x14280 nfsidl nfsio 59572 458403 0 0 3 0x14280 nfsidl nfsio 27593 187159 0 0 3 0x14280 nfsidl nfsio 76253 393353 0 0 3 0x14280 nfsidl nfsio 1994 85056 0 0 3 0x14280 nfsidl nfsio 79570 471919 0 0 3 0x14280 nfsidl nfsio 75854 123067 0 0 3 0x14280 nfsidl nfsio 74154 469494 0 0 3 0x14280 nfsidl nfsio 73555 116593 1 0 3 0x100083 ttyin getty 67011 64839 0 0 3 0x14200 bored sosplice 18909 467229 73533 0 3 0x82 kqread syz-executor 73533 396929 29009 0 3 0x10008a sigsusp ksh 29009 248894 8033 0 3 0x98 kqread sshd-session 8033 413635 30544 0 3 0x92 kqread sshd-session 30544 409152 1 0 3 0x88 kqread sshd 21206 24960 83005 74 3 0x1100092 bpf pflogd 83005 411174 1 0 3 0x80 sbwait pflogd 21709 237375 88914 73 3 0x1100090 kqread syslogd 88914 347340 1 0 3 0x100082 sbwait syslogd 97356 136294 1 0 3 0x100080 kqread resolvd 28413 162484 13347 77 3 0x100092 kqread dhcpleased 8271 37246 13347 77 3 0x100092 kqread dhcpleased 13347 306852 1 0 3 0x80 kqread dhcpleased 42834 208109 0 0 3 0x14200 bored smr 71194 308213 0 0 3 0x14200 pgzero zerothread 81963 372704 0 0 3 0x14200 aiodoned aiodoned 89963 44352 0 0 3 0x14200 syncer update 67081 5943 0 0 3 0x14200 cleaner cleaner * 4578 211671 0 0 7 0x14200 reaper 29353 474548 0 0 3 0x14200 pgdaemon pagedaemon 5094 299511 0 0 3 0x14200 bored viomb 4258 70306 0 0 3 0x40014200 acpi0 acpi0 93553 136281 0 0 7 0x40014200 idle1 50536 361390 0 0 3 0x14200 bored softnet3 95647 519288 0 0 3 0x14200 bored softnet2 99116 425221 0 0 3 0x14200 bored softnet1 60777 73182 0 0 3 0x14200 bored softnet0 89689 371390 0 0 3 0x14200 bored systqmp 68874 258182 0 0 3 0x14200 bored systq 42952 453793 0 0 3 0x14200 tmoslp softclockmp 52353 435797 0 0 3 0x40014200 tmoslp softclock 26404 498784 0 0 3 0x40014200 idle0 1 389922 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 (0xfffffd806ae9a5f0) #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:1815 #4 uvm_unmap_kill_entry_withlock+0x274 sys/uvm/uvm_map.c:1865 #5 uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 #6 uvmspace_free+0xcd sys/uvm/uvm_map.c:3422 #7 reaper+0x246 sys/kern/kern_exit.c:481 #8 proc_trampoline+0x10 Process 4578 (reaper) thread 0xffff800029fd91c0 (211671) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10205 10289K 10674K 166960K 12852 0 pcb 17 16K 18K 166960K 428 0 rtable 229 8K 10K 166960K 2262 0 pf 38 18K 82K 166960K 234 0 ifaddr 45 8K 8K 166960K 299 0 ifgroup 59 2K 2K 166960K 313 0 sysctl 3 1K 1K 166960K 3 0 counters 66 36K 37K 166960K 194 0 ioctlops 0 0K 4K 166960K 1741 0 iov 0 0K 24K 166960K 208 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1499 94K 94K 166960K 3076 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 20 0 VM map 2 1K 1K 166960K 2 0 sem 13 10K 10K 166960K 164 0 dirhash 15 2K 2K 166960K 30 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 17 61K 93K 166960K 1968 0 sigio 0 0K 0K 166960K 29 0 proc 74 103K 128K 166960K 2296 0 subproc 104 6K 7K 166960K 888 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 107 0 in_multi 103 7K 7K 166960K 781 0 ether_multi 1 0K 0K 166960K 4 0 mrt 0 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 1261 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 240 93K 107K 166960K 16472 0 UVM aobj 38 2K 2K 166960K 43 0 pinsyscall 42 84K 103K 166960K 4611 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 54 0 NDP 17 0K 2K 166960K 214 0 temp 78 6824K 7457K 166960K 52311 0 kqueue 17 23K 28K 166960K 183 0 SYN cache 2 8K 16K 166960K 3 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 254 0 251 2 1 1 2 0 8 0 rtentry 112 798 0 694 4 1 3 4 0 8 0 unpcb 144 1088 0 1065 14 7 7 7 0 8 6 syncache 336 5 0 5 3 2 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 808 305 0 298 5 1 4 4 0 8 3 arp 120 145 0 127 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 3 0 3 1 1 0 1 0 8 0 inpcb 336 1713 0 1701 28 24 4 15 0 8 3 nd6 136 210 0 184 1 0 1 1 0 8 0 pkpcb 40 7 0 7 4 3 1 1 0 8 1 kcovpl 48 68 0 60 1 0 1 1 0 8 0 ppxss 1168 3 0 3 2 1 1 1 0 8 1 pffrag 232 7 0 5 2 1 1 1 0 482 0 pffrnode 88 7 0 5 2 1 1 1 0 8 0 pffrent 40 142 0 140 2 1 1 1 0 8 0 pfosfp 40 1431 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1431 0 714 21 0 21 21 0 8 0 pfrktable 1344 6 0 6 1 1 0 1 0 8 0 pfanchor 1288 2 0 1 2 1 1 1 0 8 0 pftag 88 3 0 2 2 1 1 1 0 8 0 pfstitem 24 85 0 79 1 0 1 1 0 8 0 pfstkey 128 120 0 81 3 1 2 2 0 8 0 pfstate 376 85 0 80 4 3 1 4 0 8 0 pfrule 1344 35 0 28 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 3199 0 2746 33 4 29 30 0 8 0 art_table 32 3201 0 2746 4 0 4 4 0 8 0 art_node 16 795 0 702 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 6 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 160 0 149 1 0 1 1 0 8 0 shmpl 112 40 0 5 1 0 1 1 0 8 0 dirhash 1024 30 0 11 3 0 3 3 0 8 0 dino2pl 256 3394 0 1771 102 0 102 102 0 8 0 ffsino 272 3394 0 1771 109 0 109 109 0 8 0 nchpl 144 5017 0 3243 66 0 66 66 0 8 0 uvmvnodes 80 4896 0 0 100 0 100 100 0 8 0 vnodes 216 4896 0 0 272 0 272 272 0 8 0 namei 1024 22435 0 22435 4 3 1 2 0 8 1 percpumem 16 111 0 64 1 0 1 1 0 8 0 vcpupl 3904 4 0 1 1 0 1 1 0 8 0 vmpool 696 4 0 1 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 2 1 1 0 1 0 8 0 kstatmem 264 154 0 128 3 0 3 3 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 44203 0 44203 16 15 1 8 1 8 1 plimitpl 152 351 0 332 1 0 1 1 0 8 0 sigapl 424 2172 0 2100 11 2 9 9 0 8 0 futexpl 64 16118 0 16110 5 4 1 1 0 8 0 knotepl 120 423 0 0 10 0 10 10 0 8 0 kqueuepl 216 431 0 417 9 7 2 5 0 8 1 pipepl 320 393 0 364 3 0 3 3 0 8 0 fdescpl 496 2132 0 2101 8 3 5 5 0 8 0 filepl 152 11235 0 10965 38 21 17 18 0 8 6 lockfpl 104 336 0 332 1 0 1 1 0 8 0 lockfspl 48 135 0 132 1 0 1 1 0 8 0 sessionpl 144 83 0 74 1 0 1 1 0 8 0 pgrppl 48 159 0 142 1 0 1 1 0 8 0 ucredpl 104 1492 0 1479 1 0 1 1 0 8 0 zombiepl 144 2101 0 2100 1 0 1 1 0 8 0 processpl 1160 2172 0 2100 7 1 6 6 0 8 0 procpl 648 3836 0 3756 11 3 8 9 0 8 0 srpgc 96 10 0 10 2 1 1 1 0 8 1 sosppl 168 9 0 9 2 1 1 1 0 8 1 sockpl 664 3074 0 3036 51 39 12 19 0 8 8 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 252 0 0 30 0 30 30 0 8 0 mtagpl 96 45 0 0 2 0 2 2 0 8 0 mbufpl 256 1098 0 0 68 1 67 67 0 8 0 bufpl 280 10688 0 3237 533 0 533 533 0 8 0 anonpl 24 312301 0 308701 59 8 51 52 0 185 18 amapchunkpl 152 51522 0 51026 43 12 31 35 0 158 10 amappl16 200 5242 0 5214 52 42 10 15 0 8 8 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 238 0 226 1 0 1 1 0 8 0 amappl13 176 13 0 13 3 3 0 1 0 8 0 amappl12 168 3737 0 3705 4 2 2 3 0 8 0 amappl11 160 58 0 44 1 0 1 1 0 8 0 amappl10 152 14 0 13 1 0 1 1 0 8 0 amappl9 144 156 0 155 1 0 1 1 0 8 0 amappl8 136 21 0 19 1 0 1 1 0 8 0 amappl7 128 225 0 213 1 0 1 1 0 8 0 amappl6 120 769 0 767 1 0 1 1 0 8 0 amappl5 112 397 0 384 1 0 1 1 0 8 0 amappl4 104 501 0 482 1 0 1 1 0 8 0 amappl3 96 10159 0 10042 4 0 4 4 0 8 0 amappl2 88 1461 0 1396 2 0 2 2 0 8 0 amappl1 80 16926 0 16336 16 3 13 14 0 8 0 amappl 88 15628 0 15453 6 1 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 8 0 8 2 2 0 1 0 8 0 dma16 16 20 0 19 1 0 1 1 0 8 0 aobjpl 72 42 0 5 1 0 1 1 0 8 0 uaddrrnd 24 2136 0 2102 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2136 0 2102 1 0 1 1 0 8 0 vmmpekpl 168 18707 0 18647 4 0 4 4 0 8 0 vmmpepl 168 134651 0 132714 120 24 96 97 0 357 11 vmsppl 440 2135 0 2101 6 2 4 5 0 8 0 rwobjpl 56 43630 0 37748 86 2 84 84 0 8 1 pdppl 4096 4279 0 4205 182 106 76 85 0 8 2 pvpl 32 28555 0 0 231 1 230 230 0 265 0 pmappl 248 2135 0 2101 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 578 0 144 13 0 13 13 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(ffffffff83078a49) at panic+0x1e5 sys/kern/subr_prf.c:198 pmap_remove_pte(fffffd806ae9a5e0,fffffd800809ede0,7f800d99a300,1b33460000,1b33600000,0) at pmap_remove_pte pmap_do_remove(fffffd806ae9a5e0,1b33460000,1b33820000,0) at pmap_do_remove+0x533 sys/arch/amd64/amd64/pmap.c:1911 uvm_unmap_kill_entry_withlock(fffffd806ce9dc20,fffffd806ceaa028,0) at uvm_unmap_kill_entry_withlock+0x274 sys/uvm/uvm_map.c:1865 uvm_map_teardown(fffffd806ce9dc20) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2498 uvmspace_free(fffffd806ce9dc20) at uvmspace_free+0xcd sys/uvm/uvm_map.c:3422 reaper(ffff800029fd91c0) at reaper+0x246 sys/kern/kern_exit.c:481 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:1219 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:1219 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: -5