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 192835 32260 0 0 0 0 syz-executor.0 *315702 90115 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 __assert(ffffffff822089a2,ffffffff821d2b2e,350,ffffffff821aad56) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800022b69338,83,ffff800022b693d8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800022b69448,fffffd806f6d5198,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d5198,fffffd806c98f2f4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d5198,fffffd806c98f2f4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd806c98f200,0,fffffd806f6d5188,20,0,fffffd806f6d5118) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8065191900,fffffd807ce10ab8,ffff800022b69658,ffff800023980000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd807ce10ab8,9,fffffd8065191900,0,0,ffff800020abe518) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd807ce10ab8,0,ffff800022b69878,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020abe518,3,ffff800022b69878,0,ffff800022b69960) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020abe518,ffff800022b69918,ffff800022b69960) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800022b699e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b699e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,aff295f0010) at Xsyscall+0x128 end of kernel end trace frame: 0xb014d176b50, 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 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(ffffffff822089a2,ffffffff821d2b2e,350,ffffffff821aad56) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800022b69338,83,ffff800022b693d8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800022b69448,fffffd806f6d5198,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d5198,fffffd806c98f2f4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d5198,fffffd806c98f2f4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd806c98f200,0,fffffd806f6d5188,20,0,fffffd806f6d5118) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8065191900,fffffd807ce10ab8,ffff800022b69658,ffff800023980000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd807ce10ab8,9,fffffd8065191900,0,0,ffff800020abe518) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd807ce10ab8,0,ffff800022b69878,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020abe518,3,ffff800022b69878,0,ffff800022b69960) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020abe518,ffff800022b69918,ffff800022b69960) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800022b699e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b699e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,aff295f0010) at Xsyscall+0x128 end of kernel end trace frame: 0xb014d176b50, count: -14 ddb{1}> show registers rdi 0xffffffff81a8d2c7 db_enter+0x17 rsi 0x42e6 __ALIGN_SIZE+0x32e6 rbp 0xffff800022b69150 rbx 0xffff800022b69200 rdx 0x42e7 __ALIGN_SIZE+0x32e7 rcx 0xffff800023980000 rax 0xffff800023980000 r8 0xffffffff818b4cbf kprintf+0x16f r9 0x1 r10 0x25 r11 0x23c611f6a976747 r12 0x3000000008 r13 0xffff800022b69160 r14 0x100 r15 0x1 rip 0xffffffff81a8d2c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022b69140 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=315702 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abfb50,0xffff800020abf3f8 process=0xffff800020a8b190 user=0xffff800022b64000, vmspace=0xfffffd807f00b5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 32260 192835 98746 0 7 0 syz-executor.0 32260 238343 98746 0 3 0x4000080 fsleep syz-executor.0 90115 307673 41469 0 2 0 syz-executor.1 *90115 315702 41469 0 7 0x4000000 syz-executor.1 41469 473348 66387 0 3 0x82 nanosleep syz-executor.1 98746 52729 66387 0 3 0x82 nanosleep syz-executor.0 72944 397485 1 0 3 0x100083 ttyin getty 83034 265528 0 0 3 0x14200 acct acct 64158 182449 0 0 3 0x14200 bored sosplice 66387 260119 9270 0 3 0x82 thrsleep syz-fuzzer 66387 159133 9270 0 3 0x4000082 nanosleep syz-fuzzer 66387 410268 9270 0 3 0x4000082 thrsleep syz-fuzzer 66387 15118 9270 0 3 0x4000082 thrsleep syz-fuzzer 66387 196266 9270 0 3 0x4000082 thrsleep syz-fuzzer 66387 331216 9270 0 3 0x4000082 thrsleep syz-fuzzer 66387 307654 9270 0 3 0x4000082 thrsleep syz-fuzzer 66387 489241 9270 0 3 0x4000082 thrsleep syz-fuzzer 66387 414362 9270 0 3 0x4000082 kqread syz-fuzzer 66387 518197 9270 0 3 0x4000082 thrsleep syz-fuzzer 9270 336282 3789 0 3 0x10008a pause ksh 3789 52146 15462 0 3 0x92 select sshd 15462 241231 1 0 3 0x80 select sshd 27217 506145 19850 74 3 0x100092 bpf pflogd 19850 387973 1 0 3 0x80 netio pflogd 85241 427860 54982 73 3 0x100090 kqread syslogd 54982 320889 1 0 3 0x100082 netio syslogd 93982 366271 1 77 3 0x100090 poll dhclient 44312 114841 1 0 3 0x80 poll dhclient 86780 144305 0 0 2 0x14200 zerothread 63840 165745 0 0 3 0x14200 aiodoned aiodoned 93960 347406 0 0 3 0x14200 syncer update 47606 138487 0 0 3 0x14200 cleaner cleaner 44641 95218 0 0 3 0x14200 reaper reaper 5451 210155 0 0 3 0x14200 pgdaemon pagedaemon 60084 379668 0 0 3 0x14200 bored crynlk 73004 466977 0 0 3 0x14200 bored crypto 52251 461569 0 0 3 0x40014200 acpi0 acpi0 10701 382127 0 0 3 0x40014200 idle1 4451 74838 0 0 3 0x14200 bored softnet 62027 340110 0 0 3 0x14200 bored systqmp 85813 511224 0 0 3 0x14200 bored systq 1804 353383 0 0 3 0x40014200 bored softclock 34233 46219 0 0 3 0x40014200 idle0 21301 103584 0 0 3 0x14200 bored smr 1 199710 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 90115 (syz-executor.1) thread 0xffff800020abe518 (315702) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82644940) #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 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #8 sys_write+0x83 sys/kern/sys_generic.c:284 #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 (0xffffffff824d26b8) #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 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #4 sys_write+0x83 sys/kern/sys_generic.c:284 #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 9619 7108K 8911K 78643K 66091 0 0 pcb 13 12K 14K 78643K 2317 0 0 rtable 186 18K 19K 78643K 5684 0 0 ifaddr 119 30K 31K 78643K 1746 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2062 0 0 iov 0 0K 32K 78643K 2313 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1227 77K 78K 78643K 18347 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 112 0 0 VM map 53 26K 27K 78643K 83 0 0 sem 12 0K 0K 78643K 3035 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 10311 0 0 sigio 0 0K 0K 78643K 86 0 0 proc 61 63K 95K 78643K 3813 0 0 subproc 32 2K 2K 78643K 1032 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 964 0 0 in_multi 39 2K 3K 78643K 1138 0 0 ether_multi 1 0K 0K 78643K 116 0 0 mrt 3 0K 0K 78643K 98 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 2298 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 228 467K 471K 78643K 37275 0 0 UVM aobj 130 8K 8K 78643K 133 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 2529 0 0 NDP 24 0K 1K 78643K 550 0 0 temp 257 3561K 4202K 78643K 272190 0 0 kqueue 0 0K 0K 78643K 174 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 147 0 141 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 964 0 962 1 0 1 1 0 8 0 rtentry 112 952 0 877 4 1 3 3 0 8 0 unpcb 120 5937 0 5898 17 15 2 2 0 8 0 syncache 264 49 0 49 20 20 0 1 0 8 0 tcpqe 32 32 0 32 15 15 0 1 0 8 0 tcpcb 544 4796 0 4792 49 48 1 12 0 8 0 ipq 40 2 0 2 2 1 1 1 0 8 1 ipqe 40 4 0 4 2 1 1 1 0 8 1 inpcb 280 20395 0 20387 53 50 3 13 0 8 2 rttmr 72 31 0 31 17 17 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 1 0 1 1 1 0 1 0 8 0 nd6 48 144 0 142 8 7 1 1 0 8 0 pkpcb 40 96 0 96 24 23 1 1 0 8 1 swfcl 56 6 0 0 1 0 1 1 0 8 0 ppxss 1128 278 0 277 18 17 1 1 0 8 0 pffrag 232 277 0 277 33 32 1 1 0 482 1 pffrnode 88 274 0 274 33 32 1 1 0 8 1 pffrent 40 7200 0 7200 33 32 1 1 0 8 1 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 807 0 754 1 0 1 1 0 8 0 pfstkey 112 810 0 757 4 2 2 3 0 8 0 pfstate 328 810 0 757 9 3 6 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 23 0 18 18 13 5 5 0 8 0 art_heap4 256 4119 0 3857 67 46 21 21 0 8 2 art_table 32 4142 0 3875 9 6 3 3 0 8 0 art_node 16 941 0 893 1 0 1 1 0 8 0 sysvmsgpl 40 67 0 40 1 0 1 1 0 8 0 semapl 112 3033 0 3023 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 17971 0 16515 49 1 48 48 0 8 0 ffsino 272 17971 0 16515 98 0 98 98 0 8 0 nchpl 144 33601 0 33086 61 39 22 61 0 8 0 uvmvnodes 72 7171 0 0 131 0 131 131 0 8 0 vnodes 208 7171 0 0 378 0 378 378 0 8 0 namei 1024 130073 0 130073 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 51 0 0 7 0 7 7 0 8 0 vmpool 552 81 0 30 4 0 4 4 0 8 0 scsiplug 64 16 0 16 8 8 0 1 0 8 0 scxspl 192 110802 0 110802 79 78 1 7 0 8 1 plimitpl 152 838 0 830 1 0 1 1 0 8 0 sigapl 432 10347 0 10331 3 1 2 3 0 8 0 futexpl 56 259785 0 259784 2 1 1 1 0 8 0 knotepl 112 2892 0 2873 27 26 1 3 0 8 0 kqueuepl 104 3259 0 3257 7 6 1 4 0 8 0 pipepl 112 5800 0 5779 12 11 1 2 0 8 0 fdescpl 488 10348 0 10331 3 0 3 3 0 8 0 filepl 152 99682 0 99579 88 82 6 14 0 8 2 lockfpl 104 3350 0 3349 1 0 1 1 0 8 0 lockfspl 48 1171 0 1170 1 0 1 1 0 8 0 sessionpl 112 88 0 77 1 0 1 1 0 8 0 pgrppl 48 194 0 183 1 0 1 1 0 8 0 ucredpl 96 13388 0 13378 1 0 1 1 0 8 0 zombiepl 144 10332 0 10332 3 2 1 1 0 8 1 processpl 896 10366 0 10332 4 0 4 4 0 8 0 procpl 632 33292 0 33247 6 1 5 5 0 8 0 srpgc 64 131 0 131 35 34 1 1 0 8 1 sosppl 128 313 0 313 34 33 1 1 0 8 1 sockpl 384 27787 0 27738 94 87 7 23 0 8 1 mcl64k 65536 1188 0 0 122 57 65 65 0 8 0 mcl16k 16384 49 0 0 4 1 3 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 33 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 4 1 3 3 0 8 0 mcl4k 4096 37 0 0 4 2 2 3 0 8 0 mcl2k2 2112 17 0 0 2 0 2 2 0 8 0 mcl2k 2048 225 0 0 22 5 17 22 0 8 0 mtagpl 80 97 0 0 1 0 1 1 0 8 0 mbufpl 256 1445 0 0 58 0 58 58 0 8 0 bufpl 256 39812 0 32617 450 0 450 450 0 8 0 anonpl 16 1135698 0 1118264 258 172 86 97 0 124 0 amapchunkpl 152 75506 0 75357 151 143 8 20 0 158 0 amappl16 192 50986 0 49793 278 216 62 72 0 8 0 amappl15 184 2600 0 2600 7 6 1 1 0 8 1 amappl14 176 2146 0 2139 1 0 1 1 0 8 0 amappl13 168 1337 0 1337 12 12 0 1 0 8 0 amappl12 160 898 0 893 2 1 1 1 0 8 0 amappl11 152 1751 0 1733 1 0 1 1 0 8 0 amappl10 144 971 0 965 1 0 1 1 0 8 0 amappl9 136 2403 0 2400 1 0 1 1 0 8 0 amappl8 128 2027 0 1962 3 0 3 3 0 8 0 amappl7 120 1237 0 1228 1 0 1 1 0 8 0 amappl6 112 1676 0 1657 1 0 1 1 0 8 0 amappl5 104 1526 0 1512 1 0 1 1 0 8 0 amappl4 96 10197 0 10158 4 2 2 2 0 8 0 amappl3 88 3048 0 3037 1 0 1 1 0 8 0 amappl2 80 80908 0 80827 3 1 2 3 0 8 0 amappl1 72 242889 0 242425 25 15 10 20 0 8 0 amappl 80 34678 0 34600 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 132 0 3 3 0 3 3 0 8 0 uaddrrnd 24 10429 0 10331 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10429 0 10331 1 0 1 1 0 8 0 vmmpekpl 168 86076 0 86031 4 1 3 3 0 8 0 vmmpepl 168 1317625 0 1315012 532 376 156 157 0 357 35 vmsppl 368 10347 0 10331 2 0 2 2 0 8 0 pdppl 4096 20865 0 20773 16 4 12 12 0 8 0 pvpl 32 3093037 0 3073029 554 357 197 228 0 265 0 pmappl 232 10428 0 10361 5 1 4 5 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 925 0 183 22 0 22 22 0 8 0