uvm_fault(0xffffffff82b339b8, 0x45, 0, 2) -> e
kernel: page fault trap, code=0
Stopped at uvm_map_teardown+0x1ca: movq $0,0x20(%r12)
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*274994 64335 0 0x14000 0x200 1K reaper
uvm_map_teardown(fffffd8074244760) at uvm_map_teardown+0x1ca dead_entry_push sys/uvm/uvm_map.c:551 [inline]
uvm_map_teardown(fffffd8074244760) at uvm_map_teardown+0x1ca sys/uvm/uvm_map.c:2579
uvmspace_free(fffffd8074244760) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3504
reaper(ffff800021232d28) at reaper+0x19a sys/kern/kern_exit.c:448
end trace frame: 0x0, count: 12
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{1}>
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
*cpu1: uvm_fault(0xffffffff82b339b8, 0x45, 0, 2) -> e
ddb{1}> trace
uvm_map_teardown(fffffd8074244760) at uvm_map_teardown+0x1ca dead_entry_push sys/uvm/uvm_map.c:551 [inline]
uvm_map_teardown(fffffd8074244760) at uvm_map_teardown+0x1ca sys/uvm/uvm_map.c:2579
uvmspace_free(fffffd8074244760) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3504
reaper(ffff800021232d28) at reaper+0x19a sys/kern/kern_exit.c:448
end trace frame: 0x0, count: -3
ddb{1}> show registers
rdi 0xffffffff827efad8 uvm_map_addr_RBT_INFO
rsi 0xfffffd80747743b8
rbp 0xffff800021239480
rbx 0
rdx 0
rcx 0
rax 0x45
r8 0x59a4551d000
r9 0
r10 0xa6a2e52ac2debf4f
r11 0x725e73dda2d69d35
r12 0x25
r13 0x40000 acpi_pdirpa+0x2be68
r14 0xfffffd8074244760
r15 0xfffffd80747743b8
rip 0xffffffff81f142ca uvm_map_teardown+0x1ca
cs 0x8
rflags 0x10202 __ALIGN_SIZE+0xf202
rsp 0xffff800021239440
ss 0x10
uvm_map_teardown+0x1ca: movq $0,0x20(%r12)
ddb{1}> show proc
PROC (reaper) pid=274994 stat=onproc
flags process=14000<NOZOMBIE,SYSTEM> proc=200<SYSTEM>
pri=4, usrpri=60, nice=20
forw=0xffffffffffffffff, list=0xffff800021232fc8,0xffff800021232a98
process=0xffff8000ffffedb8 user=0xffff800021234000, vmspace=0xffffffff82b339b8
estcpu=10, cpticks=1, pctcpu=1.23
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
22435 70880 19759 0 3 0x80 nanoslp syz-executor.0
22435 86877 19759 0 3 0x4000080 kqread syz-executor.0
22435 128092 19759 0 3 0x4000080 fsleep syz-executor.0
37244 341474 60924 0 3 0x80 nanoslp syz-executor.3
37244 356549 60924 0 3 0x4000080 netcon syz-executor.3
37244 436525 60924 0 3 0x4000080 fsleep syz-executor.3
29950 320895 5314 0 3 0x82 piperd syz-executor.7
16575 433399 1 0 3 0x100083 ttyin getty
23250 481317 5314 0 3 0x82 piperd syz-executor.6
19759 188684 5314 0 3 0x82 nanoslp syz-executor.0
38805 410190 5314 0 3 0x82 piperd syz-executor.2
28555 154860 5314 0 3 0x82 piperd syz-executor.4
37517 383894 1 0 3 0 vmmaplk syz-executor.4
37517 341164 1 0 3 0x4000000 vmmaplk syz-executor.4
60924 229359 5314 0 3 0x82 nanoslp syz-executor.3
70295 140321 0 0 3 0x14280 nfsidl nfsio
26724 211769 0 0 3 0x14280 nfsidl nfsio
25055 221695 0 0 3 0x14280 nfsidl nfsio
25129 349998 0 0 3 0x14280 nfsidl nfsio
27042 243540 0 0 3 0x14280 nfsidl nfsio
98124 483082 0 0 3 0x14280 nfsidl nfsio
89805 87894 0 0 3 0x14280 nfsidl nfsio
87575 178468 0 0 3 0x14280 nfsidl nfsio
94608 227157 0 0 3 0x14280 nfsidl nfsio
76952 276265 0 0 3 0x14280 nfsidl nfsio
71138 126853 0 0 3 0x14280 nfsidl nfsio
50997 288822 0 0 3 0x14280 nfsidl nfsio
74855 149744 0 0 3 0x14280 nfsidl nfsio
46567 14913 0 0 3 0x14280 nfsidl nfsio
2931 380616 0 0 3 0x14280 nfsidl nfsio
72384 443616 0 0 3 0x14280 nfsidl nfsio
15675 308528 0 0 3 0x14280 nfsidl nfsio
18265 456957 0 0 3 0x14280 nfsidl nfsio
72370 150300 0 0 3 0x14280 nfsidl nfsio
11554 289647 0 0 3 0x14280 nfsidl nfsio
85197 434449 0 0 3 0x14200 bored sosplice
514 232724 5314 0 3 0x82 piperd syz-executor.5
5314 408653 27427 0 3 0x82 thrsleep syz-fuzzer
5314 494471 27427 0 3 0x4000082 thrsleep syz-fuzzer
5314 358375 27427 0 3 0x4000082 wait syz-fuzzer
5314 111794 27427 0 3 0x4000082 thrsleep syz-fuzzer
5314 58024 27427 0 3 0x4000082 wait syz-fuzzer
5314 280871 27427 0 3 0x4000082 thrsleep syz-fuzzer
5314 348432 27427 0 3 0x4000082 thrsleep syz-fuzzer
5314 153368 27427 0 3 0x4000082 kqread syz-fuzzer
5314 64910 27427 0 3 0x4000082 thrsleep syz-fuzzer
5314 269586 27427 0 3 0x4000082 wait syz-fuzzer
5314 357685 27427 0 3 0x4000082 wait syz-fuzzer
5314 134210 27427 0 3 0x4000082 wait syz-fuzzer
5314 233055 27427 0 3 0x4000082 wait syz-fuzzer
5314 303808 27427 0 3 0x4000082 thrsleep syz-fuzzer
5314 341280 27427 0 3 0x4000082 wait syz-fuzzer
5314 466871 27427 0 3 0x4000082 wait syz-fuzzer
27427 484719 40510 0 3 0x10008a sigsusp ksh
40510 228683 90371 0 3 0x9a kqread sshd
90371 498047 1 0 3 0x88 kqread sshd
16503 22518 99365 74 3 0x1100092 bpf pflogd
99365 248731 1 0 3 0x80 netio pflogd
800 311680 81153 73 3 0x1100090 kqread syslogd
81153 338623 1 0 3 0x100082 netio syslogd
39832 91735 1 0 3 0x100080 kqread resolvd
8635 415004 78770 77 3 0x100092 kqread dhcpleased
85644 502222 78770 77 3 0x100092 kqread dhcpleased
78770 395116 1 0 3 0x80 kqread dhcpleased
56046 500478 0 0 3 0x14200 bored smr
5485 501684 0 0 3 0x14200 pgzero zerothread
46931 199322 0 0 3 0x14200 aiodoned aiodoned
52464 420356 0 0 3 0x14200 syncer update
8985 123384 0 0 3 0x14200 cleaner cleaner
*64335 274994 0 0 7 0x14200 reaper
75983 18406 0 0 3 0x14200 pgdaemon pagedaemon
75875 179469 0 0 3 0x14200 bored viomb
78647 438351 0 0 3 0x40014200 acpi0 acpi0
41774 102161 0 0 3 0x40014200 idle1
71476 166161 0 0 3 0x14200 bored softnet
61864 178550 0 0 3 0x14200 bored softnet
32812 50956 0 0 3 0x14200 bored softnet
37450 428860 0 0 3 0x14200 bored softnet
74780 165151 0 0 3 0x14200 bored systqmp
92650 202826 0 0 3 0x14200 bored systq
77752 20117 0 0 3 0x40014200 bored softclock
51990 446035 0 0 7 0x40014200 idle0
1 377721 0 0 3 0x80082 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 37517 (syz-executor.4) thread 0xffff800021334d20 (341164)
shared rwlock vmmaplk r = 0 (0xfffffd8068474600)
#0 witness_lock+0x44d
#1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2 vm_map_lock_ln+0xda sys/uvm/uvm_map.c:5323
#3 uvm_map_pageable+0x11a sys/uvm/uvm_map.c:2293
#4 sys_mlock+0x184 sys/uvm/uvm_mmap.c:834
#5 syscall+0x438 mi_syscall sys/sys/syscall_mi.h:101 [inline]
#5 syscall+0x438 sys/arch/amd64/amd64/trap.c:599
#6 Xsyscall+0x128
Process 64335 (reaper) thread 0xffff800021232d28 (274994)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82aea660)
#0 witness_lock+0x44d
#1 kpageflttrap+0x29a sys/arch/amd64/amd64/trap.c:288
#2 kerntrap+0xef sys/arch/amd64/amd64/trap.c:332
#3 alltraps_kern_meltdown+0x7b
#4 uvm_map_teardown+0x1ca dead_entry_push sys/uvm/uvm_map.c:551 [inline]
#4 uvm_map_teardown+0x1ca sys/uvm/uvm_map.c:2579
#5 uvmspace_free+0xa6 sys/uvm/uvm_map.c:3504
#6 reaper+0x19a sys/kern/kern_exit.c:448
#7 proc_trampoline+0x1c
exclusive rwlock vmmaplk r = 0 (0xfffffd8074244778)
#0 witness_lock+0x44d
#1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2 vm_map_lock_ln+0xda sys/uvm/uvm_map.c:5323
#3 uvm_map_teardown+0x84 sys/uvm/uvm_map.c:2546
#4 uvmspace_free+0xa6 sys/uvm/uvm_map.c:3504
#5 reaper+0x19a sys/kern/kern_exit.c:448
#6 proc_trampoline+0x1c
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10248 6512K 8092K 78643K 18012 0
pcb 13 18K 21K 78643K 1383 0
rtable 164 7K 9K 78643K 2126 0
ifaddr 137 28K 31K 78643K 843 0
sysctl 3 1K 1K 78643K 5 0
counters 60 35K 37K 78643K 684 0
ioctlops 0 0K 4K 78643K 2231 0
iov 0 0K 32K 78643K 916 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 4 0
vnodes 1706 107K 107K 78643K 6072 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 5K 78643K 62 0
VM map 2 1K 1K 78643K 2 0
sem 20 11K 20K 78643K 2410 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 12 41K 89K 78643K 6867 0
sigio 0 0K 0K 78643K 183 0
proc 70 91K 127K 78643K 1583 0
subproc 104 6K 11K 78643K 541 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 372 0
in_multi 56 3K 6K 78643K 777 0
ether_multi 1 0K 0K 78643K 28 0
mrt 1 0K 0K 78643K 22 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 241 1076K 1076K 78643K 241 0
exec 0 0K 1K 78643K 1615 0
pfkey data 0 0K 0K 78643K 68 0
tdb 3 0K 0K 78643K 3 0
pagedep 1 8K 8K 78643K 1 0
inodedep 1 32K 32K 78643K 1 0
newblk 1 0K 0K 78643K 1 0
VM swap 8 62K 64K 78643K 10 0
UVM amap 401 570K 585K 78643K 50151 0
UVM aobj 124 7K 7K 78643K 130 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 297 0
NDP 15 0K 2K 78643K 233 0
temp 153 4699K 70234K 78643K 70471 0
kqueue 16 22K 24K 78643K 547 0
SYN cache 2 16K 16K 78643K 2 0
ddb{1}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache 128 22 0 0 1 0 1 1 0 8 0
rtpcb 120 1031 0 1028 17 16 1 3 0 8 0
rtentry 112 661 0 594 4 1 3 4 0 8 0
unpcb 144 16022 0 15999 128 124 4 11 0 8 3
syncache 296 62 0 62 18 18 0 1 0 8 0
tcpqe 32 150 0 150 13 13 0 1 0 8 0
tcpcb 776 2935 0 2928 82 79 3 11 0 8 1
arp 120 79 0 65 1 0 1 1 0 8 0
inpcb 368 7421 0 7408 127 123 4 14 0 8 1
nd6 48 144 0 133 1 0 1 1 0 8 0
pkpcb 40 7 0 7 2 2 0 1 0 8 0
kcovpl 48 31 0 23 1 0 1 1 0 8 0
mppekey 1024 2 0 2 1 1 0 1 0 8 0
ppxss 1256 239 0 239 16 16 0 1 0 8 0
pppxif 1704 100 0 100 13 13 0 1 0 8 0
pfstscr 40 132 0 129 2 1 1 1 0 8 0
pffrag 232 4 0 3 3 2 1 1 0 482 0
pffrnode 88 4 0 3 3 2 1 1 0 8 0
pffrent 40 15 0 14 5 4 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
pfanchor 1280 383 0 184 22 2 20 22 0 8 0
pfqueue 264 5 0 5 2 2 0 1 0 8 0
pfstitem 24 30 0 25 2 1 1 1 0 8 0
pfstkey 120 184 0 182 2 1 1 1 0 8 0
pfstate 384 95 0 92 2 1 1 1 0 8 0
rttmr 136 8 0 8 3 3 0 1 0 8 0
art_heap8 4096 10 0 8 8 5 3 3 0 8 1
art_heap4 256 3189 0 2894 37 10 27 29 0 8 0
art_table 32 3199 0 2902 4 0 4 4 0 8 0
art_node 16 658 0 599 1 0 1 1 0 8 0
sysvmsgpl 40 30 0 7 1 0 1 1 0 8 0
semupl 112 3 0 3 2 2 0 1 0 8 0
semapl 112 2397 0 2379 1 0 1 1 0 8 0
shmpl 112 127 0 6 4 0 4 4 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 10644 0 9175 93 0 93 93 0 8 0
ffsino 272 10644 0 9175 99 0 99 99 0 8 0
nchpl 144 21095 0 20592 63 39 24 63 0 8 0
rtmask 32 6 0 6 2 2 0 1 0 8 0
uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0
vnodes 216 5926 0 0 330 0 330 330 0 8 0
namei 1024 77211 0 77211 5 4 1 2 0 8 1
percpumem 16 354 0 312 1 0 1 1 0 8 0
vcpupl 2048 36 0 2 5 0 5 5 0 8 0
vmpool 568 38 0 4 3 0 3 3 0 8 0
kstatmem 264 242 0 212 3 0 3 3 0 8 0
scsiplug 72 7 0 7 3 3 0 1 0 8 0
scxspl 216 58420 0 58420 21 20 1 7 0 8 1
plimitpl 152 730 0 713 1 0 1 1 0 8 0
sigapl 424 7153 0 7089 10 2 8 8 0 8 0
futexpl 64 63433 0 63431 3 2 1 1 0 8 0
knotepl 120 647 0 0 10 1 9 9 0 8 0
kqueuepl 216 1699 0 1657 43 40 3 5 0 8 0
pipepl 320 1703 0 1675 57 54 3 13 0 8 0
fdescpl 496 7114 0 7089 5 0 5 5 0 8 0
filepl 152 63036 0 62720 155 137 18 26 0 8 4
lockfpl 104 2181 0 2179 6 5 1 2 0 8 0
lockfspl 48 543 0 541 1 0 1 1 0 8 0
sessionpl 144 50 0 32 1 0 1 1 0 8 0
pgrppl 48 74 0 56 1 0 1 1 0 8 0
ucredpl 104 6183 0 6168 1 0 1 1 0 8 0
zombiepl 144 7090 0 7089 3 2 1 1 0 8 0
processpl 1064 7153 0 7089 5 0 5 5 0 8 0
procpl 672 20830 0 20746 23 14 9 11 0 8 0
srpgc 96 29 0 29 10 9 1 1 0 8 1
sosppl 168 96 0 96 9 9 0 1 0 8 0
sockpl 488 24553 0 24516 683 669 14 38 0 8 8
mcl64k 65536 17 0 0 3 0 3 3 0 8 0
mcl16k 16384 25 0 0 4 1 3 3 0 8 0
mcl12k 12288 25 0 0 2 0 2 2 0 8 0
mcl9k 9216 9 0 0 1 0 1 1 0 8 0
mcl8k 8192 25 0 0 4 1 3 3 0 8 0
mcl4k 4096 18 0 0 3 0 3 3 0 8 0
mcl2k2 2112 7 0 0 1 0 1 1 0 8 0
mcl2k 2048 443 0 0 45 11 34 45 0 8 0
mtagpl 96 392 0 0 9 2 7 9 0 8 0
mbufpl 256 6645 0 0 415 0 415 415 0 8 0
bufpl 288 14338 0 8004 453 0 453 453 0 8 0
anonpl 24 1482387 0 1464771 211 89 122 138 0 186 0
amapchunkpl 152 141890 0 141073 89 50 39 46 0 158 0
amappl16 200 13366 0 12872 104 77 27 39 0 8 0
amappl15 192 11 0 11 1 1 0 1 0 8 0
amappl14 184 224 0 211 2 1 1 2 0 8 0
amappl13 176 23 0 22 1 0 1 1 0 8 0
amappl12 168 694 0 692 1 0 1 1 0 8 0
amappl11 160 54 0 39 1 0 1 1 0 8 0
amappl10 152 57 0 42 1 0 1 1 0 8 0
amappl9 144 1017 0 1016 1 0 1 1 0 8 0
amappl8 136 389 0 309 3 0 3 3 0 8 0
amappl7 128 100 0 79 1 0 1 1 0 8 0
amappl6 120 563 0 546 2 1 1 2 0 8 0
amappl5 112 181 0 169 1 0 1 1 0 8 0
amappl4 104 923 0 891 2 1 1 2 0 8 0
amappl3 96 21397 0 21344 2 0 2 2 0 8 0
amappl2 88 7828 0 7759 3 1 2 3 0 8 0
amappl1 80 165431 0 164697 22 4 18 22 0 8 0
amappl 88 49446 0 49211 8 1 7 7 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 129 0 6 3 0 3 3 0 8 0
uaddrrnd 24 7152 0 7093 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 7152 0 7093 1 0 1 1 0 8 0
vmmpekpl 168 61629 0 61544 5 0 5 5 0 8 0
vmmpepl 168 658574 0 656015 257 121 136 148 0 357 0
vmmpepl: pool(0xffffffff82b379a0:vmmpepl): page inconsistency: page 0x0; at page head addr 0xfffffd8074774f90 (p 0xfffffd8074774000)
vmsppl 368 7151 0 7092 7 1 6 6 0 8 0
rwobjpl 56 182996 0 175185 124 10 114 116 0 8 0
pdppl 4096 14311 0 14218 488 384 104 104 0 8 11
pvpl 32 2931988 0 2908739 428 209 219 275 0 265 0
pmappl 248 7151 0 7092 6 1 5 5 0 8 1
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 1819 0 559 37 0 37 37 0 8 0
ddb{1}> machine ddbcpu 0
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
x86_ipi_db(ffffffff82934ff0) at x86_ipi_db+0x1a 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+0x23
acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffffffff82934ff0) at sched_idle+0x417 sys/kern/kern_sched.c:175
end trace frame: 0x0, count: 10
ddb{0}> trace
x86_ipi_db(ffffffff82934ff0) at x86_ipi_db+0x1a 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+0x23
acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffffffff82934ff0) at sched_idle+0x417 sys/kern/kern_sched.c:175
end trace frame: 0x0, count: -5
ddb{0}> machine ddbcpu 1
Stopped at uvm_map_teardown+0x1ca: movq $0,0x20(%r12)
uvm_map_teardown(fffffd8074244760) at uvm_map_teardown+0x1ca dead_entry_push sys/uvm/uvm_map.c:551 [inline]
uvm_map_teardown(fffffd8074244760) at uvm_map_teardown+0x1ca sys/uvm/uvm_map.c:2579
uvmspace_free(fffffd8074244760) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3504
reaper(ffff800021232d28) at reaper+0x19a sys/kern/kern_exit.c:448
end trace frame: 0x0, count: 12
ddb{1}> trace
uvm_map_teardown(fffffd8074244760) at uvm_map_teardown+0x1ca dead_entry_push sys/uvm/uvm_map.c:551 [inline]
uvm_map_teardown(fffffd8074244760) at uvm_map_teardown+0x1ca sys/uvm/uvm_map.c:2579
uvmspace_free(fffffd8074244760) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3504
reaper(ffff800021232d28) at reaper+0x19a sys/kern/kern_exit.c:448
end trace frame: 0x0, count: -3