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 152209 1185 0 0 0 0 syz-executor.1 *503876 1185 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(ffffffff82208f7b,ffffffff821d48a2,350,ffffffff821acbc4) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff80002399d138,83,ffff80002399d1d8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff80002399d248,fffffd806f6d52b0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d52b0,fffffd806f207074,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d52b0,fffffd806f207074,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd8061d16200,0,fffffd806f6d52a0,20,0,fffffd806f6d5230) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8061d16200,fffffd806f6d6000,ffff80002399d458,ffff800020b50000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd806f6d6000,9,fffffd8061d16200,0,0,ffff800020abf650) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd806f6d6000,0,ffff80002399d678,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020abf650,4,ffff80002399d678,0,ffff80002399d760) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020abf650,ffff80002399d718,ffff80002399d760) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff80002399d7e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff80002399d7e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,e4ea85ca010) at Xsyscall+0x128 end of kernel end trace frame: 0xe50ec4863b0, 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(ffffffff82208f7b,ffffffff821d48a2,350,ffffffff821acbc4) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff80002399d138,83,ffff80002399d1d8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff80002399d248,fffffd806f6d52b0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d52b0,fffffd806f207074,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d52b0,fffffd806f207074,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd8061d16200,0,fffffd806f6d52a0,20,0,fffffd806f6d5230) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8061d16200,fffffd806f6d6000,ffff80002399d458,ffff800020b50000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd806f6d6000,9,fffffd8061d16200,0,0,ffff800020abf650) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd806f6d6000,0,ffff80002399d678,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020abf650,4,ffff80002399d678,0,ffff80002399d760) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020abf650,ffff80002399d718,ffff80002399d760) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff80002399d7e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff80002399d7e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,e4ea85ca010) at Xsyscall+0x128 end of kernel end trace frame: 0xe50ec4863b0, count: -14 ddb{1}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x3bef __ALIGN_SIZE+0x2bef rbp 0xffff80002399cf50 rbx 0xffff80002399d000 rdx 0x3bf0 __ALIGN_SIZE+0x2bf0 rcx 0xffff800020b50000 rax 0xffff800020b50000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0x46284a9efa57837e r12 0x3000000008 r13 0xffff80002399cf60 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002399cf40 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=503876 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020abf3d8,0xffff800020abe028 process=0xffff800020addc00 user=0xffff800023998000, vmspace=0xfffffd807f00a5c0 estcpu=31, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 1185 152209 12477 0 7 0 syz-executor.1 * 1185 503876 12477 0 7 0x4000000 syz-executor.1 1185 70373 12477 0 3 0x4000080 fsleep syz-executor.1 82372 215048 27472 0 2 0 syz-executor.0 82372 300654 27472 0 2 0x4000000 syz-executor.0 27472 59627 527 0 3 0x82 nanosleep syz-executor.0 12477 76672 527 0 3 0x82 nanosleep syz-executor.1 68774 148690 1 0 3 0x100083 ttyin getty 54172 293727 0 0 3 0x14200 acct acct 57005 450835 0 0 3 0x14200 bored sosplice 527 512859 12966 0 3 0x82 thrsleep syz-fuzzer 527 143509 12966 0 3 0x4000082 nanosleep syz-fuzzer 527 69484 12966 0 3 0x4000082 kqread syz-fuzzer 527 413633 12966 0 3 0x4000082 thrsleep syz-fuzzer 527 429357 12966 0 3 0x4000082 thrsleep syz-fuzzer 527 486629 12966 0 3 0x4000082 thrsleep syz-fuzzer 527 413063 12966 0 3 0x4000082 thrsleep syz-fuzzer 527 395125 12966 0 3 0x4000082 thrsleep syz-fuzzer 527 514147 12966 0 3 0x4000082 thrsleep syz-fuzzer 527 394962 12966 0 3 0x4000082 thrsleep syz-fuzzer 12966 111474 89449 0 3 0x10008a pause ksh 89449 484401 94367 0 3 0x92 select sshd 94367 186071 1 0 3 0x80 select sshd 72213 183306 68410 74 3 0x100092 bpf pflogd 68410 108296 1 0 3 0x80 netio pflogd 23337 61079 96560 73 3 0x100090 kqread syslogd 96560 209667 1 0 3 0x100082 netio syslogd 46974 276086 1 77 3 0x100090 poll dhclient 74332 212143 1 0 3 0x80 poll dhclient 12684 459284 0 0 2 0x14200 zerothread 55696 64448 0 0 3 0x14200 aiodoned aiodoned 85929 48673 0 0 3 0x14200 syncer update 45952 123369 0 0 3 0x14200 cleaner cleaner 62169 416154 0 0 3 0x14200 reaper reaper 29944 44921 0 0 3 0x14200 pgdaemon pagedaemon 49234 114758 0 0 3 0x14200 bored crynlk 3419 81213 0 0 3 0x14200 bored crypto 86044 382325 0 0 3 0x40014200 acpi0 acpi0 2815 137196 0 0 3 0x40014200 idle1 51373 382160 0 0 3 0x14200 bored softnet 96681 435006 0 0 3 0x14200 bored systqmp 74764 488546 0 0 3 0x14200 bored systq 28560 342819 0 0 3 0x40014200 bored softclock 49165 127517 0 0 3 0x40014200 idle0 59758 12571 0 0 3 0x14200 bored smr 1 420658 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 1185 (syz-executor.1) thread 0xffff800020abf650 (503876) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82648ec0) #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 (0xffffffff824dc718) #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 9590 7084K 8751K 78643K 13978 0 0 pcb 13 10K 12K 78643K 388 0 0 rtable 123 13K 14K 78643K 2336 0 0 ifaddr 92 19K 19K 78643K 350 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1522 0 0 iov 0 0K 24K 78643K 330 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1238 78K 78K 78643K 2491 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 10 5K 5K 78643K 16 0 0 sem 12 0K 0K 78643K 429 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1459 0 0 sigio 0 0K 0K 78643K 32 0 0 proc 61 63K 95K 78643K 1056 0 0 subproc 32 2K 2K 78643K 223 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 167 0 0 in_multi 35 2K 2K 78643K 243 0 0 ether_multi 1 0K 0K 78643K 25 0 0 mrt 0 0K 0K 78643K 23 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 515 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 131 71K 72K 78643K 6129 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 353 0 0 NDP 21 0K 0K 78643K 111 0 0 temp 235 3561K 4200K 78643K 70358 0 0 kqueue 0 0K 0K 78643K 10 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 49 0 44 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1422 0 1420 1 0 1 1 0 8 0 rtentry 112 243 0 196 2 0 2 2 0 8 0 unpcb 120 1564 0 1554 5 4 1 2 0 8 0 syncache 264 10 0 10 5 5 0 1 0 8 0 tcpqe 32 2 0 2 2 2 0 1 0 8 0 tcpcb 544 1039 0 1035 24 22 2 12 0 8 1 inpcb 280 2415 0 2407 21 19 2 9 0 8 1 rttmr 72 7 0 7 4 4 0 1 0 8 0 ip6q 72 2 0 1 2 1 1 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 30 0 26 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 ppxss 1128 36 0 36 5 5 0 1 0 8 0 pffrag 232 31 0 31 7 6 1 1 0 482 1 pffrnode 88 31 0 31 7 6 1 1 0 8 1 pffrent 40 1005 0 1005 7 6 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 138 0 93 1 0 1 1 0 8 0 pfstkey 112 138 0 93 2 0 2 2 0 8 0 pfstate 328 138 0 93 6 0 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 4 0 2 4 2 2 3 0 8 0 art_heap4 256 1003 0 767 22 7 15 16 0 8 0 art_table 32 1007 0 769 2 0 2 2 0 8 0 art_node 16 241 0 200 1 0 1 1 0 8 0 sysvmsgpl 40 28 0 28 1 1 0 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 427 0 417 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 3564 0 2155 46 0 46 46 0 8 0 ffsino 272 3564 0 2155 95 0 95 95 0 8 0 nchpl 144 6088 0 4472 61 0 61 61 0 8 0 uvmvnodes 72 4532 0 0 83 0 83 83 0 8 0 vnodes 208 4532 0 0 239 0 239 239 0 8 0 namei 1024 20550 0 20550 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 8 0 0 1 0 1 1 0 8 0 vmpool 552 14 0 6 1 0 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 18210 0 18210 17 16 1 7 0 8 1 plimitpl 152 126 0 118 1 0 1 1 0 8 0 sigapl 432 1626 0 1610 3 1 2 3 0 8 0 futexpl 56 36379 0 36378 1 0 1 1 0 8 0 knotepl 112 358 0 339 1 0 1 1 0 8 0 kqueuepl 104 645 0 643 7 6 1 4 0 8 0 pipepl 112 1028 0 1009 3 2 1 2 0 8 0 fdescpl 488 1627 0 1610 3 0 3 3 0 8 0 filepl 152 15643 0 15538 25 19 6 13 0 8 1 lockfpl 104 551 0 550 1 0 1 1 0 8 0 lockfspl 48 177 0 176 1 0 1 1 0 8 0 sessionpl 112 31 0 20 1 0 1 1 0 8 0 pgrppl 48 40 0 29 1 0 1 1 0 8 0 ucredpl 96 1914 0 1905 1 0 1 1 0 8 0 zombiepl 144 1610 0 1610 1 0 1 1 0 8 1 processpl 896 1644 0 1610 4 0 4 4 0 8 0 procpl 632 4761 0 4715 5 0 5 5 0 8 0 srpgc 64 20 0 20 5 4 1 1 0 8 1 sosppl 128 41 0 41 6 5 1 1 0 8 1 sockpl 384 5420 0 5400 35 29 6 14 0 8 4 mcl64k 65536 262 0 0 33 3 30 33 0 8 1 mcl16k 16384 13 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 6 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 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 159 0 0 19 2 17 19 0 8 0 mtagpl 80 38 0 0 1 0 1 1 0 8 0 mbufpl 256 485 0 0 27 0 27 27 0 8 0 bufpl 256 10591 0 3533 442 0 442 442 0 8 0 anonpl 16 222945 0 206327 138 51 87 99 0 124 1 amapchunkpl 152 11758 0 11586 23 15 8 12 0 158 0 amappl16 192 8747 0 7565 106 45 61 71 0 8 1 amappl15 184 143 0 143 2 2 0 1 0 8 0 amappl14 176 319 0 314 1 0 1 1 0 8 0 amappl13 168 9 0 8 1 0 1 1 0 8 0 amappl12 160 794 0 791 1 0 1 1 0 8 0 amappl11 152 159 0 142 1 0 1 1 0 8 0 amappl10 144 46 0 38 1 0 1 1 0 8 0 amappl9 136 862 0 858 1 0 1 1 0 8 0 amappl8 128 440 0 398 2 0 2 2 0 8 0 amappl7 120 98 0 90 1 0 1 1 0 8 0 amappl6 112 134 0 125 1 0 1 1 0 8 0 amappl5 104 1005 0 991 1 0 1 1 0 8 0 amappl4 96 1217 0 1185 1 0 1 1 0 8 0 amappl3 88 1090 0 1085 1 0 1 1 0 8 0 amappl2 80 11572 0 11488 3 1 2 3 0 8 0 amappl1 72 47089 0 46631 25 15 10 20 0 8 0 amappl 80 5246 0 5194 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 1641 0 1610 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1641 0 1610 1 0 1 1 0 8 0 vmmpekpl 168 17459 0 17423 3 1 2 2 0 8 0 vmmpepl 168 216813 0 214314 204 54 150 150 0 357 38 vmsppl 368 1626 0 1610 2 0 2 2 0 8 0 pdppl 4096 3289 0 3240 7 0 7 7 0 8 0 pvpl 32 591214 0 571507 278 66 212 228 0 265 16 pmappl 232 1640 0 1616 4 2 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 693 0 41 19 0 19 19 0 8 0