panic: kernel diagnostic assertion "rt->rt_ifa->ifa_ifp != NULL" failed: fWAiRlNeI NG":/ sSyPzLka NlOlTe rL/OmWaEnRaEgDe rOsN/ muSlYtSiCAcoLLr e/3 k4e rnEeXIlT/ s0y s9/
n
eStopped at savectx+0xb1: movl $0,%gs:0x530
TID PID UID PRFLAGS PFLAGS CPU COMMAND
315208 98819 0 0 0x4000000 0 syz-executor.1
*165271 58557 74 0x100012 0 1 pflogd
savectx(6,0,734fdf47eb0,3,73212103b16,7341cb98000) at savectx+0xb1
end of kernel
end trace frame: 0x7f7ffffbd7b0, 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}>
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
savectx(6,0,734fdf47eb0,3,73212103b16,7341cb98000) at savectx+0xb1
end of kernel
end trace frame: 0x7f7ffffbd7b0, count: -1
ddb{1}> show registers
rdi 0
rsi 0
rbp 0xffff800020aabeb0
rbx 0
rdx 0xffff800020ac0288
rcx 0
rax 0x31
r8 0xffffffff819ab01f kprintf+0x16f
r9 0x1
r10 0x25
r11 0xd94bcf4eade61e0d
r12 0
r13 0
r14 0xffff800020ac0288
r15 0
rip 0xffffffff819953f1 savectx+0xb1
cs 0x8
rflags 0x46
rsp 0xffff800020aabe30
ss 0x10
savectx+0xb1: movl $0,%gs:0x530
ddb{1}> show proc
PROC (pflogd) pid=165271 stat=onproc
flags process=100012<EXEC,SUGID,PLEDGE> proc=0
pri=51, usrpri=51, nice=20
forw=0xffffffffffffffff, list=0xffff800020ac13d0,0xffff800020ac1658
process=0xffff800020adce00 user=0xffff800020aa6000, vmspace=0xfffffd806e7d1008
estcpu=1, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
98819 80499 89786 0 2 0 syz-executor.1
98819 315208 89786 0 7 0x4000000 syz-executor.1
61379 180602 78133 0 3 0x80 nanosleep syz-executor.0
61379 261700 78133 0 3 0x4000080 nanosleep syz-executor.0
61379 50474 78133 0 3 0x4000080 fsleep syz-executor.0
89786 135556 36221 0 2 0x482 syz-executor.1
78133 413340 36221 0 2 0x482 syz-executor.0
20350 361706 1 0 3 0x100083 ttyin getty
40276 355317 0 0 3 0x14200 acct acct
40621 482199 0 0 3 0x14200 bored sosplice
36221 78459 81260 0 3 0x82 thrsleep syz-fuzzer
36221 418797 81260 0 2 0x4000482 syz-fuzzer
36221 374365 81260 0 3 0x4000082 thrsleep syz-fuzzer
36221 27726 81260 0 3 0x4000082 thrsleep syz-fuzzer
36221 437807 81260 0 2 0x4000482 syz-fuzzer
36221 166675 81260 0 3 0x4000082 kqread syz-fuzzer
36221 431601 81260 0 3 0x4000082 thrsleep syz-fuzzer
36221 229323 81260 0 3 0x4000082 thrsleep syz-fuzzer
36221 24511 81260 0 3 0x4000082 thrsleep syz-fuzzer
36221 464821 81260 0 3 0x4000082 thrsleep syz-fuzzer
81260 248526 5741 0 3 0x10008a pause ksh
5741 351373 76384 0 3 0x92 select sshd
76384 223300 1 0 3 0x80 select sshd
*58557 165271 98176 74 7 0x100012 pflogd
98176 201661 1 0 3 0x80 netio pflogd
87554 220175 52574 73 3 0x100090 kqread syslogd
52574 452562 1 0 3 0x100082 netio syslogd
62235 231360 1 77 3 0x100090 poll dhclient
5464 270435 1 0 3 0x80 poll dhclient
33881 496028 0 0 3 0x14200 pgzero zerothread
71021 524094 0 0 3 0x14200 aiodoned aiodoned
85763 216030 0 0 3 0x14200 syncer update
62455 322392 0 0 3 0x14200 cleaner cleaner
84937 17255 0 0 3 0x14200 reaper reaper
89631 369373 0 0 3 0x14200 pgdaemon pagedaemon
18334 481842 0 0 3 0x14200 bored crynlk
43871 312508 0 0 3 0x14200 bored crypto
41802 375064 0 0 3 0x40014200 acpi0 acpi0
17923 72280 0 0 3 0x40014200 idle1
61657 280140 0 0 3 0x14200 bored softnet
3615 22757 0 0 3 0x14200 bored systqmp
30581 70209 0 0 3 0x14200 bored systq
88270 167370 0 0 2 0x40014200 softclock
81618 349113 0 0 3 0x40014200 idle0
65981 110691 0 0 3 0x14200 bored smr
1 356103 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 98819 (syz-executor.1) thread 0xffff800020ace020 (315208)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826382b0)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 rt_clone+0x5c sys/net/route.c:266
#2 rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline]
#2 rtalloc_mpath+0xba sys/net/route.c:359
#3 ip_output+0x4f2 sys/netinet/ip_output.c:204
#4 rip_output+0x252 sys/netinet/raw_ip.c:289
#5 rip_usrreq+0x46a sys/netinet/raw_ip.c:538
#6 sosend+0x645 sys/kern/uipc_socket.c:524
#7 sendit+0x52b sys/kern/uipc_syscalls.c:662
#8 sys_sendmsg+0x1a4 sys/kern/uipc_syscalls.c:567
#9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#10 Xsyscall+0x128
exclusive rwlock netlock r = 0 (0xffffffff8247e1a8)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 solock+0x5a sys/kern/uipc_socket2.c:282
#2 sosend+0x51b sys/kern/uipc_socket.c:512
#3 sendit+0x52b sys/kern/uipc_syscalls.c:662
#4 sys_sendmsg+0x1a4 sys/kern/uipc_syscalls.c:567
#5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#6 Xsyscall+0x128
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9587 6441K 8540K 78643K 22953 0 0
pcb 13 8K 9K 78643K 515 0 0
rtable 134 5K 6K 78643K 1789 0 0
ifaddr 89 18K 19K 78643K 505 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 4K 78643K 1575 0 0
iov 0 0K 32K 78643K 477 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1237 78K 78K 78643K 4929 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 9K 78643K 73 0 0
VM map 23 11K 11K 78643K 30 0 0
sem 12 0K 0K 78643K 769 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1808 196K 290K 78643K 12765 0 0
file desc 6 17K 25K 78643K 2379 0 0
sigio 0 0K 0K 78643K 25 0 0
proc 62 63K 83K 78643K 1301 0 0
subproc 32 2K 2K 78643K 310 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 1009 0 0
in_multi 38 2K 2K 78643K 322 0 0
ether_multi 1 0K 0K 78643K 26 0 0
mrt 0 0K 0K 78643K 14 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 72 318K 318K 78643K 72 0 0
exec 0 0K 1K 78643K 673 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 149 201K 202K 78643K 9304 0 0
UVM aobj 130 4K 4K 78643K 134 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
ip6_options 0 0K 1K 78643K 528 0 0
NDP 20 0K 0K 78643K 159 0 0
temp 228 3565K 3641K 78643K 47728 0 0
kqueue 0 0K 0K 78643K 12 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 64 0 57 1 0 1 1 0 8 0
plcache 128 20 0 0 1 0 1 1 0 8 0
rtpcb 80 192 0 190 1 0 1 1 0 8 0
rtentry 112 335 0 281 2 0 2 2 0 8 0
unpcb 120 1957 0 1942 4 3 1 2 0 8 0
syncache 264 14 0 14 6 6 0 1 0 8 0
tcpqe 32 2 0 2 2 2 0 1 0 8 0
tcpcb 544 1785 0 1781 4 3 1 2 0 8 0
inpcb 280 4257 0 4247 5 3 2 3 0 8 1
rttmr 72 3 0 3 3 3 0 1 0 8 0
nd6 48 55 0 46 1 0 1 1 0 8 0
pkpcb 40 24 0 24 8 8 0 1 0 8 0
ppxss 1128 65 0 65 8 7 1 1 0 8 1
pffrag 232 55 0 51 7 6 1 1 0 482 0
pffrnode 88 54 0 51 7 6 1 1 0 8 0
pffrent 40 1579 0 1539 7 6 1 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 211 0 148 1 0 1 1 0 8 0
pfstkey 112 211 0 148 2 0 2 2 0 8 0
pfstate 328 211 0 148 7 1 6 6 0 8 0
pfrule 1360 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 1511 0 1155 33 8 25 25 0 8 0
art_table 32 1512 0 1155 5 1 4 4 0 8 0
art_node 16 333 0 283 1 0 1 1 0 8 0
sysvmsgpl 40 40 0 16 1 0 1 1 0 8 0
semupl 112 4 0 4 2 2 0 1 0 8 0
semapl 112 763 0 753 1 0 1 1 0 8 0
shmpl 112 132 0 4 4 0 4 4 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino1pl 128 5192 0 3782 46 0 46 46 0 8 0
ffsino 272 5192 0 3782 95 0 95 95 0 8 0
nchpl 144 9137 0 8658 61 40 21 61 0 8 0
uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0
vnodes 208 5926 0 0 312 0 312 312 0 8 0
namei 1024 32512 0 32512 1 0 1 1 0 8 1
percpumem 16 30 0 0 1 0 1 1 0 8 0
vcpupl 1984 21 0 0 3 0 3 3 0 8 0
vmpool 552 28 0 7 3 1 2 2 0 8 0
scsiplug 64 4 0 4 3 3 0 1 0 8 0
scxspl 192 30367 0 30367 23 22 1 7 0 8 1
plimitpl 152 236 0 228 1 0 1 1 0 8 0
sigapl 432 2532 0 2516 3 1 2 3 0 8 0
futexpl 56 57540 0 57539 1 0 1 1 0 8 0
knotepl 112 703 0 684 2 1 1 2 0 8 0
kqueuepl 104 646 0 644 1 0 1 1 0 8 0
pipepl 112 1894 0 1875 5 4 1 2 0 8 0
fdescpl 488 2533 0 2516 3 0 3 3 0 8 0
filepl 152 23850 0 23747 18 12 6 7 0 8 2
lockfpl 104 797 0 796 1 0 1 1 0 8 0
lockfspl 48 283 0 282 1 0 1 1 0 8 0
sessionpl 112 35 0 24 1 0 1 1 0 8 0
pgrppl 48 53 0 42 1 0 1 1 0 8 0
ucredpl 96 2283 0 2274 1 0 1 1 0 8 0
zombiepl 144 2517 0 2517 1 0 1 1 0 8 1
processpl 896 2551 0 2517 4 0 4 4 0 8 0
procpl 632 7696 0 7650 5 0 5 5 0 8 0
srpgc 64 20 0 20 7 7 0 1 0 8 0
sosppl 128 55 0 55 9 8 1 1 0 8 1
sockpl 384 6473 0 6446 23 19 4 7 0 8 1
mcl64k 65536 269 0 0 34 0 34 34 0 8 0
mcl16k 16384 10 0 0 2 0 2 2 0 8 0
mcl12k 12288 25 0 0 2 0 2 2 0 8 0
mcl9k 9216 15 0 0 2 0 2 2 0 8 0
mcl8k 8192 14 0 0 2 0 2 2 0 8 0
mcl4k 4096 32 0 0 3 1 2 3 0 8 0
mcl2k2 2112 4 0 0 1 0 1 1 0 8 0
mcl2k 2048 165 0 0 19 0 19 19 0 8 0
mtagpl 80 46 0 0 1 0 1 1 0 8 0
mbufpl 256 1090 0 0 59 0 59 59 0 8 0
bufpl 256 15044 0 7996 441 0 441 441 0 8 0
anonpl 16 360547 0 345157 148 59 89 94 0 124 7
amapchunkpl 152 19186 0 19067 49 43 6 19 0 158 0
amappl16 192 15839 0 14729 160 101 59 68 0 8 3
amappl15 184 244 0 244 2 2 0 1 0 8 0
amappl14 176 486 0 483 1 0 1 1 0 8 0
amappl13 168 164 0 164 2 2 0 1 0 8 0
amappl12 160 78 0 76 1 0 1 1 0 8 0
amappl11 152 629 0 614 1 0 1 1 0 8 0
amappl10 144 205 0 201 1 0 1 1 0 8 0
amappl9 136 1207 0 1199 1 0 1 1 0 8 0
amappl8 128 748 0 712 2 0 2 2 0 8 0
amappl7 120 301 0 292 1 0 1 1 0 8 0
amappl6 112 611 0 599 1 0 1 1 0 8 0
amappl5 104 328 0 312 1 0 1 1 0 8 0
amappl4 96 2431 0 2397 2 1 1 2 0 8 0
amappl3 88 977 0 969 1 0 1 1 0 8 0
amappl2 80 18618 0 18537 3 1 2 3 0 8 0
amappl1 72 67154 0 66702 25 15 10 20 0 8 0
amappl 80 8244 0 8189 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 133 0 4 3 0 3 3 0 8 0
uaddrrnd 24 2561 0 2516 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 2561 0 2516 1 0 1 1 0 8 0
vmmpekpl 168 25022 0 24980 3 0 3 3 0 8 0
vmmpepl 168 335957 0 333567 235 93 142 144 0 357 35
vmsppl 368 2532 0 2516 2 0 2 2 0 8 0
pdppl 4096 5129 0 5067 8 0 8 8 0 8 0
pvpl 32 926663 0 908237 287 80 207 216 0 265 22
pmappl 232 2560 0 2523 4 1 3 3 0 8 0
extentpl 40 41 0 26 1 0 1 1 0 8 0
phpool 112 711 0 15 20 0 20 20 0 8 0