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 *351655 46484 0 0 0x4000000 0 syz-executor.0 15184 74394 0 0 0x480 1 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 __assert(ffffffff8220951b,ffffffff821d1c53,350,ffffffff821a9916) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800022b71158,83,ffff800022b711f8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800022b71268,fffffd80643c03f0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd80643c03f0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd80643c03f0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022b71340,fffffd8065bfc820,fffffd80643c0370) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd80643c0370,fffffd8065bfc800) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8061cb4080,4,0,fffffd8065bfc800,0,ffff800020b34a00) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020b34a00,ffff800022b714e8,ffff800022b71530) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022b715b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b715b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,c5a0d24b010) at Xsyscall+0x128 end of kernel end trace frame: 0xc5c790d3090, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel diagnostic assertion "rt->rt_ifa->ifa_ifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 848 ddb{0}> 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(ffffffff8220951b,ffffffff821d1c53,350,ffffffff821a9916) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800022b71158,83,ffff800022b711f8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800022b71268,fffffd80643c03f0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd80643c03f0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd80643c03f0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022b71340,fffffd8065bfc820,fffffd80643c0370) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd80643c0370,fffffd8065bfc800) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8061cb4080,4,0,fffffd8065bfc800,0,ffff800020b34a00) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020b34a00,ffff800022b714e8,ffff800022b71530) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022b715b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b715b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,c5a0d24b010) at Xsyscall+0x128 end of kernel end trace frame: 0xc5c790d3090, count: -12 ddb{0}> show registers rdi 0xffffffff8120bfe7 db_enter+0x17 rsi 0x371e __ALIGN_SIZE+0x271e rbp 0xffff800022b70f70 rbx 0xffff800022b71020 rdx 0x371f __ALIGN_SIZE+0x271f rcx 0xffff800021d5a000 rax 0xffff800021d5a000 r8 0xffffffff81d00c7f kprintf+0x16f r9 0x1 r10 0x25 r11 0x13d01d2fa3540c70 r12 0x3000000008 r13 0xffff800022b70f80 r14 0x100 r15 0x1 rip 0xffffffff8120bfe8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022b70f60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=351655 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020b34ef0,0xffffffff8266a260 process=0xffff800020adc380 user=0xffff800022b6c000, vmspace=0xfffffd807f00a450 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 46484 506711 50204 0 2 0 syz-executor.0 *46484 351655 50204 0 7 0x4000000 syz-executor.0 74394 15184 8055 0 7 0x480 syz-executor.1 74394 298811 8055 0 3 0x4000080 netio syz-executor.1 74394 143242 8055 0 3 0x4000080 fsleep syz-executor.1 8055 224522 47197 0 2 0x2 syz-executor.1 50204 429159 47197 0 2 0x482 syz-executor.0 74555 377164 0 0 3 0x14200 bored sosplice 47197 471026 95158 0 2 0x482 syz-fuzzer 47197 90729 95158 0 2 0x4000482 syz-fuzzer 47197 314222 95158 0 3 0x4000082 thrsleep syz-fuzzer 47197 286963 95158 0 3 0x4000082 thrsleep syz-fuzzer 47197 27029 95158 0 3 0x4000082 thrsleep syz-fuzzer 47197 220813 95158 0 3 0x4000082 thrsleep syz-fuzzer 47197 425144 95158 0 3 0x4000082 thrsleep syz-fuzzer 47197 259492 95158 0 3 0x4000082 kqread syz-fuzzer 47197 455735 95158 0 3 0x4000082 thrsleep syz-fuzzer 47197 107853 95158 0 3 0x4000082 thrsleep syz-fuzzer 95158 350494 5230 0 3 0x10008a pause ksh 5230 331148 14788 0 3 0x92 select sshd 72470 357658 1 0 3 0x100083 ttyin getty 14788 410271 1 0 3 0x80 select sshd 92805 494452 74975 74 3 0x100092 bpf pflogd 74975 1995 1 0 3 0x80 netio pflogd 8222 496913 2372 73 3 0x100090 kqread syslogd 2372 495637 1 0 3 0x100082 netio syslogd 68172 275161 1 77 3 0x100090 poll dhclient 11251 317495 1 0 3 0x80 poll dhclient 8888 244653 0 0 3 0x14200 pgzero zerothread 58274 177161 0 0 3 0x14200 aiodoned aiodoned 39648 517383 0 0 3 0x14200 syncer update 74182 342403 0 0 3 0x14200 cleaner cleaner 62205 503537 0 0 3 0x14200 reaper reaper 13246 38187 0 0 3 0x14200 pgdaemon pagedaemon 69900 397827 0 0 3 0x14200 bored crynlk 4861 149487 0 0 3 0x14200 bored crypto 96566 177166 0 0 3 0x40014200 acpi0 acpi0 74774 361233 0 0 3 0x40014200 idle1 45844 128051 0 0 3 0x14200 bored softnet 73876 209094 0 0 3 0x14200 bored systqmp 93894 444176 0 0 3 0x14200 bored systq 61274 270524 0 0 3 0x40014200 bored softclock 89087 178696 0 0 3 0x40014200 idle0 3410 452543 0 0 3 0x14200 bored smr 1 369029 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 46484 (syz-executor.0) thread 0xffff800020b34a00 (351655) exclusive rwlock netlock r = 0 (0xffffffff824c0f78) #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 (0xffffffff82623a10) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9602 7103K 15276K 78643K 16425 0 0 pcb 14 11K 13K 78643K 4249 0 0 rtable 127 14K 17K 78643K 1688 0 0 ifaddr 91 20K 22K 78643K 541 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1627 0 0 iov 0 0K 20K 78643K 473 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1234 78K 78K 78643K 3299 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 37 0 0 VM map 21 10K 10K 78643K 24 0 0 sem 12 0K 0K 78643K 1134 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 2274 0 0 sigio 0 0K 0K 78643K 49 0 0 proc 62 63K 95K 78643K 1219 0 0 subproc 32 2K 2K 78643K 238 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 154 0 0 in_multi 24 1K 2K 78643K 266 0 0 ether_multi 1 0K 0K 78643K 25 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 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 583 0 0 pfkey data 0 0K 0K 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 154 169K 178K 78643K 9181 0 0 UVM aobj 130 9K 9K 78643K 141 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 2K 78643K 561 0 0 NDP 22 0K 0K 78643K 162 0 0 temp 242 3561K 4196K 78643K 37427 0 0 kqueue 0 0K 0K 78643K 19 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 54 0 47 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 144 0 141 1 0 1 1 0 8 0 rtentry 112 279 0 233 2 0 2 2 0 8 0 unpcb 120 1301 0 1287 3 1 2 2 0 8 1 syncache 264 11 0 11 4 4 0 1 0 8 0 tcpqe 32 3 0 3 2 2 0 1 0 8 0 tcpcb 544 960 0 955 5 4 1 3 0 8 0 inpcb 280 10598 0 10586 27 18 9 13 0 8 7 rttmr 72 5 0 5 3 3 0 1 0 8 0 nd6 48 31 0 29 1 0 1 1 0 8 0 pkpcb 40 15 0 15 8 7 1 1 0 8 1 ppxss 1128 77 0 77 4 3 1 1 0 8 1 pffrag 232 60 0 60 4 4 0 1 0 482 0 pffrnode 88 60 0 60 4 4 0 1 0 8 0 pffrent 40 2299 0 2299 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 241 0 165 1 0 1 1 0 8 0 pfstkey 112 243 0 167 4 0 4 4 0 8 0 pfstate 328 243 0 167 10 0 10 10 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 6 0 4 4 2 2 4 0 8 0 art_heap4 256 1027 0 821 25 11 14 17 0 8 0 art_table 32 1033 0 825 5 3 2 3 0 8 0 art_node 16 277 0 234 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 8 1 0 1 1 0 8 0 semapl 112 1132 0 1122 1 0 1 1 0 8 0 shmpl 112 139 0 11 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4885 0 3480 46 0 46 46 0 8 0 ffsino 272 4885 0 3480 95 0 95 95 0 8 0 nchpl 144 8582 0 8107 61 41 20 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 28409 0 28409 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 19 0 0 3 0 3 3 0 8 0 vmpool 552 22 0 3 2 0 2 2 0 8 0 scxspl 192 25431 0 25431 24 22 2 7 0 8 2 plimitpl 152 213 0 205 1 0 1 1 0 8 0 sigapl 432 2436 0 2420 3 1 2 3 0 8 0 futexpl 56 60299 0 60298 1 0 1 1 0 8 0 knotepl 112 588 0 569 3 2 1 2 0 8 0 kqueuepl 104 662 0 660 3 2 1 2 0 8 0 pipepl 112 1436 0 1417 3 1 2 2 0 8 1 fdescpl 488 2437 0 2420 3 0 3 3 0 8 0 filepl 152 25310 0 25204 25 12 13 14 0 8 8 lockfpl 104 842 0 841 1 0 1 1 0 8 0 lockfspl 48 296 0 295 1 0 1 1 0 8 0 sessionpl 112 30 0 19 1 0 1 1 0 8 0 pgrppl 48 53 0 42 1 0 1 1 0 8 0 ucredpl 96 2270 0 2261 1 0 1 1 0 8 0 zombiepl 144 2423 0 2423 1 0 1 1 0 8 1 processpl 896 2456 0 2423 4 0 4 4 0 8 0 procpl 632 7722 0 7677 5 0 5 5 0 8 0 srpgc 64 20 0 20 7 7 0 1 0 8 0 sosppl 128 86 0 86 7 7 0 1 0 8 0 sockpl 384 12182 0 12153 41 28 13 22 0 8 8 mcl64k 65536 26 0 0 4 1 3 3 0 8 0 mcl16k 16384 15 0 0 2 0 2 2 0 8 0 mcl12k 12288 19 0 0 2 0 2 2 0 8 0 mcl9k 9216 12 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 159 0 0 19 0 19 19 0 8 0 mtagpl 80 43 0 0 1 0 1 1 0 8 0 mbufpl 256 590 0 0 32 0 32 32 0 8 0 bufpl 256 11764 0 4706 442 0 442 442 0 8 0 anonpl 16 305291 0 284015 148 55 93 99 0 124 3 amapchunkpl 152 18510 0 18340 39 27 12 14 0 158 4 amappl16 192 12835 0 11637 112 43 69 72 0 8 8 amappl15 184 10 0 9 1 0 1 1 0 8 0 amappl14 176 238 0 233 1 0 1 1 0 8 0 amappl13 168 256 0 253 1 0 1 1 0 8 0 amappl12 160 516 0 513 1 0 1 1 0 8 0 amappl11 152 364 0 349 1 0 1 1 0 8 0 amappl10 144 292 0 286 1 0 1 1 0 8 0 amappl9 136 1373 0 1369 1 0 1 1 0 8 0 amappl8 128 934 0 896 2 0 2 2 0 8 0 amappl7 120 348 0 341 1 0 1 1 0 8 0 amappl6 112 338 0 325 1 0 1 1 0 8 0 amappl5 104 739 0 723 1 0 1 1 0 8 0 amappl4 96 2499 0 2463 2 1 1 2 0 8 0 amappl3 88 631 0 622 1 0 1 1 0 8 0 amappl2 80 17999 0 17917 3 1 2 3 0 8 0 amappl1 72 65039 0 64581 25 15 10 20 0 8 0 amappl 80 8231 0 8173 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 140 0 11 3 0 3 3 0 8 0 uaddrrnd 24 2459 0 2420 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2459 0 2420 1 0 1 1 0 8 0 vmmpekpl 168 22264 0 22223 3 0 3 3 0 8 0 vmmpepl 168 317150 0 314608 226 81 145 155 0 357 31 vmsppl 368 2436 0 2420 2 0 2 2 0 8 0 pdppl 4096 4925 0 4865 8 0 8 8 0 8 0 pvpl 32 795547 0 772026 296 89 207 225 0 265 9 pmappl 232 2458 0 2423 3 0 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 652 0 21 19 0 19 19 0 8 0