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 *210611 61759 0 0 0x4000000 0 syz-executor.1 447925 69834 0 0x2 0x480 1 syz-executor.0 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,ffff800021b91008,83,ffff800021b910a8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021b91118,fffffd806f6d1b70,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d1b70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d1b70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021b911f0,fffffd80601a6a20,fffffd806f6d1af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d1af0,fffffd80601a6a00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807840d390,4,0,fffffd80601a6a00,0,ffff800020acea00) at udp_usrreq+0x560 sys_connect(ffff800020acea00,ffff800021b91378,ffff800021b913c0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021b91440) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b91440) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,3769755010) at Xsyscall+0x128 end of kernel end trace frame: 0x39caaf5c90, 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(ffffffff82208f7b,ffffffff821d48a2,350,ffffffff821acbc4) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800021b91008,83,ffff800021b910a8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021b91118,fffffd806f6d1b70,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d1b70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d1b70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021b911f0,fffffd80601a6a20,fffffd806f6d1af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d1af0,fffffd80601a6a00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807840d390,4,0,fffffd80601a6a00,0,ffff800020acea00) at udp_usrreq+0x560 sys_connect(ffff800020acea00,ffff800021b91378,ffff800021b913c0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021b91440) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b91440) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,3769755010) at Xsyscall+0x128 end of kernel end trace frame: 0x39caaf5c90, count: -12 ddb{0}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x3d99 __ALIGN_SIZE+0x2d99 rbp 0xffff800021b90e20 rbx 0xffff800021b90ed0 rdx 0x3d9a __ALIGN_SIZE+0x2d9a rcx 0xffff800023ba0000 rax 0xffff800023ba0000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0x63c6daa2802f0b15 r12 0x3000000008 r13 0xffff800021b90e30 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b90e10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=210611 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf168,0xffffffff8265b7c8 process=0xffff800020a8aa90 user=0xffff800021b8c000, vmspace=0xfffffd807f00a8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 61759 372331 66880 0 2 0 syz-executor.1 *61759 210611 66880 0 7 0x4000000 syz-executor.1 69834 447925 9872 0 7 0x482 syz-executor.0 66880 241548 9872 0 3 0x82 nanosleep syz-executor.1 38941 5376 0 0 3 0x14200 acct acct 20944 492161 0 0 3 0x14200 bored sosplice 9872 483849 35923 0 3 0x82 thrsleep syz-fuzzer 9872 104140 35923 0 2 0x4000002 syz-fuzzer 9872 287343 35923 0 3 0x4000082 thrsleep syz-fuzzer 9872 299897 35923 0 3 0x4000082 thrsleep syz-fuzzer 9872 163468 35923 0 3 0x4000082 thrsleep syz-fuzzer 9872 183121 35923 0 3 0x4000082 thrsleep syz-fuzzer 9872 174208 35923 0 3 0x4000082 thrsleep syz-fuzzer 9872 470201 35923 0 3 0x4000082 thrsleep syz-fuzzer 9872 321029 35923 0 3 0x4000082 kqread syz-fuzzer 9872 355894 35923 0 3 0x4000082 thrsleep syz-fuzzer 9872 315231 35923 0 3 0x4000082 thrsleep syz-fuzzer 35923 260216 62936 0 3 0x10008a pause ksh 62936 452361 50999 0 3 0x92 select sshd 99903 145917 1 0 3 0x100083 ttyin getty 50999 397044 1 0 3 0x80 select sshd 10490 369976 35639 74 3 0x100092 bpf pflogd 35639 420696 1 0 3 0x80 netio pflogd 24117 100803 83252 73 3 0x100090 kqread syslogd 83252 205449 1 0 3 0x100082 netio syslogd 38320 125239 1 77 3 0x100090 poll dhclient 18139 392328 1 0 3 0x80 poll dhclient 61523 115518 0 0 3 0x14200 pgzero zerothread 325 268951 0 0 3 0x14200 aiodoned aiodoned 65744 456075 0 0 3 0x14200 syncer update 13395 341428 0 0 3 0x14200 cleaner cleaner 81221 377263 0 0 3 0x14200 reaper reaper 71727 442918 0 0 3 0x14200 pgdaemon pagedaemon 99187 183264 0 0 3 0x14200 bored crynlk 32390 446844 0 0 3 0x14200 bored crypto 48706 289242 0 0 3 0x40014200 acpi0 acpi0 70383 392573 0 0 3 0x40014200 idle1 14309 276272 0 0 3 0x14200 bored softnet 51295 447356 0 0 3 0x14200 bored systqmp 32070 401071 0 0 3 0x14200 bored systq 79715 226868 0 0 3 0x40014200 bored softclock 42578 73415 0 0 3 0x40014200 idle0 16051 41807 0 0 3 0x14200 bored smr 1 470870 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 61759 (syz-executor.1) thread 0xffff800020acea00 (210611) 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 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 (0xffffffff82648ec0) #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 9622 6483K 7253K 78643K 17838 0 0 pcb 13 12K 14K 78643K 752 0 0 rtable 130 14K 15K 78643K 2318 0 0 ifaddr 102 22K 24K 78643K 682 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1649 0 0 iov 0 0K 28K 78643K 610 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1224 77K 77K 78643K 3982 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 50 0 0 VM map 26 13K 13K 78643K 40 0 0 sem 12 0K 1K 78643K 875 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 3090 0 0 sigio 0 0K 0K 78643K 75 0 0 proc 61 63K 95K 78643K 1619 0 0 subproc 32 2K 2K 78643K 393 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 828 0 0 in_multi 24 1K 2K 78643K 449 0 0 ether_multi 1 0K 0K 78643K 24 0 0 mrt 0 0K 0K 78643K 7 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 794 0 0 pfkey data 0 0K 0K 78643K 3 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 187 236K 244K 78643K 11756 0 0 UVM aobj 130 5K 5K 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 1K 78643K 778 0 0 NDP 24 0K 1K 78643K 223 0 0 temp 257 3561K 4200K 78643K 117122 0 0 kqueue 0 0K 0K 78643K 24 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 59 0 53 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 342 0 340 1 0 1 1 0 8 0 rtentry 112 407 0 359 2 0 2 2 0 8 0 unpcb 120 1961 0 1946 6 5 1 2 0 8 0 syncache 264 24 0 24 9 9 0 1 0 8 0 tcpqe 32 14 0 14 4 4 0 1 0 8 0 tcpcb 544 1911 0 1905 23 20 3 12 0 8 2 inpcb 280 5404 0 5393 31 28 3 13 0 8 2 rttmr 72 4 0 3 1 0 1 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 63 0 62 4 3 1 1 0 8 0 pkpcb 40 17 0 17 5 4 1 1 0 8 1 ppxss 1128 74 0 74 9 8 1 1 0 8 1 pffrag 232 70 0 70 11 10 1 1 0 482 1 pffrnode 88 70 0 70 11 10 1 1 0 8 1 pffrent 40 2502 0 2502 11 10 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 235 0 163 1 0 1 1 0 8 0 pfstkey 112 235 0 163 3 0 3 3 0 8 0 pfstate 328 235 0 162 7 0 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 9 0 7 8 6 2 4 0 8 0 art_heap4 256 1856 0 1644 27 12 15 18 0 8 0 art_table 32 1865 0 1651 4 2 2 3 0 8 0 art_node 16 404 0 363 1 0 1 1 0 8 0 sysvmsgpl 40 42 0 22 1 0 1 1 0 8 0 semapl 112 873 0 863 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 6004 0 4585 46 0 46 46 0 8 0 ffsino 272 6004 0 4585 96 0 96 96 0 8 0 nchpl 144 11814 0 11333 61 37 24 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 41684 0 41684 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 24 0 0 3 0 3 3 0 8 0 vmpool 552 38 0 14 3 1 2 2 0 8 0 scsiplug 64 5 0 5 2 2 0 1 0 8 0 scxspl 192 35537 0 35537 23 20 3 6 0 8 3 plimitpl 152 249 0 241 1 0 1 1 0 8 0 sigapl 432 3225 0 3210 3 1 2 3 0 8 0 futexpl 56 74670 0 74670 1 0 1 1 0 8 1 knotepl 112 842 0 823 6 5 1 3 0 8 0 kqueuepl 104 1004 0 999 4 3 1 4 0 8 0 pipepl 112 2638 0 2617 8 7 1 2 0 8 0 fdescpl 488 3226 0 3210 3 0 3 3 0 8 0 filepl 152 31227 0 31117 26 20 6 13 0 8 1 lockfpl 104 972 0 971 1 0 1 1 0 8 0 lockfspl 48 350 0 349 1 0 1 1 0 8 0 sessionpl 112 39 0 28 1 0 1 1 0 8 0 pgrppl 48 97 0 86 1 0 1 1 0 8 0 ucredpl 96 3285 0 3276 1 0 1 1 0 8 0 zombiepl 144 3210 0 3209 1 0 1 1 0 8 0 processpl 896 3243 0 3209 4 0 4 4 0 8 0 procpl 632 9816 0 9771 5 0 5 5 0 8 0 srpgc 64 32 0 32 10 10 0 1 0 8 0 sosppl 128 130 0 130 9 8 1 1 0 8 1 sockpl 384 7745 0 7717 51 45 6 22 0 8 3 mcl64k 65536 513 0 0 65 9 56 65 0 8 0 mcl16k 16384 16 0 0 2 0 2 2 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 20 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 175 0 0 19 1 18 19 0 8 0 mtagpl 80 41 0 0 1 0 1 1 0 8 0 mbufpl 256 639 0 0 37 0 37 37 0 8 0 bufpl 256 15405 0 8347 442 0 442 442 0 8 0 anonpl 16 417586 0 397582 154 57 97 106 0 124 13 amapchunkpl 152 24592 0 24433 66 45 21 21 0 158 13 amappl16 192 17183 0 16062 143 78 65 69 0 8 8 amappl15 184 624 0 624 1 1 0 1 0 8 0 amappl14 176 369 0 362 1 0 1 1 0 8 0 amappl13 168 670 0 670 3 3 0 1 0 8 0 amappl12 160 392 0 390 1 0 1 1 0 8 0 amappl11 152 314 0 296 1 0 1 1 0 8 0 amappl10 144 287 0 282 1 0 1 1 0 8 0 amappl9 136 1365 0 1361 1 0 1 1 0 8 0 amappl8 128 969 0 903 3 0 3 3 0 8 0 amappl7 120 368 0 359 1 0 1 1 0 8 0 amappl6 112 285 0 272 1 0 1 1 0 8 0 amappl5 104 727 0 712 1 0 1 1 0 8 0 amappl4 96 3560 0 3524 1 0 1 1 0 8 0 amappl3 88 437 0 429 1 0 1 1 0 8 0 amappl2 80 24144 0 24069 3 1 2 3 0 8 0 amappl1 72 81941 0 81500 26 16 10 20 0 8 0 amappl 80 10483 0 10422 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 3264 0 3210 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3264 0 3210 1 0 1 1 0 8 0 vmmpekpl 168 30784 0 30739 3 0 3 3 0 8 0 vmmpepl 168 421094 0 418745 216 67 149 151 0 357 40 vmsppl 368 3225 0 3210 2 0 2 2 0 8 0 pdppl 4096 6535 0 6472 12 3 9 9 0 8 0 pvpl 32 1092100 0 1068827 306 81 225 244 0 265 33 pmappl 232 3263 0 3224 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 750 0 57 20 0 20 20 0 8 0