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 *235975 40098 0 0 0x4000000 0 syz-executor.1 512951 3115 0 0x2 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(ffffffff82205bea,ffffffff821ce864,350,ffffffff821a64b5) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000225c56f8,83,ffff8000225c5798,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff8000225c5808,fffffd806f6d24e0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d24e0,fffffd8060f206f4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d24e0,fffffd8060f206f4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd8060f20600,0,fffffd806f6d24d0,20,0,fffffd806f6d2460) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd80729d6d00,fffffd80767a6050,ffff8000225c5a18,ffff8000221c0000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80767a6050,9,fffffd80729d6d00,0,0,ffff800020acec78) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80767a6050,0,ffff8000225c5b80,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020acec78,d,ffff8000225c5c60,0,ffff8000225c5d40) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020acec78,ffff8000225c5cf8,ffff8000225c5d40) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000225c5dc0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000225c5dc0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,ffffffffffffffd7,0,6,fb5e929e010) at Xsyscall+0x128 end of kernel end trace frame: 0xfb8d7a39ca0, 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{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(ffffffff82205bea,ffffffff821ce864,350,ffffffff821a64b5) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000225c56f8,83,ffff8000225c5798,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff8000225c5808,fffffd806f6d24e0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d24e0,fffffd8060f206f4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d24e0,fffffd8060f206f4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd8060f20600,0,fffffd806f6d24d0,20,0,fffffd806f6d2460) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd80729d6d00,fffffd80767a6050,ffff8000225c5a18,ffff8000221c0000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80767a6050,9,fffffd80729d6d00,0,0,ffff800020acec78) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80767a6050,0,ffff8000225c5b80,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020acec78,d,ffff8000225c5c60,0,ffff8000225c5d40) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020acec78,ffff8000225c5cf8,ffff8000225c5d40) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000225c5dc0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000225c5dc0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,ffffffffffffffd7,0,6,fb5e929e010) at Xsyscall+0x128 end of kernel end trace frame: 0xfb8d7a39ca0, count: -14 ddb{0}> show registers rdi 0xffffffff81800b47 db_enter+0x17 rsi 0x3edc __ALIGN_SIZE+0x2edc rbp 0xffff8000225c5510 rbx 0xffff8000225c55c0 rdx 0x3edd __ALIGN_SIZE+0x2edd rcx 0xffff8000221c0000 rax 0xffff8000221c0000 r8 0xffffffff8149825f kprintf+0x16f r9 0x1 r10 0x25 r11 0x8293822f8441375a r12 0x3000000008 r13 0xffff8000225c5520 r14 0x100 r15 0x1 rip 0xffffffff81800b48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000225c5500 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=235975 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf168,0xffffffff82662210 process=0xffff800020adca80 user=0xffff8000225c0000, vmspace=0xfffffd807f00a730 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 40098 73275 3115 0 2 0 syz-executor.1 *40098 235975 3115 0 7 0x4000000 syz-executor.1 3115 512951 6543 0 7 0x482 syz-executor.1 69259 139162 6543 0 2 0x2 syz-executor.0 696 200505 1 0 3 0x100083 ttyin getty 35553 428064 0 0 3 0x14200 acct acct 52532 328152 0 0 3 0x14200 bored sosplice 6543 2346 69607 0 3 0x82 thrsleep syz-fuzzer 6543 373984 69607 0 2 0x4000482 syz-fuzzer 6543 196118 69607 0 3 0x4000082 thrsleep syz-fuzzer 6543 115292 69607 0 3 0x4000082 thrsleep syz-fuzzer 6543 90949 69607 0 2 0x4000002 syz-fuzzer 6543 194328 69607 0 3 0x4000082 thrsleep syz-fuzzer 6543 263520 69607 0 3 0x4000082 thrsleep syz-fuzzer 6543 210443 69607 0 3 0x4000082 thrsleep syz-fuzzer 6543 13529 69607 0 3 0x4000082 thrsleep syz-fuzzer 6543 339957 69607 0 3 0x4000082 kqread syz-fuzzer 69607 16399 84285 0 3 0x10008a pause ksh 84285 287460 12420 0 3 0x92 select sshd 12420 94530 1 0 3 0x80 select sshd 65649 482130 66163 74 3 0x100092 bpf pflogd 66163 45920 1 0 3 0x80 netio pflogd 49599 69957 32397 73 3 0x100090 kqread syslogd 32397 464996 1 0 3 0x100082 netio syslogd 77711 363943 1 77 3 0x100090 poll dhclient 15827 380553 1 0 3 0x80 poll dhclient 97844 354333 0 0 3 0x14200 pgzero zerothread 24872 88060 0 0 3 0x14200 aiodoned aiodoned 91868 52206 0 0 3 0x14200 syncer update 66325 249066 0 0 3 0x14200 cleaner cleaner 45153 31019 0 0 3 0x14200 reaper reaper 93076 469073 0 0 3 0x14200 pgdaemon pagedaemon 45555 210552 0 0 3 0x14200 bored crynlk 91955 1549 0 0 3 0x14200 bored crypto 63320 459074 0 0 3 0x40014200 acpi0 acpi0 63804 302840 0 0 3 0x40014200 idle1 32564 227855 0 0 3 0x14200 bored softnet 46117 268767 0 0 3 0x14200 bored systqmp 45750 107422 0 0 3 0x14200 bored systq 69852 395856 0 0 3 0x40014200 bored softclock 52012 301079 0 0 3 0x40014200 idle0 5371 468062 0 0 3 0x14200 bored smr 1 347564 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 40098 (syz-executor.1) thread 0xffff800020acec78 (235975) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82624c28) #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_sendto+0x80 sys/kern/uipc_syscalls.c:527 #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 (0xffffffff8250cdb8) #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_sendto+0x80 sys/kern/uipc_syscalls.c:527 #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9622 6468K 14918K 78643K 26757 0 0 pcb 13 10K 12K 78643K 1280 0 0 rtable 169 16K 16K 78643K 3216 0 0 ifaddr 108 24K 25K 78643K 1067 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2406 0 0 iov 0 0K 24K 78643K 1045 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1218 76K 77K 78643K 8168 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 70 0 0 VM map 47 23K 24K 78643K 70 0 0 sem 12 1K 1K 78643K 650 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 5637 0 0 sigio 0 0K 0K 78643K 45 0 0 proc 61 63K 95K 78643K 2222 0 0 subproc 32 2K 2K 78643K 552 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 457 0 0 in_multi 48 3K 3K 78643K 652 0 0 ether_multi 1 0K 0K 78643K 78 0 0 mrt 4 0K 0K 78643K 60 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 126 556K 556K 78643K 126 0 0 exec 0 0K 1K 78643K 1094 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 220 400K 401K 78643K 21255 0 0 UVM aobj 130 5K 5K 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 1142 0 0 NDP 23 0K 1K 78643K 326 0 0 temp 228 3565K 4199K 78643K 121434 0 0 kqueue 0 0K 0K 78643K 40 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 75 0 66 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 370 0 368 1 0 1 1 0 8 0 rtentry 112 545 0 478 2 0 2 2 0 8 0 unpcb 120 2830 0 2807 9 8 1 2 0 8 0 syncache 264 43 0 43 15 15 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 105 0 105 8 8 0 1 0 8 0 tcpcb 544 8060 0 8055 42 41 1 14 0 8 0 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 16021 0 16005 55 52 3 9 0 8 1 rttmr 72 22 0 22 11 11 0 1 0 8 0 ip6q 72 3 0 3 3 3 0 1 0 8 0 ip6af 40 5 0 5 3 3 0 1 0 8 0 nd6 48 84 0 80 3 2 1 1 0 8 0 pkpcb 40 14 0 14 5 5 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 166 0 166 20 19 1 1 0 8 1 pffrag 232 114 0 114 21 21 0 1 0 482 0 pffrnode 88 114 0 114 21 21 0 1 0 8 0 pffrent 40 3397 0 3397 22 22 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 438 0 415 1 0 1 1 0 8 0 pfstkey 112 438 0 415 3 1 2 3 0 8 0 pfstate 328 438 0 415 8 4 4 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 15 0 11 9 5 4 6 0 8 0 art_heap4 256 2277 0 2016 41 24 17 20 0 8 0 art_table 32 2292 0 2027 7 4 3 3 0 8 0 art_node 16 541 0 484 1 0 1 1 0 8 0 sysvmsgpl 40 42 0 32 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 648 0 638 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 11888 0 10470 46 0 46 46 0 8 0 ffsino 272 11888 0 10470 95 0 95 95 0 8 0 nchpl 144 20659 0 20181 62 42 20 61 0 8 0 uvmvnodes 72 6285 0 0 115 0 115 115 0 8 0 vnodes 208 6285 0 0 331 0 331 331 0 8 0 namei 1024 98356 0 98356 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 45 0 0 6 0 6 6 0 8 0 vmpool 552 68 0 23 5 1 4 4 0 8 0 scsiplug 64 7 0 7 4 4 0 1 0 8 0 scxspl 192 57817 0 57817 39 38 1 7 0 8 1 plimitpl 152 380 0 372 1 0 1 1 0 8 0 sigapl 432 5746 0 5731 3 1 2 3 0 8 0 futexpl 56 163964 0 163964 1 0 1 1 0 8 1 knotepl 112 1102 0 1083 2 1 1 2 0 8 0 kqueuepl 104 1584 0 1581 7 6 1 4 0 8 0 pipepl 112 4206 0 4185 4 3 1 2 0 8 0 fdescpl 488 5747 0 5731 3 0 3 3 0 8 0 filepl 152 77617 0 77500 54 48 6 14 0 8 1 lockfpl 104 1535 0 1534 1 0 1 1 0 8 0 lockfspl 48 516 0 515 1 0 1 1 0 8 0 sessionpl 112 49 0 38 1 0 1 1 0 8 0 pgrppl 48 96 0 85 1 0 1 1 0 8 0 ucredpl 96 28857 0 28847 1 0 1 1 0 8 0 zombiepl 144 5731 0 5731 1 0 1 1 0 8 1 processpl 896 5764 0 5731 4 0 4 4 0 8 0 procpl 632 18808 0 18765 5 0 5 5 0 8 0 srpgc 64 51 0 51 20 20 0 1 0 8 0 sosppl 128 1754 0 1751 11 10 1 2 0 8 0 sockpl 384 19379 0 19338 75 69 6 15 0 8 1 mcl64k 65536 29 0 0 3 0 3 3 0 8 0 mcl16k 16384 24 0 0 3 1 2 3 0 8 0 mcl12k 12288 24 0 0 2 0 2 2 0 8 0 mcl9k 9216 34 0 0 3 1 2 2 0 8 0 mcl8k 8192 22 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 213 0 0 22 7 15 22 0 8 0 mtagpl 80 215 0 0 2 0 2 2 0 8 0 mbufpl 256 777 0 0 34 0 34 34 0 8 0 bufpl 256 26468 0 19410 442 0 442 442 0 8 0 anonpl 16 658738 0 625905 246 105 141 145 0 124 6 amapchunkpl 152 43821 0 42897 116 75 41 44 0 158 4 amappl16 192 28725 0 27539 157 94 63 72 0 8 0 amappl15 184 1029 0 1025 4 3 1 1 0 8 0 amappl14 176 1018 0 1012 1 0 1 1 0 8 0 amappl13 168 981 0 981 6 6 0 1 0 8 0 amappl12 160 311 0 309 1 0 1 1 0 8 0 amappl11 152 427 0 412 1 0 1 1 0 8 0 amappl10 144 236 0 232 1 0 1 1 0 8 0 amappl9 136 2206 0 2202 1 0 1 1 0 8 0 amappl8 128 1802 0 1735 3 0 3 3 0 8 0 amappl7 120 394 0 385 1 0 1 1 0 8 0 amappl6 112 376 0 364 1 0 1 1 0 8 0 amappl5 104 697 0 681 1 0 1 1 0 8 0 amappl4 96 6373 0 6341 1 0 1 1 0 8 0 amappl3 88 1257 0 1249 1 0 1 1 0 8 0 amappl2 80 44748 0 44672 3 1 2 3 0 8 0 amappl1 72 140090 0 139656 25 15 10 20 0 8 0 amappl 80 19649 0 19575 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 5815 0 5731 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5815 0 5731 1 0 1 1 0 8 0 vmmpekpl 168 50127 0 50084 3 0 3 3 0 8 0 vmmpepl 168 733003 0 730529 454 314 140 168 0 357 22 vmsppl 368 5746 0 5731 2 0 2 2 0 8 0 pdppl 4096 11637 0 11553 17 5 12 12 0 8 1 pvpl 32 1730966 0 1707884 466 254 212 232 0 265 18 pmappl 232 5814 0 5754 6 2 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 724 0 86 19 0 19 19 0 8 0