panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va 0x5676016000, opte 0xffffffffffffffff Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 406821 87761 0 0x8000000 0 1 syz-executor.2 *518725 54437 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828ef97a) at panic+0x17b sys/kern/subr_prf.c:198 pmap_remove_ptes(fffffd807bcd88c0,fffffd80076bd4e0,7f802b3b00b0,5676016000,5676056000,0,d5fe210d2a5bc27c) at pmap_remove_ptes+0x33e pmap_do_remove(fffffd807bcd88c0,5676016000,5676056000,0) at pmap_do_remove+0x410 sys/arch/amd64/amd64/pmap.c:1896 uvm_unmap_kill_entry_withlock(fffffd806ad6ea60,fffffd805ce5d790,0) at uvm_unmap_kill_entry_withlock+0x1b1 sys/uvm/uvm_map.c:1897 uvm_map_teardown(fffffd806ad6ea60) at uvm_map_teardown+0x1c7 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd806ad6ea60) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2534 uvmspace_free(fffffd806ad6ea60) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3461 reaper(ffff80002a1491f8) at reaper+0x197 sys/kern/kern_exit.c:475 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 0x5676016000, opte 0xffffffffffffffff ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828ef97a) at panic+0x17b sys/kern/subr_prf.c:198 pmap_remove_ptes(fffffd807bcd88c0,fffffd80076bd4e0,7f802b3b00b0,5676016000,5676056000,0,d5fe210d2a5bc27c) at pmap_remove_ptes+0x33e pmap_do_remove(fffffd807bcd88c0,5676016000,5676056000,0) at pmap_do_remove+0x410 sys/arch/amd64/amd64/pmap.c:1896 uvm_unmap_kill_entry_withlock(fffffd806ad6ea60,fffffd805ce5d790,0) at uvm_unmap_kill_entry_withlock+0x1b1 sys/uvm/uvm_map.c:1897 uvm_map_teardown(fffffd806ad6ea60) at uvm_map_teardown+0x1c7 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd806ad6ea60) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2534 uvmspace_free(fffffd806ad6ea60) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3461 reaper(ffff80002a1491f8) at reaper+0x197 sys/kern/kern_exit.c:475 end trace frame: 0x0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a154ee0 rbx 0xffffffff82d38d77 cpu_info_full_primary+0x2d77 rdx 0 rcx 0xffff80002a1491f8 rax 0xffffffff82d37ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x26e1e0dbc34d8d55 r11 0x77c1c7e1fb96381c r12 0xffffffff82d38b78 cpu_info_full_primary+0x2b78 r13 0 r14 0 r15 0x1 rip 0xffffffff82185b6c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a154ed0 ss 0 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (reaper) tid=518725 pid=54437 tcnt=1 stat=onproc flags process=14000 proc=200 runpri=4, usrpri=60, slppri=4, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a149718,0xffff80002a148018 process=0xffff80002a15b5a8 user=0xffff80002a150000, vmspace=0xffffffff82e52208 estcpu=10, cpticks=5, pctcpu=2.20, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 39505 121795 36648 0 2 0x8000000 syz-executor.1 87761 406821 4514 0 7 0x8000000 syz-executor.2 87761 2232 4514 0 3 0xc000080 ttyout syz-executor.2 87761 77814 4514 0 2 0xc000000 syz-executor.2 12358 461501 49416 0 3 0x8000080 nanoslp syz-executor.3 12358 390254 49416 0 3 0xc000080 kqpoll syz-executor.3 12358 371403 49416 0 3 0xc000080 fsleep syz-executor.3 8871 68206 2670 0 3 0x8000080 nanoslp syz-executor.4 8871 298942 2670 0 3 0xc000080 kqpoll syz-executor.4 8871 32809 2670 0 3 0xc000080 fsleep syz-executor.4 3455 17679 61100 0 3 0x8000080 nanoslp syz-executor.6 3455 63602 61100 0 3 0xc000080 sbwait syz-executor.6 3455 273796 61100 0 3 0xc000080 fsleep syz-executor.6 75935 146904 82228 0 3 0x8000082 nanoslp syz-executor.7 4514 112671 82228 0 3 0x8000082 nanoslp syz-executor.2 61100 467867 82228 0 3 0x8000082 nanoslp syz-executor.6 36648 209037 82228 0 3 0x8000082 nanoslp syz-executor.1 2670 451597 82228 0 3 0x8000082 nanoslp syz-executor.4 91282 504071 82228 0 2 0x8000002 syz-executor.5 49416 18775 82228 0 3 0x8000082 nanoslp syz-executor.3 7233 215896 0 0 3 0x14200 acct acct 25056 45651 82228 0 3 0x8000082 nanoslp syz-executor.0 96681 471539 1 0 3 0x18100083 ttyin getty 26290 272662 0 0 3 0x14200 bored sosplice 82228 29515 55081 0 3 0x1a000082 thrsleep syz-fuzzer 82228 286840 55081 0 3 0x1e000082 nanoslp syz-fuzzer 82228 250689 55081 0 3 0x1e000082 wait syz-fuzzer 82228 339710 55081 0 3 0x1e000082 wait syz-fuzzer 82228 464747 55081 0 3 0x1e000082 thrsleep syz-fuzzer 82228 118094 55081 0 3 0x1e000082 wait syz-fuzzer 82228 160014 55081 0 3 0x1e000082 wait syz-fuzzer 82228 98492 55081 0 3 0x1e000082 wait syz-fuzzer 82228 149163 55081 0 3 0x1e000082 wait syz-fuzzer 82228 461197 55081 0 3 0x1e000082 wait syz-fuzzer 82228 283482 55081 0 3 0x1e000082 thrsleep syz-fuzzer 82228 244467 55081 0 3 0x1e000082 wait syz-fuzzer 82228 454739 55081 0 3 0x1e000082 thrsleep syz-fuzzer 82228 427576 55081 0 3 0x1e000082 kqread syz-fuzzer 82228 350222 55081 0 3 0x1e000082 thrsleep syz-fuzzer 82228 365508 55081 0 3 0x1e000082 thrsleep syz-fuzzer 55081 142009 77955 0 3 0x810008a sigsusp ksh 77955 105879 51466 0 3 0x1800009a kqread sshd 51466 323559 1 0 3 0x18000088 kqread sshd 36650 353671 26352 73 3 0x19100090 kqread syslogd 26352 491986 1 0 3 0x18100082 sbwait syslogd 22652 346676 1 0 3 0x18100080 kqread resolvd 32463 323797 45321 77 3 0x18100092 kqread dhcpleased 71885 423406 45321 77 3 0x18100092 kqread dhcpleased 45321 400400 1 0 3 0x18000080 kqread dhcpleased 11606 188626 0 0 3 0x14200 bored smr 41479 112261 0 0 3 0x14200 pgzero zerothread 83568 437227 0 0 3 0x14200 aiodoned aiodoned 16555 489170 0 0 3 0x14200 syncer update 86446 308463 0 0 3 0x14200 cleaner cleaner *54437 518725 0 0 7 0x14200 reaper 97180 471596 0 0 3 0x14200 pgdaemon pagedaemon 71202 447354 0 0 3 0x14200 bored viomb 15373 111435 0 0 3 0x40014200 acpi0 acpi0 89522 218444 0 0 3 0x40014200 idle1 72908 118154 0 0 3 0x14200 bored softnet3 17623 277334 0 0 3 0x14200 bored softnet2 47503 230681 0 0 3 0x14200 bored softnet1 38729 288415 0 0 3 0x14200 bored softnet0 39120 359929 0 0 3 0x14200 bored systqmp 71312 440293 0 0 3 0x14200 bored systq 1391 403277 0 0 3 0x14200 tmoslp softclockmp 57092 500236 0 0 3 0x40014200 tmoslp softclock 37333 338266 0 0 3 0x40014200 idle0 1 201916 0 0 3 0x8080082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &pmap->pm_mtx r = 0 (0xfffffd807bcd88d0) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 mtx_enter_try+0x103 #2 mtx_enter+0x4e sys/kern/kern_lock.c:266 #3 pmap_do_remove+0x99 rcr3 machine/cpufunc.h:139 [inline] #3 pmap_do_remove+0x99 pmap_map_ptes sys/arch/amd64/amd64/pmap.c:425 [inline] #3 pmap_do_remove+0x99 sys/arch/amd64/amd64/pmap.c:1800 #4 uvm_unmap_kill_entry_withlock+0x1b1 sys/uvm/uvm_map.c:1897 #5 uvm_map_teardown+0x1c7 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] #5 uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2534 #6 uvmspace_free+0xa6 sys/uvm/uvm_map.c:3461 #7 reaper+0x197 sys/kern/kern_exit.c:475 #8 proc_trampoline+0x10 Process 54437 (reaper) thread 0xffff80002a1491f8 (518725) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10221 6643K 7073K 166960K 16692 0 pcb 17 12K 12K 166960K 530 0 rtable 188 14K 16K 166960K 1740 0 pf 38 10K 11K 166960K 219 0 ifaddr 41 14K 16K 166960K 246 0 ifgroup 67 2K 3K 166960K 361 0 sysctl 4 1K 2K 166960K 11 0 counters 72 37K 37K 166960K 238 0 ioctlops 0 0K 4K 166960K 1677 0 iov 1 0K 20K 166960K 227 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1434 90K 90K 166960K 4460 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 34 0 VM map 2 1K 1K 166960K 2 0 sem 16 1K 1K 166960K 210 0 dirhash 12 2K 3K 166960K 84 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 15 53K 97K 166960K 3445 0 sigio 0 0K 0K 166960K 68 0 proc 58 79K 115K 166960K 1654 0 subproc 104 6K 7K 166960K 533 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 457 0 in_multi 69 5K 7K 166960K 563 0 ether_multi 1 0K 0K 166960K 30 0 mrt 1 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 103 466K 466K 166960K 103 0 exec 0 0K 1K 166960K 1156 0 pfkey data 0 0K 0K 166960K 5 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 294 113K 145K 166960K 31558 0 UVM aobj 131 8K 8K 166960K 137 0 pinsyscall 35 70K 100K 166960K 5474 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 294 0 NDP 15 0K 1K 166960K 181 0 temp 75 6820K 14756K 166960K 117844 0 kqueue 12 18K 28K 166960K 511 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 421 0 418 1 0 1 1 0 8 0 rtentry 112 588 0 509 4 0 4 4 0 8 0 unpcb 144 2521 0 2504 7 5 2 3 0 8 0 syncache 336 12 0 12 8 8 0 1 0 8 0 sackhl 24 4 0 4 4 4 0 1 0 8 0 tcpqe 32 36 0 36 1 1 0 1 0 8 0 tcpcb 808 882 0 877 15 13 2 2 0 8 1 arp 120 109 0 94 1 0 1 1 0 8 0 inpcb 384 3378 0 3368 28 25 3 3 0 8 1 nd6 136 157 0 133 3 1 2 2 0 8 0 pkpcb 40 21 0 21 14 13 1 1 0 8 1 kcovpl 48 41 0 33 1 0 1 1 0 8 0 ppxss 1168 24 0 24 15 14 1 1 0 8 1 pffrag 232 38 0 26 4 3 1 1 0 482 0 pffrnode 88 38 0 26 4 3 1 1 0 8 0 pffrent 40 410 0 398 4 3 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 pfstitem 24 316 0 218 1 0 1 1 0 8 0 pfstkey 128 316 0 218 4 0 4 4 0 8 0 pfstate 376 316 0 218 14 4 10 10 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2105 0 1778 34 9 25 30 0 8 0 art_table 32 2106 0 1778 4 0 4 4 0 8 0 art_node 16 580 0 510 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 10 4 3 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 200 0 186 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 65 0 48 3 0 3 3 0 8 0 dino2pl 256 7160 0 5632 96 0 96 96 0 8 0 ffsino 272 7160 0 5632 103 0 103 103 0 8 0 nchpl 144 12316 0 10566 67 0 67 67 0 8 0 uvmvnodes 80 9367 0 0 192 0 192 192 0 8 0 vnodes 216 9367 0 0 521 0 521 521 0 8 0 namei 1024 44922 0 44922 10 9 1 2 0 8 1 percpumem 16 133 0 83 1 0 1 1 0 8 0 vcpupl 3904 8 0 1 1 0 1 1 0 8 0 vmpool 696 31 0 24 1 0 1 1 0 8 0 kstatmem 264 196 0 166 3 0 3 3 0 8 0 scsiplug 72 17 0 17 8 8 0 1 0 8 0 scxspl 216 68834 0 68834 25 23 2 8 1 8 2 plimitpl 152 647 0 631 1 0 1 1 0 8 0 sigapl 424 3710 0 3662 9 2 7 8 0 8 0 futexpl 64 55881 0 55878 11 10 1 1 0 8 0 knotepl 120 821 0 0 14 3 11 11 0 8 0 kqueuepl 216 1075 0 1065 5 3 2 2 0 8 1 pipepl 320 627 0 599 3 0 3 3 0 8 0 fdescpl 496 3668 0 3642 7 3 4 5 0 8 0 filepl 152 24960 0 24707 16 3 13 13 0 8 0 lockfpl 104 996 0 994 1 0 1 1 0 8 0 lockfspl 48 452 0 450 1 0 1 1 0 8 0 sessionpl 144 57 0 41 1 0 1 1 0 8 0 pgrppl 48 139 0 123 1 0 1 1 0 8 0 ucredpl 104 4814 0 4800 1 0 1 1 0 8 0 zombiepl 144 3664 0 3662 1 0 1 1 0 8 0 processpl 1144 3710 0 3662 7 1 6 6 0 8 0 procpl 656 7343 0 7272 13 4 9 9 0 8 0 srpgc 96 35 0 35 12 11 1 1 0 8 1 sosppl 168 7 0 7 6 6 0 1 0 8 0 sockpl 664 6395 0 6365 41 36 5 7 0 8 1 mcl64k 65536 19 0 0 3 0 3 3 0 8 1 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 12 0 0 2 0 2 2 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 518 0 0 51 15 36 51 0 8 0 mtagpl 96 24 0 0 1 0 1 1 0 8 0 mbufpl 256 828 0 0 27 0 27 27 0 8 0 bufpl 280 16286 0 6013 734 0 734 734 0 8 0 anonpl 24 721798 0 715578 163 97 66 105 0 186 0 amapchunkpl 152 108600 0 107930 106 75 31 48 0 158 0 amappl16 200 15272 0 15132 107 94 13 23 0 8 0 amappl15 192 20 0 19 1 0 1 1 0 8 0 amappl14 184 261 0 247 2 1 1 2 0 8 0 amappl13 176 19 0 19 3 3 0 1 0 8 0 amappl12 168 4824 0 4795 2 0 2 2 0 8 0 amappl11 160 61 0 51 1 0 1 1 0 8 0 amappl10 152 97 0 86 1 0 1 1 0 8 0 amappl9 144 452 0 452 2 2 0 1 0 8 0 amappl8 136 276 0 241 2 0 2 2 0 8 0 amappl7 128 101 0 84 1 0 1 1 0 8 0 amappl6 120 791 0 776 2 1 1 2 0 8 0 amappl5 112 311 0 299 1 0 1 1 0 8 0 amappl4 104 835 0 798 3 1 2 3 0 8 0 amappl3 96 18648 0 18566 3 0 3 3 0 8 0 amappl2 88 4106 0 4036 4 2 2 4 0 8 0 amappl1 80 21791 0 21304 23 11 12 22 0 8 0 amappl 88 30462 0 30264 6 0 6 6 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 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 3699 0 3666 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3699 0 3666 1 0 1 1 0 8 0 vmmpekpl 168 29478 0 29408 4 0 4 4 0 8 0 vmmpepl 168 242896 0 241028 226 129 97 117 0 357 4 vmsppl 440 3698 0 3665 5 1 4 5 0 8 0 rwobjpl 56 71547 0 60953 169 19 150 150 0 8 0 pdppl 4096 7405 0 7337 267 194 73 81 0 8 5 pvpl 32 47805 0 0 390 4 386 387 0 265 0 pmappl 248 3698 0 3665 5 2 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 640 0 264 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828ef97a) at panic+0x17b sys/kern/subr_prf.c:198 pmap_remove_ptes(fffffd807bcd88c0,fffffd80076bd4e0,7f802b3b00b0,5676016000,5676056000,0,d5fe210d2a5bc27c) at pmap_remove_ptes+0x33e pmap_do_remove(fffffd807bcd88c0,5676016000,5676056000,0) at pmap_do_remove+0x410 sys/arch/amd64/amd64/pmap.c:1896 uvm_unmap_kill_entry_withlock(fffffd806ad6ea60,fffffd805ce5d790,0) at uvm_unmap_kill_entry_withlock+0x1b1 sys/uvm/uvm_map.c:1897 uvm_map_teardown(fffffd806ad6ea60) at uvm_map_teardown+0x1c7 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] uvm_map_teardown(fffffd806ad6ea60) at uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2534 uvmspace_free(fffffd806ad6ea60) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3461 reaper(ffff80002a1491f8) at reaper+0x197 sys/kern/kern_exit.c:475 end trace frame: 0x0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffff800029cebff0) at x86_ipi_db+0x1e 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+0x27 end of kernel end trace frame: 0x70db4e863650, count: 12 ddb{1}> trace x86_ipi_db(ffff800029cebff0) at x86_ipi_db+0x1e 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+0x27 end of kernel end trace frame: 0x70db4e863650, count: -3