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 123360 26562 0 0 0 0 syz-executor.1 * 27955 26562 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(ffffffff82207348,ffffffff821d52f7,350,ffffffff821ad3cb) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800021962f28,83,ffff800021962fc8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021963038,fffffd806f6c6eb8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6c6eb8,fffffd8007dd4074,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6c6eb8,fffffd8007dd4074,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd806c9e9b00,0,fffffd806f6c6ea8,20,0,fffffd806f6c6e38) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd806c9e9b00,fffffd8075e3e1f0,ffff800021963248,ffff800020b52000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8075e3e1f0,9,fffffd806c9e9b00,0,0,ffff800020abeee8) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8075e3e1f0,0,ffff800021963468,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020abeee8,4,ffff800021963468,0,ffff800021963550) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020abeee8,ffff800021963508,ffff800021963550) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff8000219635d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000219635d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,7e975188010) at Xsyscall+0x128 end of kernel end trace frame: 0x7ebff6417a0, 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(ffffffff82207348,ffffffff821d52f7,350,ffffffff821ad3cb) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800021962f28,83,ffff800021962fc8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021963038,fffffd806f6c6eb8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6c6eb8,fffffd8007dd4074,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6c6eb8,fffffd8007dd4074,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd806c9e9b00,0,fffffd806f6c6ea8,20,0,fffffd806f6c6e38) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd806c9e9b00,fffffd8075e3e1f0,ffff800021963248,ffff800020b52000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8075e3e1f0,9,fffffd806c9e9b00,0,0,ffff800020abeee8) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8075e3e1f0,0,ffff800021963468,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020abeee8,4,ffff800021963468,0,ffff800021963550) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020abeee8,ffff800021963508,ffff800021963550) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff8000219635d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000219635d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,7e975188010) at Xsyscall+0x128 end of kernel end trace frame: 0x7ebff6417a0, count: -14 ddb{1}> show registers rdi 0xffffffff81d97467 db_enter+0x17 rsi 0x390b __ALIGN_SIZE+0x290b rbp 0xffff800021962d40 rbx 0xffff800021962df0 rdx 0x390c __ALIGN_SIZE+0x290c rcx 0xffff800020b52000 rax 0xffff800020b52000 r8 0xffffffff815fe7df kprintf+0x16f r9 0x1 r10 0x25 r11 0x57774abb72343e19 r12 0x3000000008 r13 0xffff800021962d50 r14 0x100 r15 0x1 rip 0xffffffff81d97468 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021962d30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=27955 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe290,0xffff800020abec80 process=0xffff800020add500 user=0xffff80002195e000, vmspace=0xfffffd807f00b2e0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 17510 185683 88019 0 2 0 syz-executor.0 26562 123360 45850 0 7 0 syz-executor.1 *26562 27955 45850 0 7 0x4000000 syz-executor.1 88019 212784 91689 0 3 0x82 nanosleep syz-executor.0 45850 341823 91689 0 3 0x82 nanosleep syz-executor.1 3281 80541 1 0 3 0x100083 ttyin getty 84110 73477 0 0 3 0x14200 bored sosplice 44439 297306 0 0 3 0x14200 acct acct 91689 510161 71923 0 3 0x82 thrsleep syz-fuzzer 91689 225216 71923 0 3 0x4000082 nanosleep syz-fuzzer 91689 209793 71923 0 3 0x4000082 thrsleep syz-fuzzer 91689 257076 71923 0 3 0x4000082 thrsleep syz-fuzzer 91689 167070 71923 0 3 0x4000082 thrsleep syz-fuzzer 91689 407915 71923 0 3 0x4000082 thrsleep syz-fuzzer 91689 106227 71923 0 3 0x4000082 thrsleep syz-fuzzer 91689 74084 71923 0 3 0x4000082 nanosleep syz-fuzzer 91689 360569 71923 0 3 0x4000082 kqread syz-fuzzer 91689 53939 71923 0 3 0x4000082 thrsleep syz-fuzzer 71923 159764 82807 0 3 0x10008a pause ksh 82807 442722 80479 0 3 0x92 select sshd 80479 403452 1 0 3 0x80 select sshd 43502 378053 80725 74 3 0x100092 bpf pflogd 80725 180358 1 0 3 0x80 netio pflogd 9835 237282 59751 73 3 0x100090 kqread syslogd 59751 84885 1 0 3 0x100082 netio syslogd 81850 380356 0 0 2 0x14200 zerothread 86823 237432 0 0 3 0x14200 aiodoned aiodoned 47397 457436 0 0 3 0x14200 syncer update 82332 378222 0 0 3 0x14200 cleaner cleaner 86922 213514 0 0 3 0x14200 reaper reaper 18264 22783 0 0 3 0x14200 pgdaemon pagedaemon 67990 234792 0 0 3 0x14200 bored crynlk 25272 67394 0 0 3 0x14200 bored crypto 48295 182340 0 0 3 0x40014200 acpi0 acpi0 77542 125491 0 0 3 0x40014200 idle1 57244 110867 0 0 3 0x14200 bored softnet 96826 359800 0 0 3 0x14200 bored systqmp 27457 161770 0 0 3 0x14200 bored systq 29006 393993 0 0 3 0x40014200 bored softclock 44063 280336 0 0 3 0x40014200 idle0 4907 469747 0 0 3 0x14200 bored smr 1 64104 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 26562 (syz-executor.1) thread 0xffff800020abeee8 (27955) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82670948) #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 (0xffffffff824ef928) #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 9650 6411K 7842K 78643K 29587 0 0 pcb 13 10K 12K 78643K 1719 0 0 rtable 153 15K 15K 78643K 3706 0 0 ifaddr 119 29K 30K 78643K 1534 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1942 0 0 iov 0 0K 24K 78643K 1864 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1223 77K 77K 78643K 10222 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 144 0 0 VM map 85 42K 42K 78643K 136 0 0 sem 12 1K 1K 78643K 950 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 8284 0 0 sigio 0 0K 0K 78643K 99 0 0 proc 57 51K 95K 78643K 3355 0 0 subproc 32 2K 2K 78643K 892 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 747 0 0 in_multi 46 3K 3K 78643K 957 0 0 ether_multi 1 0K 0K 78643K 77 0 0 mrt 0 0K 0K 78643K 55 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 162 715K 715K 78643K 162 0 0 exec 0 0K 1K 78643K 1622 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 242 651K 652K 78643K 31772 0 0 UVM aobj 130 8K 8K 78643K 137 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 1929 0 0 NDP 26 0K 1K 78643K 487 0 0 temp 270 3566K 4206K 78643K 210949 0 0 kqueue 0 0K 0K 78643K 82 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 162 0 156 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 766 0 766 18 17 1 1 0 8 1 rtentry 112 890 0 830 2 0 2 2 0 8 0 unpcb 120 10914 0 10892 4 2 2 2 0 8 1 syncache 264 27 0 27 15 15 0 1 0 8 0 sackhl 24 4 0 4 2 2 0 1 0 8 0 tcpqe 32 4 0 4 4 4 0 1 0 8 0 tcpcb 544 4575 0 4571 85 79 6 13 0 8 5 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 2 0 2 1 1 0 1 0 8 0 inpcb 280 12058 0 12053 86 80 6 9 0 8 5 rttmr 72 25 0 24 8 7 1 1 0 8 0 ip6q 72 8 0 8 5 5 0 1 0 8 0 ip6af 40 17 0 17 5 5 0 1 0 8 0 nd6 48 129 0 125 5 4 1 1 0 8 0 pkpcb 40 55 0 55 17 17 0 1 0 8 0 ppxss 1128 184 0 184 43 43 0 1 0 8 0 pffrag 232 240 0 240 37 36 1 1 0 482 1 pffrnode 88 234 0 234 37 36 1 1 0 8 1 pffrent 40 7692 0 7692 36 35 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 680 0 633 1 0 1 1 0 8 0 pfstkey 112 680 0 633 2 0 2 2 0 8 0 pfstate 328 680 0 633 8 3 5 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 14 0 10 11 7 4 6 0 8 0 art_heap4 256 3748 0 3444 55 33 22 22 0 8 0 art_table 32 3762 0 3454 4 1 3 3 0 8 0 art_node 16 888 0 838 1 0 1 1 0 8 0 sysvmsgpl 40 92 0 66 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 948 0 938 1 0 1 1 0 8 0 shmpl 112 135 0 7 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 15655 0 14231 47 0 47 47 0 8 0 ffsino 272 15655 0 14231 96 0 96 96 0 8 0 nchpl 144 27885 0 27397 60 41 19 60 0 8 0 uvmvnodes 72 6451 0 0 118 0 118 118 0 8 0 vnodes 208 6451 0 0 340 0 340 340 0 8 0 namei 1024 118858 0 118858 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 85 0 2 11 0 11 11 0 8 0 vmpool 552 134 0 51 7 1 6 6 0 8 0 scsiplug 64 8 0 8 6 6 0 1 0 8 0 scxspl 192 91408 0 91408 74 73 1 7 0 8 1 plimitpl 152 635 0 628 1 0 1 1 0 8 0 sigapl 432 8335 0 8321 3 1 2 3 0 8 0 futexpl 56 204817 0 204817 1 0 1 1 0 8 1 knotepl 112 2017 0 1998 7 6 1 3 0 8 0 kqueuepl 104 3317 0 3315 19 18 1 4 0 8 0 pipepl 112 8940 0 8921 36 34 2 2 0 8 1 fdescpl 488 8336 0 8321 4 1 3 3 0 8 0 filepl 152 95502 0 95411 92 83 9 14 0 8 5 lockfpl 104 2749 0 2749 3 2 1 1 0 8 1 lockfspl 48 997 0 997 3 2 1 1 0 8 1 sessionpl 112 71 0 62 1 0 1 1 0 8 0 pgrppl 48 191 0 182 1 0 1 1 0 8 0 ucredpl 96 28909 0 28899 1 0 1 1 0 8 0 zombiepl 144 8321 0 8321 3 2 1 1 0 8 1 processpl 896 8353 0 8321 4 0 4 4 0 8 0 procpl 632 28137 0 28095 5 0 5 5 0 8 0 srpgc 64 79 0 79 28 28 0 1 0 8 0 sosppl 128 131 0 131 34 33 1 1 0 8 1 sockpl 384 23938 0 23911 96 87 9 14 0 8 5 mcl64k 65536 760 0 0 84 66 18 66 0 8 1 mcl16k 16384 46 0 0 6 4 2 3 0 8 0 mcl12k 12288 49 0 0 2 0 2 2 0 8 0 mcl9k 9216 34 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 4 1 3 3 0 8 0 mcl4k 4096 35 0 0 3 0 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 187 0 0 18 4 14 18 0 8 0 mtagpl 80 107 0 0 1 0 1 1 0 8 0 mbufpl 256 1498 0 0 60 0 60 60 0 8 0 bufpl 256 35262 0 28204 442 0 442 442 0 8 0 anonpl 16 1066929 0 1050547 285 194 91 100 0 124 0 amapchunkpl 152 64945 0 64784 141 130 11 20 0 158 0 amappl16 192 46582 0 45404 358 297 61 72 0 8 0 amappl15 184 1597 0 1597 3 3 0 1 0 8 0 amappl14 176 1470 0 1463 1 0 1 1 0 8 0 amappl13 168 1967 0 1967 7 7 0 1 0 8 0 amappl12 160 491 0 488 1 0 1 1 0 8 0 amappl11 152 792 0 784 1 0 1 1 0 8 0 amappl10 144 1898 0 1891 1 0 1 1 0 8 0 amappl9 136 1971 0 1966 1 0 1 1 0 8 0 amappl8 128 1614 0 1546 5 2 3 3 0 8 0 amappl7 120 2108 0 2097 1 0 1 1 0 8 0 amappl6 112 679 0 666 1 0 1 1 0 8 0 amappl5 104 1027 0 1015 1 0 1 1 0 8 0 amappl4 96 9158 0 9120 9 8 1 2 0 8 0 amappl3 88 1165 0 1159 1 0 1 1 0 8 0 amappl2 80 65049 0 64983 4 2 2 3 0 8 0 amappl1 72 202941 0 202533 25 15 10 20 0 8 0 amappl 80 29433 0 29348 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 136 0 7 3 0 3 3 0 8 0 uaddrrnd 24 8470 0 8321 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8470 0 8321 1 0 1 1 0 8 0 vmmpekpl 168 73113 0 73057 3 0 3 3 0 8 0 vmmpepl 168 1090103 0 1087581 741 583 158 164 0 357 36 vmsppl 368 8335 0 8321 2 0 2 2 0 8 0 pdppl 4096 16947 0 16827 21 5 16 16 0 8 1 pvpl 32 2778164 0 2759317 659 462 197 227 0 265 1 pmappl 232 8469 0 8372 8 2 6 6 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 898 0 205 22 1 21 21 0 8 0