uvm_fault(0xfffffd806ee961f0, 0x0, 0, 1) -> e
fatal page fault in supervisor mode
trap type 6 code 0 rip ffffffff8166a6c8 cs 8 rflags 10207 cr2 0 cpl 0 rsp ffff80002a341d80
gsbase 0xffff8000299edff0 kgsbase 0x0
panic: trap type 6, code=0, pc=ffffffff8166a6c8
Starting stack trace...
panic(ffffffff833cd967) at panic+464
kerntrap(ffff80002a341cd0) at kerntrap+779
alltraps_kern_meltdown() at alltraps_kern_meltdown+123
dt_ioctl_record_stop(ffff800000afa000) at dt_ioctl_record_stop+264
dtclose(11e5f,81,2000,ffff80003c436040) at dtclose+265
spec_close(ffff80002a341e80) at spec_close+1126
VOP_CLOSE(fffffd805d33d028,81,fffffd80097fb5b0,ffff80003c436040) at VOP_CLOSE+306
vn_closefile(fffffd806c091540,ffff80003c436040) at vn_closefile+299
fdrop(fffffd806c091540,ffff80003c436040) at fdrop+289
closef(fffffd806c091540,ffff80003c436040) at closef+402
syscall(ffff80002a3420e0) at syscall+3028
Xsyscall() at Xsyscall+296
end of kernel
end trace frame: 0xbb73ffb9c20, count: 245
End of stack trace.
WARNING: SPL NOT LOWERED ON SYSCALL 11 20 EXIT 0 4
Stopped at savectx+174: movl $0,%gs:1672
TID PID UID PRFLAGS PFLAGS CPU COMMAND
476365 23047 0 0 0 0 syz-executor
*253516 58806 0 0x10000002 0 1 syz-executor
savectx() at savectx+174
end of kernel
end trace frame: 0x772b21db9590, count: 14
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}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
*cpu1: uvm_fault(0xfffffd806ee961f0, 0x0, 0, 1) -> e
ddb{1}> trace
savectx() at savectx+174
end of kernel
end trace frame: 0x772b21db9590, count: -1
ddb{1}> show registers
rdi 0
rsi 0
rbp 18446603336929592160
rbx 0
rdx 0
rcx 18446603336928808872
rax 51
r8 18446603336929591952
r9 0
r10 6114119708428077388
r11 16569773839928477115
r12 0
r13 0
r14 18446603336928808872
r15 0
rip 18446744071612720110 savectx+174
cs 8
rflags 70
rsp 18446603336929592032
ss 16
savectx+174: movl $0,%gs:1672
ddb{1}> show proc
PROC (syz-executor) tid=253516 pid=58806 tcnt=1 stat=onproc
flags process=10000002<EXEC,WAITEVENT> proc=0
runpri=83, usrpri=83, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
forw=0xffffffffffffffff, list=0xffff80002a2d4548,0xffff8000ffffc2b0
process=0xffff8000ffff6688 user=0xffff80002a38f000, vmspace=0xfffffd800b027d58
estcpu=33, cpticks=77, pctcpu=0.20, user=3, sys=71, intr=3
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
57283 204776 51469 0 2 0 syz-executor
61785 220068 99013 0 2 0 syz-executor
61785 472839 99013 0 2 0x4000000 syz-executor
78991 420526 81430 0 2 0 syz-executor
78991 120714 81430 0 2 0x4000000 syz-executor
23047 476365 76950 0 7 0 syz-executor
23047 86042 76950 0 3 0x4000000 sbar syz-executor
23047 381459 76950 0 3 0x4000080 fsleep syz-executor
23047 269813 76950 0 3 0x4000080 fsleep syz-executor
29135 457871 37606 0 2 0 syz-executor
29135 477994 37606 0 3 0x4000080 ttyin syz-executor
29135 109227 37606 0 3 0x4000080 ttyretype syz-executor
29135 501539 37606 0 2 0x4000000 syz-executor
83162 139730 14176 0 2 0 syz-executor
83162 425670 14176 0 3 0x4000080 kqsel syz-executor
83162 305808 14176 0 3 0x4000080 fsleep syz-executor
83162 168927 14176 0 2 0x4000000 syz-executor
37606 163786 18280 0 3 0x82 nanoslp syz-executor
81430 422742 18280 0 3 0x82 nanoslp syz-executor
20063 449186 0 0 3 0x14200 acct acct
76950 313689 18280 0 3 0x82 nanoslp syz-executor
51469 303317 18280 0 3 0x82 nanoslp syz-executor
62140 434893 0 0 3 0x14280 nfsidl nfsio
69614 179991 0 0 3 0x14280 nfsidl nfsio
63329 12711 0 0 3 0x14280 nfsidl nfsio
29043 27694 0 0 3 0x14280 nfsidl nfsio
7679 514724 18280 0 2 0x2 syz-executor
*58806 253516 18280 0 7 0x10000002 syz-executor
14176 425356 18280 0 3 0x82 nanoslp syz-executor
99013 46978 18280 0 3 0x82 nanoslp syz-executor
18280 465954 30241 0 3 0x82 kqread syz-executor
30241 269841 76888 0 3 0x10008a sigsusp ksh
76888 148752 87947 0 3 0x98 kqread sshd-session
87947 310843 93507 0 3 0x92 kqread sshd-session
52071 288033 1 0 3 0x100083 ttyopn getty
93507 133419 1 0 3 0x88 kqread sshd
97872 501809 30186 74 3 0x1100092 bpf pflogd
30186 451151 1 0 3 0x80 sbwait pflogd
40116 241516 17024 73 3 0x1100090 kqread syslogd
17024 101005 1 0 3 0x100082 sbwait syslogd
27897 171423 1 0 3 0x100080 kqread resolvd
54132 332579 74467 77 3 0x100092 kqread dhcpleased
33404 506296 74467 77 3 0x100092 kqread dhcpleased
74467 521173 1 0 3 0x80 kqread dhcpleased
85502 475985 0 0 3 0x14200 bored smr
77264 71588 0 0 2 0x14200 zerothread
92282 17382 0 0 3 0x14200 aiodoned aiodoned
21281 258504 0 0 3 0x14200 syncer update
74761 352379 0 0 3 0x14200 cleaner cleaner
42103 161486 0 0 3 0x14200 reaper reaper
1780 484452 0 0 3 0x14200 pgdaemon pagedaemon
75836 171677 0 0 3 0x14200 bored viomb
63465 38391 0 0 3 0x40014200 acpi0 acpi0
46490 507122 0 0 3 0x40014200 idle1
54174 283628 0 0 3 0x14200 bored softnet1
25631 110236 0 0 3 0x14200 netlock softnet0
22760 140099 0 0 3 0x14200 smrbar systqmp
83499 278009 0 0 3 0x14200 bored systq
58740 115006 0 0 3 0x14200 tmoslp softclockmp
12310 181214 0 0 3 0x40014200 tmoslp softclock
36810 285446 0 0 3 0x40014200 idle0
1 22633 0 0 3 0x82 wait init
0 0 -1 0 3 0x10010200 scheduler swapper
ddb{1}> show all locks
Process 61785 (syz-executor) thread 0xffff80003c436808 (220068)
exclusive rwlock vmmaplk r = 0 (0xfffffd806c26c6d0)
#0 witness_lock+1521
#1 rw_do_enter_write+1049
#2 vm_map_lock_ln+302
#3 uvm_map_protect+224
#4 sys_mprotect+849
#5 syscall+3028
#6 Xsyscall+296
Process 78991 (syz-executor) thread 0xffff80003c4362d8 (120714)
exclusive rrwlock inode r = 0 (0xfffffd806ce2f7d8)
#0 witness_lock+1521
#1 rw_do_enter_write+1049
#2 rrw_enter+198
#3 VOP_LOCK+189
#4 vn_lock+164
#5 vget+674
#6 ufs_ihashget+389
#7 ffs_vget+140
#8 ufs_lookup+5821
#9 VOP_LOOKUP+110
#10 vfs_lookup+2362
#11 namei+1994
#12 domkdirat+139
#13 syscall+2839
#14 Xsyscall+296
Process 23047 (syz-executor) thread 0xffff80003c436040 (86042)
exclusive rwlock dtlk r = 0 (0xffffffff837c98f8)
#0 witness_lock+1521
#1 rw_do_enter_write+1049
#2 dt_ioctl_record_stop+46
#3 dtclose+265
#4 spec_close+1126
#5 VOP_CLOSE+306
#6 vn_closefile+299
#7 fdrop+289
#8 closef+402
#9 syscall+3028
#10 Xsyscall+296
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff839f0d08)
#0 witness_lock+1521
#1 vn_closefile+65
#2 fdrop+289
#3 closef+402
#4 syscall+3028
#5 Xsyscall+296
Process 22760 (systqmp) thread 0xffff8000ffffecf8 (140099)
shared rwlock systqmp r = 0 (0xffffffff837f80e8)
#0 witness_lock+1521
#1 taskq_thread+298
#2 proc_trampoline+16
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10233 11125K 11378K 166960K 13106 0
pcb 17 15K 16K 166960K 329 0
rtable 189 8K 8K 166960K 682 0
pf 36 18K 67486K 166960K 168 0
ifaddr 36 6K 8K 166960K 131 0
ifgroup 51 2K 2K 166960K 208 0
sysctl 4 1K 9K 166960K 24 0
counters 66 36K 38K 166960K 198 0
ioctlops 0 0K 4K 166960K 1939 0
iov 0 0K 28K 166960K 173 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1460 92K 92K 166960K 2661 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 5K 166960K 22 0
VM map 2 1K 1K 166960K 2 0
sem 12 1K 1K 166960K 60 0
dirhash 12 2K 3K 166960K 45 0
ACPI 1692 195K 286K 166960K 12470 0
file desc 16 57K 236K 166960K 1570 0
sigio 0 0K 0K 166960K 33 0
proc 72 115K 164K 166960K 808 0
subproc 72 4K 4K 166960K 120 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 322 0
in_multi 71 5K 7K 166960K 246 0
ether_multi 1 0K 0K 166960K 17 0
mrt 1 0K 0K 166960K 6 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 223 996K 996K 166960K 223 0
exec 0 0K 1K 166960K 650 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 234 160K 176K 166960K 15970 0
UVM aobj 37 10K 10K 166960K 41 0
pinsyscall 41 82K 102K 166960K 2803 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 1K 166960K 77 0
NDP 11 0K 1K 166960K 84 0
temp 77 8664K 8786K 166960K 67027 0
kqueue 13 20K 32K 166960K 307 0
SYN cache 2 16K 16K 166960K 2 0
ddb{1}> 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 163 0 160 2 1 1 2 0 8 0
rtentry 176 218 0 141 6 2 4 6 0 8 0
unpcb 144 1281 0 1263 16 10 6 10 0 8 5
syncache 336 5 0 5 2 2 0 1 0 8 0
tcpqe 32 3 0 3 2 2 0 1 0 8 0
tcpcb 736 583 0 576 18 15 3 7 0 8 2
arp 136 32 0 19 1 0 1 1 0 8 0
inpcb 328 1708 0 1698 17 11 6 12 0 8 4
nd6 152 45 0 26 2 0 2 2 0 8 0
pkpcb 40 78 0 78 2 2 0 1 0 8 0
kcovpl 48 13 0 5 1 0 1 1 0 8 0
ppxss 1192 42 0 42 2 1 1 1 0 8 1
pppxif 1504 12 0 12 4 3 1 1 0 8 1
pffrag 232 6 0 1 1 0 1 1 0 482 0
pffrnode 88 5 0 1 1 0 1 1 0 8 0
pffrent 40 7 0 2 1 0 1 1 0 8 0
pfosfp 40 1430 0 1005 5 0 5 5 0 8 0
pfosfpen 112 1430 0 714 21 0 21 21 0 8 0
pfrktable 1344 1 0 1 1 1 0 1 0 8 0
pfstitem 24 121 0 31 1 0 1 1 0 8 0
pfstkey 128 123 0 34 3 0 3 3 0 8 0
pfstate 448 121 0 32 10 0 10 10 0 8 0
pfrule 1344 28 0 23 2 1 1 2 0 8 0
rttmr 136 1 0 1 1 1 0 1 0 8 0
art_heap8 4096 3 0 0 3 0 3 3 0 8 0
art_heap4 256 1057 0 675 40 15 25 31 0 8 0
art_table 40 1060 0 675 5 0 5 5 0 8 0
art_node 32 216 0 149 1 0 1 1 0 8 0
sysvmsgpl 40 5 0 4 1 0 1 1 0 8 0
semupl 112 1 0 1 1 1 0 1 0 8 0
semapl 112 57 0 47 1 0 1 1 0 8 0
shmpl 112 34 0 2 1 0 1 1 0 8 0
dirhash 1024 39 0 22 3 0 3 3 0 8 0
dino2pl 256 4254 0 2742 96 0 96 96 0 8 0
ffsino 296 4254 0 2742 118 0 118 118 0 8 0
nchpl 144 6333 0 4619 64 0 64 64 0 8 0
rtmask 32 4 0 4 3 3 0 1 0 8 0
vnodes 216 5011 0 0 279 0 279 279 0 8 0
namei 1024 22656 0 22655 4 3 1 2 0 8 0
percpumem 16 114 0 66 1 0 1 1 0 8 0
vcpupl 3968 3 0 1 1 0 1 1 0 8 0
vmpool 840 4 0 2 1 0 1 1 0 8 0
kstatmem 264 120 0 94 4 1 3 3 0 8 1
scsiplug 72 5 0 5 2 2 0 1 0 8 0
scxspl 216 28278 0 28278 8 7 1 4 1 8 1
plimitpl 152 438 0 420 1 0 1 1 0 8 0
sigapl 424 1872 0 1820 10 3 7 8 0 8 0
knotepl 120 736 0 0 22 0 22 22 0 8 0
kqueuepl 224 532 0 522 4 3 1 2 0 8 0
pipepl 344 267 0 240 3 0 3 3 0 8 0
fdescpl 528 1827 0 1797 3 0 3 3 0 8 0
filepl 160 12045 0 11798 35 19 16 21 0 8 3
lockfpl 104 620 0 616 2 0 2 2 0 8 1
lockfspl 48 240 0 236 1 0 1 1 0 8 0
sessionpl 144 28 0 19 1 0 1 1 0 8 0
pgrppl 48 257 0 240 1 0 1 1 0 8 0
ucredpl 104 1955 0 1941 2 1 1 2 0 8 0
zombiepl 144 2132 0 2131 1 0 1 1 0 8 0
processpl 1232 1873 0 1820 6 1 5 6 0 8 0
procpl 664 4248 0 4184 9 2 7 8 0 8 0
sosppl 176 12 0 12 2 1 1 1 0 8 1
sockpl 752 3378 0 3347 64 52 12 28 0 8 7
mcl64k 65536 5 0 0 1 0 1 1 0 8 0
mcl16k 16384 1 0 0 1 0 1 1 0 8 0
mcl12k 12288 2 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 116 0 0 15 0 15 15 0 8 0
mcl2k 2048 40 0 0 5 0 5 5 0 8 0
mtagpl 96 42 0 0 2 0 2 2 0 8 0
mbufpl 256 276 0 0 17 0 17 17 0 8 0
bufpl 280 9930 0 3793 439 0 439 439 0 8 0
anonpl 32 9437 0 0 76 0 76 76 0 246 0
amapchunkpl 152 55478 0 55021 39 11 28 35 0 158 6
amappl16 200 4952 0 4917 36 23 13 21 0 8 7
amappl15 192 17 0 17 1 1 0 1 0 8 0
amappl14 184 2 0 2 1 1 0 1 0 8 0
amappl13 176 487 0 486 1 0 1 1 0 8 0
amappl12 168 2237 0 2197 3 0 3 3 0 8 0
amappl11 160 1 0 1 1 1 0 1 0 8 0
amappl10 152 47 0 32 1 0 1 1 0 8 0
amappl9 144 255 0 255 1 1 0 1 0 8 0
amappl8 136 36 0 33 1 0 1 1 0 8 0
amappl7 128 102 0 101 1 0 1 1 0 8 0
amappl6 120 344 0 330 1 0 1 1 0 8 0
amappl5 112 75 0 65 1 0 1 1 0 8 0
amappl4 104 548 0 516 1 0 1 1 0 8 0
amappl3 96 9443 0 9358 3 0 3 3 0 8 0
amappl2 88 1928 0 1850 2 0 2 2 0 8 0
amappl1 80 15493 0 14910 15 1 14 14 0 8 0
amappl 88 14904 0 14749 5 0 5 5 0 92 0
uvmvnodes 80 163 0 0 4 0 4 4 0 8 0
dma4096 4096 2 0 2 2 1 1 1 0 8 1
dma1024 1024 1 0 0 1 0 1 1 0 8 0
dma256 256 8 0 8 3 3 0 1 0 8 0
dma128 128 254 0 254 2 2 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 40 0 4 1 0 1 1 0 8 0
uaddrrnd 24 1827 0 1797 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 1827 0 1797 1 0 1 1 0 8 0
vmmpekpl 168 15582 0 15523 3 0 3 3 0 8 0
vmmpepl 168 119304 0 117429 113 15 98 104 0 357 7
vmsppl 488 1826 0 1797 5 0 5 5 0 8 0
rwobjpl 80 32149 0 31025 33 4 29 31 0 8 0
pdppl 4096 3669 0 3600 110 37 73 83 0 8 4
pvpl 32 18153 0 0 147 1 146 146 0 265 0
pmappl 256 1830 0 1799 3 0 3 3 0 8 0
extentpl 40 45 0 27 1 0 1 1 0 8 0
phpool 112 335 0 76 8 0 8 8 0 8 0
ddb{1}> machine ddbcpu 0
Stopped at x86_ipi_db+39: addq $8,%rsp
x86_ipi_db(ffffffff8384cff0) at x86_ipi_db+39
x86_ipi_handler() at x86_ipi_handler+217
Xresume_lapic_ipi() at Xresume_lapic_ipi+39
__mp_lock(ffffffff839f0b00) at __mp_lock+402
softintr_dispatch(2) at softintr_dispatch+293
dosoftint(2) at dosoftint+84
Xsofttty() at Xsofttty+39
__mp_lock(ffffffff839f0b00) at __mp_lock+409
softintr_dispatch(0) at softintr_dispatch+293
dosoftint(0) at dosoftint+84
Xsoftclock() at Xsoftclock+39
end of kernel
end trace frame: 0x774aeb3b0cf0, count: 4
ddb{0}> trace
x86_ipi_db(ffffffff8384cff0) at x86_ipi_db+39
x86_ipi_handler() at x86_ipi_handler+217
Xresume_lapic_ipi() at Xresume_lapic_ipi+39
__mp_lock(ffffffff839f0b00) at __mp_lock+402
softintr_dispatch(2) at softintr_dispatch+293
dosoftint(2) at dosoftint+84
Xsofttty() at Xsofttty+39
__mp_lock(ffffffff839f0b00) at __mp_lock+409
softintr_dispatch(0) at softintr_dispatch+293
dosoftint(0) at dosoftint+84
Xsoftclock() at Xsoftclock+39
end of kernel
end trace frame: 0x774aeb3b0cf0, count: -11
ddb{0}> machine ddbcpu 1
Stopped at savectx+174: movl $0,%gs:1672
savectx() at savectx+174
end of kernel
end trace frame: 0x772b21db9590, count: 14
ddb{1}> trace
savectx() at savectx+174
end of kernel
end trace frame: 0x772b21db9590, count: -1