panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va 0x313c2c16000, 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(ffffffff834d282f) at panic+0x1e5 sys/kern/subr_prf.c:198 pmap_remove_pte(fffffd806c445000,fffffd80087bb5d8,7f8189e16000,313c2c00000,313c2cae000,0) at pmap_remove_pte pmap_do_remove(fffffd806c445000,313c2ba3000,313c2cae000,0) at pmap_do_remove+0x589 sys/arch/amd64/amd64/pmap.c:1920 uvm_unmap_kill_entry_withlock(fffffd806c8d29a0,fffffd806d7321c0,0) at uvm_unmap_kill_entry_withlock+0x269 sys/uvm/uvm_map.c:1869 uvm_map_teardown(fffffd806c8d29a0) at uvm_map_teardown+0x117 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:-1 [inline] uvm_map_teardown(fffffd806c8d29a0) at uvm_map_teardown+0x117 sys/uvm/uvm_map.c:2497 exit1(ffff8000fffee018,0,0,1) at exit1+0x6fc sys/kern/kern_exit.c:260 sys_exit(ffff8000fffee018,ffff800033febcf0,ffff800033febc40) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800033febcf0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800033febcf0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7048e2237b50, count: 5 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 0x313c2c16000, opte 0xffffffffffffffff ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834d282f) at panic+0x1e5 sys/kern/subr_prf.c:198 pmap_remove_pte(fffffd806c445000,fffffd80087bb5d8,7f8189e16000,313c2c00000,313c2cae000,0) at pmap_remove_pte pmap_do_remove(fffffd806c445000,313c2ba3000,313c2cae000,0) at pmap_do_remove+0x589 sys/arch/amd64/amd64/pmap.c:1920 uvm_unmap_kill_entry_withlock(fffffd806c8d29a0,fffffd806d7321c0,0) at uvm_unmap_kill_entry_withlock+0x269 sys/uvm/uvm_map.c:1869 uvm_map_teardown(fffffd806c8d29a0) at uvm_map_teardown+0x117 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:-1 [inline] uvm_map_teardown(fffffd806c8d29a0) at uvm_map_teardown+0x117 sys/uvm/uvm_map.c:2497 exit1(ffff8000fffee018,0,0,1) at exit1+0x6fc sys/kern/kern_exit.c:260 sys_exit(ffff8000fffee018,ffff800033febcf0,ffff800033febc40) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800033febcf0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800033febcf0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7048e2237b50, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800033feb8a0 rbx 0xffffffff83947e07 cpu_info_full_primary+0x2e07 rdx 0 rcx 0xffff8000fffee018 rax 0xffffffff83946ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x4cb9a4e84c59e04a r11 0x2624ce9cd020eda9 r12 0xffffffff83947c08 cpu_info_full_primary+0x2c08 r13 0 r14 0 r15 0x1 rip 0xffffffff8229bed5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800033feb890 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=71864 pid=38942 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=26, usrpri=70, slppri=26, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000fffee018 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000337bc2c8,0xffff80003c3f34f8 process=0xffff80003c3f49c0 user=0xffff800033fe6000, vmspace=0xfffffd806c8d29a0 estcpu=20, cpticks=4, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 97298 321869 68954 0 3 0x82 piperd syz-executor 29848 98594 0 0 3 0x14200 acct acct 96862 247768 68954 0 3 0x82 piperd syz-executor 37292 118507 68954 0 3 0x82 piperd syz-executor 13022 468006 1 0 3 0x100083 ttyin getty 11094 122298 68954 0 3 0x82 piperd syz-executor 31900 161450 68954 0 3 0x82 piperd syz-executor 65625 27046 68954 0 3 0x82 wait syz-executor 394 48204 68954 0 3 0x82 piperd syz-executor 68954 401319 86711 0 3 0x82 nanoslp syz-executor 86711 410980 51210 0 3 0x10008a sigsusp ksh 51210 60870 24208 0 3 0x98 kqread sshd-session 24208 460423 40624 0 3 0x92 kqread sshd-session 40624 71889 1 0 3 0x88 kqread sshd 93150 272717 94314 74 3 0x1100092 bpf pflogd 94314 356522 1 0 3 0x80 sbwait pflogd 3751 40229 86212 73 3 0x1100090 kqread syslogd 86212 18922 1 0 3 0x100082 sbwait syslogd 81362 325126 1 0 3 0x100080 kqread resolvd 88673 462774 15092 77 3 0x100092 kqread dhcpleased 266 300127 15092 77 3 0x100092 kqread dhcpleased 15092 21611 1 0 3 0x80 kqread dhcpleased 22962 269408 0 0 3 0x14200 bored smr 88049 205868 0 0 3 0x14200 pgzero zerothread 40454 238020 0 0 3 0x14200 aiodoned aiodoned 28058 357508 0 0 3 0x14200 syncer update 37766 267208 0 0 3 0x14200 cleaner cleaner 61265 398812 0 0 3 0x14200 reaper reaper 84375 82968 0 0 3 0x14200 pgdaemon pagedaemon 11754 468043 0 0 3 0x14200 bored viomb 83800 496777 0 0 3 0x40014200 acpi0 acpi0 86236 93337 0 0 7 0x40014200 idle1 1055 76014 0 0 3 0x14200 bored softnet1 10719 126923 0 0 3 0x14200 bored softnet0 32065 438171 0 0 3 0x14200 bored systqmp 3813 122810 0 0 3 0x14200 bored systq 15163 467937 0 0 3 0x14200 tmoslp softclockmp 19435 99851 0 0 3 0x40014200 tmoslp softclock 4673 275287 0 0 3 0x40014200 idle0 1 350215 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &pmap->pm_mtx r = 0 (0xfffffd806c445010) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 mtx_enter+0x4b4 sys/kern/kern_lock.c:487 #2 pmap_do_remove+0xa9 rcr3 sys/arch/amd64/compile/SYZKALLER/obj/machine/cpufunc.h:139 [inline] #2 pmap_do_remove+0xa9 pmap_map_ptes sys/arch/amd64/amd64/pmap.c:437 [inline] #2 pmap_do_remove+0xa9 sys/arch/amd64/amd64/pmap.c:1824 #3 uvm_unmap_kill_entry_withlock+0x269 sys/uvm/uvm_map.c:1869 #4 uvm_map_teardown+0x117 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:-1 [inline] #4 uvm_map_teardown+0x117 sys/uvm/uvm_map.c:2497 #5 exit1+0x6fc sys/kern/kern_exit.c:260 #6 sys_exit+0x1a sys/kern/kern_exit.c:-1 #7 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #7 syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 #8 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11104 12121K 13101K 166960K 14150 0 pcb 17 13K 28K 166960K 541 0 rtable 205 13K 15K 166960K 1125 0 pf 37 18K 81K 166960K 279 0 ifaddr 33 6K 8K 166960K 214 0 ifgroup 48 2K 3K 166960K 343 0 sysctl 4 1K 9K 166960K 21 0 counters 68 36K 38K 166960K 398 0 ioctlops 0 0K 4K 166960K 2184 0 iov 0 0K 24K 166960K 130 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1404 88K 89K 166960K 3153 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 28 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 184 0 dirhash 12 2K 2K 166960K 54 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 9 29K 240K 166960K 2575 0 sigio 0 0K 0K 166960K 28 0 proc 72 115K 180K 166960K 1189 0 subproc 63 3K 4K 166960K 207 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 221 0 in_multi 65 4K 7K 166960K 404 0 ether_multi 1 0K 0K 166960K 35 0 mrt 2 0K 0K 166960K 56 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 265 1182K 1182K 166960K 265 0 exec 0 0K 1K 166960K 952 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 179 141K 169K 166960K 24714 0 UVM aobj 55 20K 20K 166960K 61 0 pinsyscall 34 68K 102K 166960K 4134 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 183 0 NDP 13 0K 2K 166960K 151 0 temp 76 9087K 9205K 166960K 106740 0 kqueue 13 20K 32K 166960K 435 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 26 0 0 1 0 1 1 0 8 0 rtpcb 120 366 0 363 3 2 1 3 0 8 0 rtentry 176 344 0 277 6 0 6 6 0 8 0 unpcb 144 1769 0 1752 14 10 4 6 0 8 3 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpcb 736 762 0 758 13 10 3 7 0 8 2 arp 136 58 0 47 1 0 1 1 0 8 0 inpcb 328 2313 0 2306 14 11 3 7 0 8 2 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 152 75 0 59 1 0 1 1 0 8 0 pkpcb 40 16 0 16 5 4 1 1 0 8 1 kcovpl 48 23 0 16 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1192 119 0 119 3 2 1 1 0 8 1 pppxif 1504 16 0 16 6 5 1 1 0 8 1 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 18 0 3 1 0 1 1 0 482 0 pffrnode 88 18 0 3 1 0 1 1 0 8 0 pffrent 40 26 0 10 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 pfrktable 1344 12 0 8 1 0 1 1 0 8 0 pfsrclim 320 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pfstitem 24 145 0 52 1 0 1 1 0 8 0 pfstkey 128 146 0 53 4 0 4 4 0 8 0 pfstate 448 145 0 53 11 0 11 11 0 8 0 pfrule 1360 29 0 20 2 1 1 2 0 8 0 rttmr 136 3 0 3 3 3 0 1 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 1605 0 1291 37 12 25 31 0 8 1 art_table 40 1609 0 1291 5 0 5 5 0 8 0 art_node 32 343 0 283 1 0 1 1 0 8 0 sysvmsgpl 40 59 0 19 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 178 0 168 1 0 1 1 0 8 0 shmpl 112 48 0 5 2 0 2 2 0 8 0 dirhash 1024 45 0 28 3 0 3 3 0 8 0 dino2pl 256 6204 0 4722 93 0 93 93 0 8 0 ffsino 296 6204 0 4722 115 0 115 115 0 8 0 nchpl 144 9479 0 7751 65 0 65 65 0 8 0 rtmask 32 10 0 10 3 2 1 1 0 8 1 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 34276 0 34276 3 2 1 1 0 8 1 percpumem 16 214 0 165 1 0 1 1 0 8 0 vcpupl 3968 10 0 1 2 0 2 2 0 8 0 vmpool 848 10 0 1 2 0 2 2 0 8 0 pfiaddrpl 120 3 0 1 1 0 1 1 0 8 0 kstatmem 264 206 0 180 4 2 2 3 0 8 0 scsiplug 72 15 0 15 4 3 1 1 0 8 1 scxspl 216 81473 0 81473 18 16 2 8 1 8 2 plimitpl 152 810 0 794 1 0 1 1 0 8 0 sigapl 424 2876 0 2835 9 2 7 8 0 8 0 knotepl 120 562 0 0 18 0 18 18 0 8 0 kqueuepl 224 1085 0 1076 12 8 4 5 0 8 3 pipepl 344 619 0 592 18 9 9 9 0 8 6 fdescpl 528 2830 0 2807 3 0 3 3 0 8 0 filepl 160 18742 0 18547 30 15 15 18 0 8 2 lockfpl 104 1270 0 1268 4 3 1 3 0 8 0 lockfspl 48 374 0 372 1 0 1 1 0 8 0 sessionpl 144 41 0 32 1 0 1 1 0 8 0 pgrppl 48 91 0 75 1 0 1 1 0 8 0 ucredpl 104 2812 0 2799 1 0 1 1 0 8 0 zombiepl 144 3413 0 3412 1 0 1 1 0 8 0 processpl 1232 2876 0 2835 6 2 4 6 0 8 0 procpl 664 6840 0 6799 8 1 7 8 0 8 1 sosppl 176 15 0 15 4 3 1 1 0 8 1 sockpl 752 4620 0 4593 45 34 11 19 0 8 8 mcl64k 65536 8 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 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 126 0 0 16 0 16 16 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 37 0 0 5 0 5 5 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 394 0 0 24 0 24 24 0 8 0 bufpl 280 35901 0 29771 439 0 439 439 0 8 0 anonpl 32 15682 0 0 127 0 127 127 0 246 0 amapchunkpl 152 83496 0 83167 57 27 30 41 0 158 7 amappl16 200 9665 0 9640 56 40 16 28 0 8 7 amappl15 192 13 0 13 2 2 0 1 0 8 0 amappl14 184 619 0 618 1 0 1 1 0 8 0 amappl13 176 159 0 147 1 0 1 1 0 8 0 amappl12 168 3150 0 3127 2 0 2 2 0 8 0 amappl11 160 5 0 5 1 1 0 1 0 8 0 amappl10 152 79 0 64 1 0 1 1 0 8 0 amappl9 144 259 0 259 1 1 0 1 0 8 0 amappl8 136 165 0 162 1 0 1 1 0 8 0 amappl7 128 189 0 176 1 0 1 1 0 8 0 amappl6 120 314 0 312 1 0 1 1 0 8 0 amappl5 112 104 0 92 1 0 1 1 0 8 0 amappl4 104 365 0 343 1 0 1 1 0 8 0 amappl3 96 17377 0 17304 4 0 4 4 0 8 0 amappl2 88 695 0 634 2 0 2 2 0 8 0 amappl1 80 21381 0 20804 17 3 14 17 0 8 0 amappl 88 23291 0 23181 5 0 5 5 0 92 0 uvmvnodes 80 193 0 0 4 0 4 4 0 8 0 dma65536 65536 3 0 3 2 2 0 1 0 8 0 dma8192 8192 2 0 2 2 2 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 10 0 10 3 2 1 1 0 8 1 dma128 128 258 0 258 5 5 0 1 0 8 0 dma64 64 8 0 8 3 2 1 1 0 8 1 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 60 0 6 1 0 1 1 0 8 0 uaddrrnd 24 2830 0 2806 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2830 0 2806 1 0 1 1 0 8 0 vmmpekpl 168 23531 0 23461 4 0 4 4 0 8 0 vmmpepl 168 184226 0 182669 115 16 99 109 0 357 2 vmsppl 488 2829 0 2806 5 0 5 5 0 8 0 rwobjpl 80 49480 0 48369 34 1 33 34 0 8 0 pdppl 4096 5687 0 5623 128 46 82 85 0 8 18 pvpl 32 22265 0 0 180 0 180 180 0 265 0 pmappl 256 2839 0 2807 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 356 0 80 9 0 9 9 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:438 panic(ffffffff834d282f) at panic+0x1e5 sys/kern/subr_prf.c:198 pmap_remove_pte(fffffd806c445000,fffffd80087bb5d8,7f8189e16000,313c2c00000,313c2cae000,0) at pmap_remove_pte pmap_do_remove(fffffd806c445000,313c2ba3000,313c2cae000,0) at pmap_do_remove+0x589 sys/arch/amd64/amd64/pmap.c:1920 uvm_unmap_kill_entry_withlock(fffffd806c8d29a0,fffffd806d7321c0,0) at uvm_unmap_kill_entry_withlock+0x269 sys/uvm/uvm_map.c:1869 uvm_map_teardown(fffffd806c8d29a0) at uvm_map_teardown+0x117 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:-1 [inline] uvm_map_teardown(fffffd806c8d29a0) at uvm_map_teardown+0x117 sys/uvm/uvm_map.c:2497 exit1(ffff8000fffee018,0,0,1) at exit1+0x6fc sys/kern/kern_exit.c:260 sys_exit(ffff8000fffee018,ffff800033febcf0,ffff800033febc40) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800033febcf0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800033febcf0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7048e2237b50, count: -10 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299bdff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 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+0x457 sys/dev/acpi/acpicpu_x86.c:1224 sched_idle(ffff8000299bdff0) at sched_idle+0x391 sys/kern/kern_sched.c:191 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff8000299bdff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 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+0x457 sys/dev/acpi/acpicpu_x86.c:1224 sched_idle(ffff8000299bdff0) at sched_idle+0x391 sys/kern/kern_sched.c:191 end trace frame: 0x0, count: -5