uvm_fault(0xfffffd806e3a7010, 0x0, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at rtrequest+0x8e1: movzbl 0(%r14),%r15d
TID PID UID PRFLAGS PFLAGS CPU COMMAND
199590 89211 0 0x2 0 1 syz-executor4212753865
* 88999 89211 0 0x2 0x4000000 0 syz-executor4212753865
rtrequest(1,ffff800021248df8,0,ffff800021248d68,0) at rtrequest+0x8e1 sys/net/route.c:941
rtm_output(ffff800000cd1c00,ffff800021248ea0,ffff800021248df8,0,0) at rtm_output+0x5f7 sys/net/rtsock.c:958
route_output(fffffd807076ea00,fffffd806d7663e8) at route_output+0x6b3 sys/net/rtsock.c:863
route_send(fffffd806d7663e8,fffffd807076ea00,0,0) at route_send+0x8f sys/net/rtsock.c:339
sosend(fffffd806d7663e8,0,ffff800021249060,0,0,0) at sosend+0x66d
sendit(ffff8000211e2810,3,ffff800021249160,0,ffff800021249240) at sendit+0x65d sys/kern/uipc_syscalls.c:786
sys_sendto(ffff8000211e2810,ffff8000212491f0,ffff800021249240) at sys_sendto+0x84 sys/kern/uipc_syscalls.c:564
syscall(ffff8000212492c0) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline]
syscall(ffff8000212492c0) at syscall+0x606 sys/arch/amd64/amd64/trap.c:623
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xdfc4412fca0, count: 6
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: uvm_fault(0xfffffd806e3a7010, 0x0, 0, 1) -> e
ddb{0}> trace
rtrequest(1,ffff800021248df8,0,ffff800021248d68,0) at rtrequest+0x8e1 sys/net/route.c:941
rtm_output(ffff800000cd1c00,ffff800021248ea0,ffff800021248df8,0,0) at rtm_output+0x5f7 sys/net/rtsock.c:958
route_output(fffffd807076ea00,fffffd806d7663e8) at route_output+0x6b3 sys/net/rtsock.c:863
route_send(fffffd806d7663e8,fffffd807076ea00,0,0) at route_send+0x8f sys/net/rtsock.c:339
sosend(fffffd806d7663e8,0,ffff800021249060,0,0,0) at sosend+0x66d
sendit(ffff8000211e2810,3,ffff800021249160,0,ffff800021249240) at sendit+0x65d sys/kern/uipc_syscalls.c:786
sys_sendto(ffff8000211e2810,ffff8000212491f0,ffff800021249240) at sys_sendto+0x84 sys/kern/uipc_syscalls.c:564
syscall(ffff8000212492c0) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline]
syscall(ffff8000212492c0) at syscall+0x606 sys/arch/amd64/amd64/trap.c:623
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xdfc4412fca0, count: -9
ddb{0}> show registers
rdi 0
rsi 0x2
rbp 0xffff800021248d40
rbx 0x33
rdx 0x1e57e1d57d4d1755
rcx 0x1
rax 0x1
r8 0x20
r9 0
r10 0xd744315aabf05eea
r11 0xa46b1bb15e66ebdb
r12 0xfffffd806ed625b0
r13 0xffff800021248df8
r14 0
r15 0xffff8000006c9590
rip 0xffffffff819d3741 rtrequest+0x8e1
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff800021248c50
ss 0x10
rtrequest+0x8e1: movzbl 0(%r14),%r15d
ddb{0}> show proc
PROC (syz-executor4212753865) tid=88999 pid=89211 tcnt=2 stat=onproc
flags process=2<EXEC> proc=4000000<THREAD>
runpri=32, usrpri=59, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0
forw=0xffffffffffffffff, list=0xffff8000211e3008,0xffffffff82cd23e8
process=0xffff8000ffff69f0 user=0xffff800021244000, vmspace=0xfffffd806e3a7010
estcpu=9, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
89211 199590 59877 0 7 0x2 syz-executor4212753865
*89211 88999 59877 0 7 0x4000002 syz-executor4212753865
59877 377736 56509 0 3 0x10008a sigsusp ksh
56509 289857 60578 0 3 0x9a kqread sshd
12843 202439 1 0 3 0x100083 ttyin getty
60578 35692 1 0 3 0x88 kqread sshd
19861 180712 35284 74 3 0x1100092 bpf pflogd
35284 276710 1 0 3 0x80 netio pflogd
38868 24621 40052 73 3 0x1100090 kqread syslogd
40052 488209 1 0 3 0x100082 netio syslogd
22472 296441 1 0 3 0x100080 kqread resolvd
88754 505957 88999 77 3 0x100092 kqread dhcpleased
88059 80804 88999 77 3 0x100092 kqread dhcpleased
88999 210077 1 0 3 0x80 kqread dhcpleased
86262 513527 0 0 3 0x14200 bored smr
58583 358094 0 0 3 0x14200 pgzero zerothread
87385 114998 0 0 3 0x14200 aiodoned aiodoned
18705 479516 0 0 3 0x14200 syncer update
79959 510173 0 0 3 0x14200 cleaner cleaner
71947 196761 0 0 3 0x14200 reaper reaper
57063 281353 0 0 3 0x14200 pgdaemon pagedaemon
15293 163552 0 0 3 0x14200 bored viomb
77728 208763 0 0 3 0x40014200 acpi0 acpi0
16435 307847 0 0 3 0x40014200 idle1
28566 60830 0 0 3 0x14200 bored softnet3
14805 505735 0 0 3 0x14200 bored softnet2
33978 238506 0 0 3 0x14200 bored softnet1
94916 65265 0 0 3 0x14200 bored softnet0
63021 347692 0 0 3 0x14200 bored systqmp
4879 224045 0 0 3 0x14200 bored systq
95674 12352 0 0 3 0x14200 tmoslp softclockmp
32438 393101 0 0 3 0x40014200 tmoslp softclock
31170 358861 0 0 3 0x40014200 idle0
1 260475 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 89211 (syz-executor4212753865) thread 0xffff8000211e2810 (88999)
exclusive rwlock netlock r = 0 (0xffffffff82bb4fd0)
#0 witness_lock+0x447
#1 rtm_output+0x554 sys/net/rtsock.c:954
#2 route_output+0x6b3 sys/net/rtsock.c:863
#3 route_send+0x8f sys/net/rtsock.c:339
#4 sosend+0x66d
#5 sendit+0x65d sys/kern/uipc_syscalls.c:786
#6 sys_sendto+0x84 sys/kern/uipc_syscalls.c:564
#7 syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline]
#7 syscall+0x606 sys/arch/amd64/amd64/trap.c:623
#8 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10162 6456K 6457K 78643K 11240 0
pcb 13 8K 8K 78643K 13 0
rtable 60 2K 2K 78643K 117 0
pf 15 6K 10K 78643K 26 0
ifaddr 13 9K 9K 78643K 13 0
ifgroup 22 1K 1K 78643K 22 0
counters 44 33K 33K 78643K 44 0
ioctlops 0 0K 4K 78643K 1475 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 4 0
vnodes 1176 74K 74K 78643K 1192 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 1K 78643K 2 0
VM map 2 1K 1K 78643K 2 0
sem 2 0K 0K 78643K 2 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 1 0K 0K 78643K 1 0
proc 67 91K 91K 78643K 302 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
in_multi 11 0K 0K 78643K 11 0
ether_multi 1 0K 0K 78643K 1 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 25 122K 122K 78643K 25 0
exec 0 0K 1K 78643K 269 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 104 4K 6K 78643K 2602 0
UVM aobj 3 2K 2K 78643K 3 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
NDP 4 0K 0K 78643K 4 0
temp 1 5904K 5968K 78643K 3080 0
kqueue 11 16K 18K 78643K 24 0
SYN cache 2 16K 16K 78643K 2 0
ddb{0}> 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 21 0 17 1 0 1 1 0 8 0
rtentry 112 24 0 1 1 0 1 1 0 8 0
unpcb 144 35 0 20 1 0 1 1 0 8 0
syncache 304 5 0 5 1 0 1 1 0 8 1
tcpqe 32 220 0 220 1 0 1 1 0 8 1
tcpcb 808 8 0 5 1 0 1 1 0 8 0
arp 120 2 0 0 1 0 1 1 0 8 0
inpcb 368 33 0 27 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
pfstitem 24 9 0 0 1 0 1 1 0 8 0
pfstkey 128 9 0 0 1 0 1 1 0 8 0
pfstate 376 9 0 0 1 0 1 1 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 97 0 0 7 0 7 7 0 8 0
art_table 32 98 0 0 1 0 1 1 0 8 0
art_node 16 22 0 2 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 1432 0 38 88 0 88 88 0 8 0
ffsino 272 1432 0 38 93 0 93 93 0 8 0
nchpl 144 1618 0 49 59 0 59 59 0 8 0
uvmvnodes 80 1446 0 0 30 0 30 30 0 8 0
vnodes 216 1446 0 0 81 0 81 81 0 8 0
namei 1024 4561 0 4561 1 0 1 1 0 8 1
percpumem 16 35 0 0 1 0 1 1 0 8 0
kstatmem 264 8 0 0 1 0 1 1 0 8 0
scxspl 216 4879 0 4879 3 1 2 2 1 8 2
plimitpl 152 17 0 10 1 0 1 1 0 8 0
sigapl 424 338 0 305 5 0 5 5 0 8 0
knotepl 120 44 0 0 2 0 2 2 0 8 0
kqueuepl 216 20 0 13 1 0 1 1 0 8 0
pipepl 320 94 0 91 1 0 1 1 0 8 0
fdescpl 496 320 0 305 3 0 3 3 0 8 0
filepl 152 1276 0 1217 3 0 3 3 0 8 0
lockfpl 104 6 0 4 1 0 1 1 0 8 0
lockfspl 48 4 0 2 1 0 1 1 0 8 0
sessionpl 144 18 0 9 1 0 1 1 0 8 0
pgrppl 48 18 0 9 1 0 1 1 0 8 0
ucredpl 104 71 0 59 1 0 1 1 0 8 0
zombiepl 144 305 0 305 1 0 1 1 0 8 1
processpl 1072 338 0 305 3 0 3 3 0 8 0
procpl 680 339 0 305 4 0 4 4 0 8 0
sockpl 488 89 0 64 4 0 4 4 0 8 0
mcl8k 8192 1 0 0 1 0 1 1 0 8 0
mcl4k 4096 5 0 0 1 0 1 1 0 8 0
mcl2k 2048 303 0 0 38 0 38 38 0 8 0
mtagpl 96 2 0 0 1 0 1 1 0 8 0
mbufpl 256 315 0 0 20 0 20 20 0 8 0
bufpl 288 2472 0 91 171 0 171 171 0 8 0
anonpl 24 203805 0 201759 25 0 25 25 0 186 12
amapchunkpl 152 9323 0 9159 8 0 8 8 0 158 1
amappl16 200 6237 0 6236 5 0 5 5 0 8 4
amappl15 192 14 0 13 1 0 1 1 0 8 0
amappl14 184 109 0 98 1 0 1 1 0 8 0
amappl13 176 15 0 14 1 0 1 1 0 8 0
amappl12 168 870 0 855 2 1 1 2 0 8 0
amappl11 160 60 0 45 1 0 1 1 0 8 0
amappl10 152 10 0 10 1 0 1 1 0 8 1
amappl9 144 175 0 175 1 0 1 1 0 8 1
amappl8 136 52 0 50 1 0 1 1 0 8 0
amappl7 128 112 0 99 1 0 1 1 0 8 0
amappl6 120 132 0 127 1 0 1 1 0 8 0
amappl5 112 107 0 96 1 0 1 1 0 8 0
amappl4 104 360 0 340 1 0 1 1 0 8 0
amappl3 96 2096 0 2056 2 1 1 2 0 8 0
amappl2 88 636 0 580 2 0 2 2 0 8 0
amappl1 80 9176 0 8700 12 0 12 12 0 8 0
amappl 88 2289 0 2231 2 0 2 2 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 2 0 0 1 0 1 1 0 8 0
uaddrrnd 24 320 0 305 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 320 0 305 1 0 1 1 0 8 0
vmmpekpl 168 7249 0 7235 1 0 1 1 0 8 0
vmmpepl 168 36083 0 35023 52 0 52 52 0 357 4
vmsppl 464 319 0 305 3 0 3 3 0 8 0
rwobjpl 56 19903 0 17746 33 0 33 33 0 8 2
pdppl 4096 648 0 610 56 18 38 46 0 8 0
pvpl 32 307970 0 303150 57 0 57 57 0 265 17
pmappl 248 319 0 305 2 0 2 2 0 8 0
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 489 0 20 14 0 14 14 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
rtrequest(1,ffff800021248df8,0,ffff800021248d68,0) at rtrequest+0x8e1 sys/net/route.c:941
rtm_output(ffff800000cd1c00,ffff800021248ea0,ffff800021248df8,0,0) at rtm_output+0x5f7 sys/net/rtsock.c:958
route_output(fffffd807076ea00,fffffd806d7663e8) at route_output+0x6b3 sys/net/rtsock.c:863
route_send(fffffd806d7663e8,fffffd807076ea00,0,0) at route_send+0x8f sys/net/rtsock.c:339
sosend(fffffd806d7663e8,0,ffff800021249060,0,0,0) at sosend+0x66d
sendit(ffff8000211e2810,3,ffff800021249160,0,ffff800021249240) at sendit+0x65d sys/kern/uipc_syscalls.c:786
sys_sendto(ffff8000211e2810,ffff8000212491f0,ffff800021249240) at sys_sendto+0x84 sys/kern/uipc_syscalls.c:564
syscall(ffff8000212492c0) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline]
syscall(ffff8000212492c0) at syscall+0x606 sys/arch/amd64/amd64/trap.c:623
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xdfc4412fca0, count: -9
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp
x86_ipi_db(ffff800020d48ff0) 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: 0x7e5c77f42d70, count: 12
ddb{1}> trace
x86_ipi_db(ffff800020d48ff0) 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: 0x7e5c77f42d70, count: -3
ddb{1}>