login: panic: kernel diagnostic assertion "rt->rt_ifa->ifa_ifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 848
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
30641 44087 0 0 0 0 syz-executor.0
*510383 44087 0 0 0x4000000 1K syz-executor.0
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
__assert(ffffffff82209f30,ffffffff821d671c,350,ffffffff821ae376) at __assert+0x2b sys/kern/subr_prf.c:154
rtrequest(b,ffff800021b58bc8,83,ffff800021b58c68,0) at rtrequest+0xbd2 sys/net/route.c:951
rt_clone(ffff800021b58cd8,fffffd806f6cf3c8,0) at rt_clone+0x78 sys/net/route.c:266
rtalloc_mpath(fffffd806f6cf3c8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline]
rtalloc_mpath(fffffd806f6cf3c8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359
in_pcbselsrc(ffff800021b58db0,fffffd806f0ac020,fffffd806f6cf348) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934
in_pcbconnect(fffffd806f6cf348,fffffd806f0ac000) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492
udp_usrreq(fffffd80717d9c60,4,0,fffffd806f0ac000,0,ffff800020acfb48) at udp_usrreq+0x560
sys_connect(ffff800020acfb48,ffff800021b58f38,ffff800021b58f80) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388
syscall(ffff800021b59000) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800021b59000) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,fffffffffffffed2,0,3,599757d8010) at Xsyscall+0x128
end of kernel
end trace frame: 0x59bf08c3eb0, count: 3
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
kernel diagnostic assertion "rt->rt_ifa->ifa_ifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 848
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
__assert(ffffffff82209f30,ffffffff821d671c,350,ffffffff821ae376) at __assert+0x2b sys/kern/subr_prf.c:154
rtrequest(b,ffff800021b58bc8,83,ffff800021b58c68,0) at rtrequest+0xbd2 sys/net/route.c:951
rt_clone(ffff800021b58cd8,fffffd806f6cf3c8,0) at rt_clone+0x78 sys/net/route.c:266
rtalloc_mpath(fffffd806f6cf3c8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline]
rtalloc_mpath(fffffd806f6cf3c8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359
in_pcbselsrc(ffff800021b58db0,fffffd806f0ac020,fffffd806f6cf348) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934
in_pcbconnect(fffffd806f6cf348,fffffd806f0ac000) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492
udp_usrreq(fffffd80717d9c60,4,0,fffffd806f0ac000,0,ffff800020acfb48) at udp_usrreq+0x560
sys_connect(ffff800020acfb48,ffff800021b58f38,ffff800021b58f80) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388
syscall(ffff800021b59000) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800021b59000) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,fffffffffffffed2,0,3,599757d8010) at Xsyscall+0x128
end of kernel
end trace frame: 0x59bf08c3eb0, count: -12
ddb{1}> show registers
rdi 0xffffffff81db2357 db_enter+0x17
rsi 0x3ab5 __ALIGN_SIZE+0x2ab5
rbp 0xffff800021b589e0
rbx 0xffff800021b58a90
rdx 0x3ab6 __ALIGN_SIZE+0x2ab6
rcx 0xffff8000229c0000
rax 0xffff8000229c0000
r8 0xffffffff81879bcf kprintf+0x16f
r9 0x1
r10 0x25
r11 0xeaa107f6335616f4
r12 0x3000000008
r13 0xffff800021b589f0
r14 0x100
r15 0x1
rip 0xffffffff81db2358 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800021b589d0
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor.0) pid=510383 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=86, usrpri=86, nice=20
forw=0xffffffffffffffff, list=0xffff800020acea00,0xffffffff82659c00
process=0xffff800020addc00 user=0xffff800021b54000, vmspace=0xfffffd807f00a730
estcpu=36, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
44087 30641 83851 0 7 0 syz-executor.0
*44087 510383 83851 0 7 0x4000000 syz-executor.0
52935 311912 1 0 3 0x100083 ttyin getty
35331 284005 62483 0 3 0x82 nanosleep syz-executor.1
83851 102328 62483 0 3 0x82 nanosleep syz-executor.0
97023 50016 0 0 3 0x14200 acct acct
35953 522443 0 0 3 0x14200 bored sosplice
62483 374334 66293 0 3 0x82 thrsleep syz-fuzzer
62483 263098 66293 0 3 0x4000082 nanosleep syz-fuzzer
62483 446296 66293 0 3 0x4000082 thrsleep syz-fuzzer
62483 297664 66293 0 3 0x4000082 thrsleep syz-fuzzer
62483 466860 66293 0 3 0x4000082 thrsleep syz-fuzzer
62483 147292 66293 0 3 0x4000082 thrsleep syz-fuzzer
62483 250979 66293 0 3 0x4000082 thrsleep syz-fuzzer
62483 392855 66293 0 3 0x4000082 nanosleep syz-fuzzer
62483 498120 66293 0 3 0x4000082 kqread syz-fuzzer
62483 67296 66293 0 3 0x4000082 thrsleep syz-fuzzer
66293 393869 64781 0 3 0x10008a pause ksh
64781 158700 92658 0 3 0x92 select sshd
92658 218032 1 0 3 0x80 select sshd
77319 365749 99122 74 3 0x100092 bpf pflogd
99122 326230 1 0 3 0x80 netio pflogd
43992 77197 30901 73 3 0x100090 kqread syslogd
30901 200477 1 0 3 0x100082 netio syslogd
40715 370618 1 77 3 0x100090 poll dhclient
23806 380286 1 0 3 0x80 poll dhclient
78007 232562 0 0 3 0x14200 pgzero zerothread
13507 348702 0 0 3 0x14200 aiodoned aiodoned
5201 16000 0 0 3 0x14200 syncer update
61754 402422 0 0 3 0x14200 cleaner cleaner
9518 351814 0 0 3 0x14200 reaper reaper
31273 61843 0 0 3 0x14200 pgdaemon pagedaemon
1157 327223 0 0 3 0x14200 bored crynlk
75401 475094 0 0 3 0x14200 bored crypto
99926 66852 0 0 3 0x40014200 acpi0 acpi0
40937 39102 0 0 3 0x40014200 idle1
83805 321974 0 0 3 0x14200 bored softnet
62233 505357 0 0 3 0x14200 bored systqmp
69597 140364 0 0 3 0x14200 bored systq
91178 296314 0 0 3 0x40014200 bored softclock
37401 343925 0 0 3 0x40014200 idle0
6271 67090 0 0 3 0x14200 bored smr
1 424530 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 44087 (syz-executor.0) thread 0xffff800020acfb48 (510383)
exclusive rwlock netlock r = 0 (0xffffffff824fd158)
#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 = 1 (0xffffffff82645558)
#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 9593 6456K 8188K 78643K 16738 0 0
pcb 13 8K 9K 78643K 450 0 0
rtable 129 14K 14K 78643K 1311 0 0
ifaddr 90 19K 19K 78643K 413 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 4K 78643K 1555 0 0
iov 0 0K 28K 78643K 392 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1237 78K 78K 78643K 3147 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 19 0 0
VM map 8 4K 4K 78643K 14 0 0
sem 12 1K 1K 78643K 426 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1808 196K 290K 78643K 12765 0 0
file desc 5 13K 25K 78643K 1769 0 0
sigio 0 0K 0K 78643K 22 0 0
proc 62 63K 95K 78643K 1136 0 0
subproc 32 2K 2K 78643K 195 0 0
NFS srvsock 1 0K 0K 78643K 1 0 0
NFS daemon 1 16K 16K 78643K 1 0 0
ip_moptions 0 0K 1K 78643K 219 0 0
in_multi 26 1K 2K 78643K 270 0 0
ether_multi 1 0K 0K 78643K 24 0 0
mrt 0 0K 0K 78643K 19 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 90 397K 397K 78643K 90 0 0
exec 0 0K 1K 78643K 522 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 148 105K 115K 78643K 7198 0 0
UVM aobj 130 7K 7K 78643K 132 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 357 0 0
NDP 20 0K 0K 78643K 124 0 0
temp 189 3564K 3640K 78643K 35808 0 0
kqueue 0 0K 0K 78643K 15 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 34 0 29 1 0 1 1 0 8 0
plcache 128 20 0 0 1 0 1 1 0 8 0
rtpcb 80 162 0 160 1 0 1 1 0 8 0
rtentry 112 240 0 190 2 0 2 2 0 8 0
unpcb 120 1052 0 1041 1 0 1 1 0 8 0
syncache 264 13 0 13 6 5 1 1 0 8 1
tcpqe 32 89 0 89 5 4 1 1 0 8 1
tcpcb 544 779 0 775 6 4 2 3 0 8 1
inpcb 280 4506 0 4498 14 10 4 4 0 8 3
rttmr 72 6 0 6 5 4 1 1 0 8 1
ip6q 72 1 0 1 1 1 0 1 0 8 0
ip6af 40 3 0 3 1 1 0 1 0 8 0
nd6 48 33 0 31 1 0 1 1 0 8 0
pkpcb 40 15 0 15 4 4 0 1 0 8 0
ppxss 1128 51 0 51 3 2 1 1 0 8 1
pffrag 232 54 0 54 5 4 1 1 0 482 1
pffrnode 88 54 0 54 5 4 1 1 0 8 1
pffrent 40 1766 0 1766 5 4 1 1 0 8 1
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 174 0 81 1 0 1 1 0 8 0
pfstkey 112 175 0 82 3 0 3 3 0 8 0
pfstate 328 175 0 81 8 0 8 8 0 8 0
pfrule 1360 21 0 16 2 1 1 2 0 8 0
art_heap8 4096 6 0 2 5 1 4 4 0 8 0
art_heap4 256 1110 0 907 18 4 14 17 0 8 0
art_table 32 1116 0 909 3 0 3 3 0 8 0
art_node 16 239 0 198 1 0 1 1 0 8 0
sysvmsgpl 40 60 0 46 1 0 1 1 0 8 0
semupl 112 4 0 4 1 1 0 1 0 8 0
semapl 112 424 0 414 1 0 1 1 0 8 0
shmpl 112 130 0 2 4 0 4 4 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino1pl 128 4115 0 2704 46 0 46 46 0 8 0
ffsino 272 4115 0 2704 95 0 95 95 0 8 0
nchpl 144 7582 0 7108 60 40 20 60 0 8 0
uvmvnodes 72 5676 0 0 104 0 104 104 0 8 0
vnodes 208 5676 0 0 299 0 299 299 0 8 0
namei 1024 25937 0 25937 1 0 1 1 0 8 1
percpumem 16 30 0 0 1 0 1 1 0 8 0
vcpupl 1984 6 0 0 1 0 1 1 0 8 0
vmpool 552 12 0 6 1 0 1 1 0 8 0
scsiplug 64 4 0 4 2 2 0 1 0 8 0
scxspl 192 25360 0 25360 20 17 3 7 0 8 3
plimitpl 152 154 0 146 1 0 1 1 0 8 0
sigapl 432 1943 0 1928 3 1 2 3 0 8 0
futexpl 56 48735 0 48735 1 0 1 1 0 8 1
knotepl 112 474 0 455 2 0 2 2 0 8 1
kqueuepl 104 1928 0 1920 2 0 2 2 0 8 1
pipepl 112 2154 0 2135 7 5 2 2 0 8 1
fdescpl 488 1944 0 1928 3 0 3 3 0 8 0
filepl 152 21560 0 21446 15 7 8 8 0 8 3
lockfpl 104 677 0 676 1 0 1 1 0 8 0
lockfspl 48 200 0 199 1 0 1 1 0 8 0
sessionpl 112 30 0 19 1 0 1 1 0 8 0
pgrppl 48 49 0 38 1 0 1 1 0 8 0
ucredpl 96 2160 0 2151 1 0 1 1 0 8 0
zombiepl 144 1928 0 1927 1 0 1 1 0 8 0
processpl 896 1961 0 1927 4 0 4 4 0 8 0
procpl 632 5913 0 5869 5 0 5 5 0 8 0
srpgc 64 23 0 23 8 8 0 1 0 8 0
sosppl 128 271 0 271 4 3 1 1 0 8 1
sockpl 384 5819 0 5798 19 11 8 8 0 8 5
mcl64k 65536 21 0 0 3 0 3 3 0 8 0
mcl16k 16384 15 0 0 2 0 2 2 0 8 0
mcl12k 12288 17 0 0 2 0 2 2 0 8 0
mcl9k 9216 5 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 196 0 0 24 1 23 24 0 8 1
mtagpl 80 42 0 0 1 0 1 1 0 8 0
mbufpl 256 730 0 0 42 0 42 42 0 8 0
bufpl 256 14753 0 7695 442 0 442 442 0 8 0
anonpl 16 258469 0 236920 138 43 95 105 0 124 7
amapchunkpl 152 14141 0 13983 32 18 14 14 0 158 5
amappl16 192 11352 0 10128 107 44 63 75 0 8 1
amappl15 184 1 0 1 1 1 0 1 0 8 0
amappl14 176 488 0 482 1 0 1 1 0 8 0
amappl13 168 21 0 20 4 3 1 1 0 8 0
amappl12 160 209 0 206 1 0 1 1 0 8 0
amappl11 152 451 0 436 1 0 1 1 0 8 0
amappl10 144 25 0 19 1 0 1 1 0 8 0
amappl9 136 1099 0 1091 1 0 1 1 0 8 0
amappl8 128 679 0 636 2 0 2 2 0 8 0
amappl7 120 78 0 72 1 0 1 1 0 8 0
amappl6 112 441 0 432 1 0 1 1 0 8 0
amappl5 104 428 0 412 1 0 1 1 0 8 0
amappl4 96 1980 0 1947 1 0 1 1 0 8 0
amappl3 88 589 0 580 1 0 1 1 0 8 0
amappl2 80 14128 0 14055 3 1 2 3 0 8 0
amappl1 72 53413 0 52980 26 15 11 20 0 8 0
amappl 80 6344 0 6291 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 131 0 2 3 0 3 3 0 8 0
uaddrrnd 24 1956 0 1928 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 1956 0 1928 1 0 1 1 0 8 0
vmmpekpl 168 21575 0 21538 3 0 3 3 0 8 0
vmmpepl 168 257282 0 254884 208 58 150 152 0 357 40
vmsppl 368 1943 0 1928 2 0 2 2 0 8 0
pdppl 4096 3919 0 3874 8 2 6 7 0 8 0
pvpl 32 702065 0 678277 264 46 218 237 0 265 20
pmappl 232 1955 0 1934 2 0 2 2 0 8 0
extentpl 40 41 0 26 1 0 1 1 0 8 0
phpool 112 661 0 15 19 0 19 19 0 8 0