panic: attempt to execute user address 0x20fee000 in supervisor mode
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
460174 22060 0 0 0 0 syz-executor.1
*370804 22060 0 0 0x4000000 1K syz-executor.1
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
pageflttrap() at pageflttrap+0x40b
kerntrap(ffff80002155ebf0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287
alltraps_kern_meltdown(6,ffff800021b78000,fffffd8065d98698,10,ffff80000005bc90,ffff80002155ee58) at alltraps_kern_meltdown+0x7b
__kernel_end_phys(b,ffff80002155edb8,83,ffff80002155ee58,0,b) at 0x20fee000
rt_clone(ffff80002155eec8,fffffd806f6c7b70,0) at rt_clone+0x78 sys/net/route.c:266
rtalloc_mpath(fffffd806f6c7b70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline]
rtalloc_mpath(fffffd806f6c7b70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359
in_pcbselsrc(ffff80002155efa0,fffffd8069f35020,fffffd806f6c7af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934
in_pcbconnect(fffffd806f6c7af0,fffffd8069f35000) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492
udp_usrreq(fffffd806f6c8900,4,0,fffffd8069f35000,0,ffff800020ab0290) at udp_usrreq+0x560
sys_connect(ffff800020ab0290,ffff80002155f128,ffff80002155f170) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388
syscall(ffff80002155f1f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff80002155f1f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,fffffffffffffed2,0,3,991bc7c5010) at Xsyscall+0x128
end of kernel
end trace frame: 0x994a79ba4a0, count: 1
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
attempt to execute user address 0x20fee000 in supervisor mode
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
pageflttrap() at pageflttrap+0x40b
kerntrap(ffff80002155ebf0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287
alltraps_kern_meltdown(6,ffff800021b78000,fffffd8065d98698,10,ffff80000005bc90,ffff80002155ee58) at alltraps_kern_meltdown+0x7b
__kernel_end_phys(b,ffff80002155edb8,83,ffff80002155ee58,0,b) at 0x20fee000
rt_clone(ffff80002155eec8,fffffd806f6c7b70,0) at rt_clone+0x78 sys/net/route.c:266
rtalloc_mpath(fffffd806f6c7b70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline]
rtalloc_mpath(fffffd806f6c7b70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359
in_pcbselsrc(ffff80002155efa0,fffffd8069f35020,fffffd806f6c7af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934
in_pcbconnect(fffffd806f6c7af0,fffffd8069f35000) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492
udp_usrreq(fffffd806f6c8900,4,0,fffffd8069f35000,0,ffff800020ab0290) at udp_usrreq+0x560
sys_connect(ffff800020ab0290,ffff80002155f128,ffff80002155f170) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388
syscall(ffff80002155f1f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff80002155f1f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,fffffffffffffed2,0,3,991bc7c5010) at Xsyscall+0x128
end of kernel
end trace frame: 0x994a79ba4a0, count: -14
ddb{1}> show registers
rdi 0xffffffff81823987 db_enter+0x17
rsi 0x22d5 __ALIGN_SIZE+0x12d5
rbp 0xffff80002155ea60
rbx 0xffff80002155eb10
rdx 0x22d6 __ALIGN_SIZE+0x12d6
rcx 0xffff800021b78000
rax 0xffff800021b78000
r8 0xffffffff81cd62ff kprintf+0x16f
r9 0x1
r10 0x25
r11 0xc89a24a8d332a160
r12 0x3000000008
r13 0xffff80002155ea70
r14 0x100
r15 0x1
rip 0xffffffff81823988 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff80002155ea50
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor.1) pid=370804 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=81, usrpri=81, nice=20
forw=0xffffffffffffffff, list=0xffff800020ab18c8,0xffffffff826651a0
process=0xffff800020adc700 user=0xffff80002155a000, vmspace=0xfffffd807f00a450
estcpu=36, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
22060 460174 17893 0 7 0 syz-executor.1
*22060 370804 17893 0 7 0x4000000 syz-executor.1
45458 71351 80988 0 3 0x82 nanosleep syz-executor.0
2410 28913 0 0 3 0x14200 acct acct
2422 318663 1 0 3 0x100083 ttyin getty
17893 408150 80988 0 3 0x82 nanosleep syz-executor.1
70033 257712 0 0 3 0x14200 bored sosplice
80988 519527 84886 0 3 0x82 thrsleep syz-fuzzer
80988 386844 84886 0 3 0x4000082 nanosleep syz-fuzzer
80988 136956 84886 0 3 0x4000082 thrsleep syz-fuzzer
80988 101680 84886 0 3 0x4000082 kqread syz-fuzzer
80988 295429 84886 0 3 0x4000082 thrsleep syz-fuzzer
80988 185858 84886 0 3 0x4000082 nanosleep syz-fuzzer
80988 459209 84886 0 3 0x4000082 thrsleep syz-fuzzer
80988 479715 84886 0 3 0x4000082 thrsleep syz-fuzzer
80988 362412 84886 0 3 0x4000082 thrsleep syz-fuzzer
80988 364029 84886 0 3 0x4000082 thrsleep syz-fuzzer
84886 482190 45668 0 3 0x10008a pause ksh
45668 486353 47846 0 3 0x92 select sshd
47846 88111 1 0 3 0x80 select sshd
83695 450284 90547 74 3 0x100092 bpf pflogd
90547 306620 1 0 3 0x80 netio pflogd
79663 293681 23245 73 3 0x100090 kqread syslogd
23245 373989 1 0 3 0x100082 netio syslogd
23110 300291 1 77 3 0x100090 poll dhclient
13787 13507 1 0 3 0x80 poll dhclient
64032 161762 0 0 3 0x14200 pgzero zerothread
13240 103419 0 0 3 0x14200 aiodoned aiodoned
21019 351670 0 0 3 0x14200 syncer update
29336 34327 0 0 3 0x14200 cleaner cleaner
19778 162188 0 0 3 0x14200 reaper reaper
51300 196181 0 0 3 0x14200 pgdaemon pagedaemon
70770 156235 0 0 3 0x14200 bored crynlk
82548 62007 0 0 3 0x14200 bored crypto
42704 471259 0 0 3 0x40014200 acpi0 acpi0
31495 228193 0 0 3 0x40014200 idle1
551 262973 0 0 3 0x14200 bored softnet
78986 415227 0 0 3 0x14200 bored systqmp
58366 81295 0 0 3 0x14200 bored systq
16870 217095 0 0 3 0x40014200 bored softclock
15395 202325 0 0 3 0x40014200 idle0
42291 466347 0 0 3 0x14200 bored smr
1 117011 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 22060 (syz-executor.1) thread 0xffff800020ab0290 (370804)
exclusive rwlock netlock r = 0 (0xffffffff824d6738)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 solock+0x5a sys/kern/uipc_socket2.c:282
#2 sys_connect+0x6b sys/kern/uipc_syscalls.c:362
#3 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#3 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#4 Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 2 (0xffffffff82666748)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline]
#1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555
#2 Xsyscall+0x128
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9582 6634K 7212K 78643K 14294 0 0
pcb 13 8K 8K 78643K 292 0 0
rtable 111 8K 9K 78643K 1328 0 0
ifaddr 78 16K 18K 78643K 378 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 4K 78643K 1515 0 0
iov 0 0K 16K 78643K 371 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1212 76K 77K 78643K 2585 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 5K 78643K 22 0 0
VM map 2 1K 1K 78643K 14 0 0
sem 12 1K 1K 78643K 612 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1808 196K 290K 78643K 12765 0 0
file desc 5 13K 25K 78643K 1642 0 0
sigio 0 0K 0K 78643K 14 0 0
proc 62 63K 95K 78643K 1004 0 0
subproc 32 2K 2K 78643K 187 0 0
NFS srvsock 1 0K 0K 78643K 1 0 0
NFS daemon 1 16K 16K 78643K 1 0 0
ip_moptions 0 0K 0K 78643K 267 0 0
in_multi 26 1K 2K 78643K 222 0 0
ether_multi 1 0K 0K 78643K 5 0 0
mrt 0 0K 0K 78643K 4 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 78 344K 344K 78643K 78 0 0
exec 0 0K 1K 78643K 489 0 0
pfkey data 0 0K 4K 78643K 2 0 0
pagedep 1 8K 8K 78643K 1 0 0
inodedep 1 32K 32K 78643K 1 0 0
newblk 1 0K 0K 78643K 1 0 0
VM swap 7 26K 26K 78643K 7 0 0
UVM amap 108 22K 31K 78643K 6689 0 0
UVM aobj 65 3K 4K 78643K 85 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
ip6_options 0 0K 0K 78643K 362 0 0
NDP 18 0K 0K 78643K 121 0 0
temp 215 3560K 3630K 78643K 71739 0 0
kqueue 0 0K 0K 78643K 2 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb{1}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp 64 48 0 43 1 0 1 1 0 8 0
plcache 128 20 0 0 1 0 1 1 0 8 0
rtpcb 80 113 0 111 1 0 1 1 0 8 0
rtentry 112 245 0 204 2 0 2 2 0 8 0
unpcb 120 541 0 531 1 0 1 1 0 8 0
syncache 264 7 0 7 3 2 1 1 0 8 1
tcpqe 32 6987 0 6987 2 2 0 1 0 8 0
tcpcb 544 906 0 902 2 1 1 2 0 8 0
inpcb 280 1997 0 1989 6 4 2 2 0 8 1
rttmr 72 1 0 1 1 1 0 1 0 8 0
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 48 33 0 31 1 0 1 1 0 8 0
pkpcb 40 3 0 3 2 2 0 1 0 8 0
ppxss 1128 43 0 43 4 3 1 1 0 8 1
pffrag 232 14 0 14 4 4 0 1 0 482 0
pffrnode 88 14 0 14 4 4 0 1 0 8 0
pffrent 40 29 0 29 4 4 0 1 0 8 0
pfosfp 40 846 0 423 5 0 5 5 0 8 0
pfosfpen 112 1428 0 714 21 0 21 21 0 8 0
pfstitem 24 102 0 55 1 0 1 1 0 8 0
pfstkey 112 102 0 55 2 0 2 2 0 8 0
pfstate 328 102 0 55 5 0 5 5 0 8 0
pfrule 1360 21 0 16 2 1 1 2 0 8 0
art_heap8 4096 7 0 5 3 0 3 3 0 8 1
art_heap4 256 1048 0 826 19 4 15 15 0 8 0
art_table 32 1055 0 831 2 0 2 2 0 8 0
art_node 16 242 0 203 1 0 1 1 0 8 0
sysvmsgpl 40 36 0 18 1 0 1 1 0 8 0
semupl 112 5 0 5 1 1 0 1 0 8 0
semapl 112 610 0 600 1 0 1 1 0 8 0
shmpl 112 83 0 20 2 0 2 2 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino1pl 128 3874 0 2470 46 0 46 46 0 8 0
ffsino 272 3874 0 2470 95 0 95 95 0 8 0
nchpl 144 7302 0 6828 61 40 21 61 0 8 0
uvmvnodes 72 4871 0 0 89 0 89 89 0 8 0
vnodes 208 4871 0 0 257 0 257 257 0 8 0
namei 1024 23802 0 23802 3 2 1 1 0 8 1
percpumem 16 30 0 0 1 0 1 1 0 8 0
vmpool 552 12 0 12 3 2 1 1 0 8 1
scsiplug 64 2 0 2 1 1 0 1 0 8 0
scxspl 192 20022 0 20022 18 17 1 7 0 8 1
plimitpl 152 144 0 136 1 0 1 1 0 8 0
sigapl 432 1816 0 1801 3 1 2 3 0 8 0
futexpl 56 36887 0 36887 1 0 1 1 0 8 1
knotepl 112 380 0 361 1 0 1 1 0 8 0
kqueuepl 104 291 0 289 1 0 1 1 0 8 0
pipepl 112 1222 0 1203 4 3 1 2 0 8 0
fdescpl 488 1817 0 1801 3 0 3 3 0 8 0
filepl 152 15297 0 15196 10 5 5 7 0 8 0
lockfpl 104 523 0 522 1 0 1 1 0 8 0
lockfspl 48 177 0 176 1 0 1 1 0 8 0
sessionpl 112 28 0 17 1 0 1 1 0 8 0
pgrppl 48 40 0 29 1 0 1 1 0 8 0
ucredpl 96 1737 0 1728 1 0 1 1 0 8 0
zombiepl 144 1801 0 1800 3 2 1 1 0 8 0
processpl 896 1834 0 1800 4 0 4 4 0 8 0
procpl 632 5477 0 5433 5 0 5 5 0 8 1
srpgc 64 5 0 5 3 3 0 1 0 8 0
sosppl 128 18 0 18 6 5 1 1 0 8 1
sockpl 384 2673 0 2653 9 5 4 4 0 8 2
mcl64k 65536 14 0 0 2 0 2 2 0 8 0
mcl16k 16384 6 0 0 1 0 1 1 0 8 0
mcl12k 12288 18 0 0 2 0 2 2 0 8 0
mcl9k 9216 6 0 0 1 0 1 1 0 8 0
mcl8k 8192 17 0 0 3 0 3 3 0 8 0
mcl4k 4096 17 0 0 3 0 3 3 0 8 0
mcl2k2 2112 4 0 0 1 0 1 1 0 8 0
mcl2k 2048 201 0 0 23 3 20 23 0 8 0
mtagpl 80 43 0 0 1 0 1 1 0 8 0
mbufpl 256 323 0 0 13 0 13 13 0 8 0
bufpl 256 10959 0 3911 441 0 441 441 0 8 0
anonpl 16 201925 0 186376 112 39 73 81 0 124 1
amapchunkpl 152 13139 0 13032 37 29 8 19 0 158 2
amappl16 192 8536 0 7580 81 25 56 56 0 8 8
amappl15 184 511 0 511 1 1 0 1 0 8 0
amappl14 176 480 0 477 2 1 1 1 0 8 0
amappl13 168 10 0 9 2 1 1 1 0 8 0
amappl12 160 48 0 47 2 1 1 1 0 8 0
amappl11 152 546 0 528 1 0 1 1 0 8 0
amappl10 144 24 0 19 1 0 1 1 0 8 0
amappl9 136 890 0 883 1 0 1 1 0 8 0
amappl8 128 456 0 423 2 0 2 2 0 8 0
amappl7 120 79 0 72 1 0 1 1 0 8 0
amappl6 112 553 0 539 1 0 1 1 0 8 0
amappl5 104 258 0 244 1 0 1 1 0 8 0
amappl4 96 2098 0 2061 1 0 1 1 0 8 0
amappl3 88 481 0 475 1 0 1 1 0 8 0
amappl2 80 13297 0 13224 3 1 2 3 0 8 0
amappl1 72 50158 0 49720 27 17 10 20 0 8 0
amappl 80 5875 0 5838 2 0 2 2 0 84 0
dma4096 4096 1 0 1 1 1 0 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 17 0 17 1 1 0 1 0 8 0
aobjpl 64 84 0 20 2 0 2 2 0 8 0
uaddrrnd 24 1829 0 1801 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 1829 0 1801 1 0 1 1 0 8 0
vmmpekpl 168 17391 0 17351 3 0 3 3 0 8 0
vmmpepl 168 231529 0 229426 208 84 124 129 0 357 28
vmsppl 368 1816 0 1801 2 0 2 2 0 8 0
pdppl 4096 3665 0 3626 7 1 6 6 0 8 0
pvpl 32 581926 0 563177 259 83 176 192 0 265 6
pmappl 232 1828 0 1813 5 3 2 2 0 8 1
extentpl 40 41 0 26 1 0 1 1 0 8 0
phpool 112 624 0 14 18 0 18 18 0 8 0