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 *352790 15541 0 0 0x4000000 0 syz-executor.1 68060 35238 0 0x2 0x4000480 1 syz-fuzzer 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(ffffffff82209f30,ffffffff821d671c,350,ffffffff821ae376) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000239e3488,83,ffff8000239e3528,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff8000239e3598,fffffd806f6d4c88,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d4c88,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d4c88,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000239e3670,fffffd8078b01c20,fffffd806f6d4c08) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d4c08,fffffd8078b01c00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8065ec1aa8,4,0,fffffd8078b01c00,0,ffff800020abf8c8) at udp_usrreq+0x560 sys_connect(ffff800020abf8c8,ffff8000239e37f8,ffff8000239e3840) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000239e38c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239e38c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,180de954010) at Xsyscall+0x128 end of kernel end trace frame: 0x183a8e0e540, 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(ffffffff82209f30,ffffffff821d671c,350,ffffffff821ae376) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000239e3488,83,ffff8000239e3528,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff8000239e3598,fffffd806f6d4c88,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d4c88,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d4c88,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000239e3670,fffffd8078b01c20,fffffd806f6d4c08) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d4c08,fffffd8078b01c00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8065ec1aa8,4,0,fffffd8078b01c00,0,ffff800020abf8c8) at udp_usrreq+0x560 sys_connect(ffff800020abf8c8,ffff8000239e37f8,ffff8000239e3840) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000239e38c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239e38c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,180de954010) at Xsyscall+0x128 end of kernel end trace frame: 0x183a8e0e540, count: -12 ddb{0}> show registers rdi 0xffffffff81db2357 db_enter+0x17 rsi 0x3a01 __ALIGN_SIZE+0x2a01 rbp 0xffff8000239e32a0 rbx 0xffff8000239e3350 rdx 0x3a02 __ALIGN_SIZE+0x2a02 rcx 0xffff800020b58000 rax 0xffff800020b58000 r8 0xffffffff81879bcf kprintf+0x16f r9 0x1 r10 0x25 r11 0x690ed18b2726e204 r12 0x3000000008 r13 0xffff8000239e32b0 r14 0x100 r15 0x1 rip 0xffffffff81db2358 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000239e3290 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=352790 stat=onproc flags process=0 proc=4000000 pri=76, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe508,0xffffffff82659c00 process=0xffff800020add880 user=0xffff8000239de000, vmspace=0xfffffd807f00a730 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 15541 282389 99783 0 2 0 syz-executor.1 *15541 352790 99783 0 7 0x4000000 syz-executor.1 99783 309285 35238 0 2 0x482 syz-executor.1 30478 124770 0 0 3 0x14200 acct acct 48810 56588 1 0 3 0x100083 ttyin getty 52070 435561 0 0 3 0x14200 bored sosplice 35238 96279 70877 0 3 0x82 thrsleep syz-fuzzer 35238 68060 70877 0 7 0x4000482 syz-fuzzer 35238 340839 70877 0 3 0x4000082 thrsleep syz-fuzzer 35238 188047 70877 0 3 0x4000082 thrsleep syz-fuzzer 35238 255390 70877 0 3 0x4000082 thrsleep syz-fuzzer 35238 2197 70877 0 3 0x4000082 kqread syz-fuzzer 35238 349359 70877 0 2 0x4000482 syz-fuzzer 35238 377196 70877 0 3 0x4000082 thrsleep syz-fuzzer 35238 180898 70877 0 3 0x4000082 thrsleep syz-fuzzer 35238 467951 70877 0 3 0x4000082 thrsleep syz-fuzzer 70877 184497 28486 0 3 0x10008a pause ksh 28486 17754 44749 0 3 0x92 select sshd 44749 112212 1 0 3 0x80 select sshd 39425 259455 47530 74 3 0x100092 bpf pflogd 47530 520535 1 0 3 0x80 netio pflogd 71535 427180 70662 73 3 0x100090 kqread syslogd 70662 101052 1 0 3 0x100082 netio syslogd 34793 81237 1 77 3 0x100090 poll dhclient 71854 208872 1 0 3 0x80 poll dhclient 3835 25773 0 0 3 0x14200 pgzero zerothread 80944 301067 0 0 3 0x14200 aiodoned aiodoned 71600 375489 0 0 3 0x14200 syncer update 6370 113517 0 0 3 0x14200 cleaner cleaner 58560 521053 0 0 3 0x14200 reaper reaper 94449 210023 0 0 3 0x14200 pgdaemon pagedaemon 61733 105143 0 0 3 0x14200 bored crynlk 11095 298840 0 0 3 0x14200 bored crypto 82181 146648 0 0 3 0x40014200 acpi0 acpi0 87081 86957 0 0 3 0x40014200 idle1 72838 357644 0 0 3 0x14200 bored softnet 33958 164459 0 0 3 0x14200 bored systqmp 77390 64159 0 0 3 0x14200 bored systq 16517 172528 0 0 3 0x40014200 bored softclock 65547 391412 0 0 3 0x40014200 idle0 68562 105626 0 0 2 0x40014200 smr 1 438929 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 15541 (syz-executor.1) thread 0xffff800020abf8c8 (352790) exclusive rwlock netlock r = 0 (0xffffffff824fd158) #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 (0xffffffff82645558) #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 9647 6545K 8916K 78643K 56691 0 0 pcb 13 14K 16K 78643K 3585 0 0 rtable 173 17K 18K 78643K 9709 0 0 ifaddr 207 55K 62K 78643K 2590 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2342 0 0 iov 0 0K 168K 78643K 20169 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1223 77K 78K 78643K 16858 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 180 0 0 VM map 109 54K 55K 78643K 157 0 0 sem 12 0K 1K 78643K 5131 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 4 9K 25K 78643K 16649 0 0 sigio 0 0K 0K 78643K 320 0 0 proc 62 63K 95K 78643K 6014 0 0 subproc 16 1K 2K 78643K 1702 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 1868 0 0 in_multi 47 3K 4K 78643K 1994 0 0 ether_multi 1 0K 0K 78643K 180 0 0 mrt 2 0K 0K 78643K 122 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 3125 0 0 pfkey data 0 0K 4K 78643K 6 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 298 928K 937K 78643K 67451 0 0 UVM aobj 130 8K 8K 78643K 136 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 3401 0 0 NDP 26 0K 1K 78643K 811 0 0 temp 204 3564K 4207K 78643K 526637 0 0 kqueue 0 0K 0K 78643K 95 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 246 0 242 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 2196 0 2194 1 0 1 1 0 8 0 rtentry 112 1651 0 1582 6 3 3 3 0 8 0 unpcb 120 47599 0 47570 57 55 2 3 0 8 0 syncache 264 84 0 84 42 42 0 1 0 8 0 tcpqe 32 21 0 21 20 20 0 1 0 8 0 tcpcb 544 7291 0 7287 83 82 1 13 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 4 0 4 1 1 0 1 0 8 0 inpcb 280 46926 0 46917 253 251 2 13 0 8 1 rttmr 72 39 0 38 19 18 1 1 0 8 0 ip6q 72 5 0 5 4 4 0 1 0 8 0 ip6af 40 10 0 10 4 4 0 1 0 8 0 nd6 48 259 0 258 14 13 1 1 0 8 0 pkpcb 40 112 0 112 40 40 0 1 0 8 0 swfcl 56 6 0 0 1 0 1 1 0 8 0 ppxss 1128 341 0 341 104 103 1 1 0 8 1 pffrag 232 388 0 388 88 88 0 1 0 482 0 pffrnode 88 388 0 388 88 88 0 1 0 8 0 pffrent 40 13289 0 13289 88 88 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 1427 0 1396 1 0 1 1 0 8 0 pfstkey 112 1429 0 1398 4 2 2 2 0 8 0 pfstate 328 1429 0 1397 20 16 4 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 24 0 18 14 8 6 7 0 8 0 art_heap4 256 7289 0 6998 73 52 21 22 0 8 0 art_table 32 7313 0 7016 4 1 3 3 0 8 0 art_node 16 1645 0 1595 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 5 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 5129 0 5119 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 26530 0 25065 48 0 48 48 0 8 0 ffsino 272 26530 0 25065 101 2 99 99 0 8 0 nchpl 144 53080 0 52618 62 42 20 61 0 8 0 uvmvnodes 72 6948 0 0 127 0 127 127 0 8 0 vnodes 208 6948 0 0 366 0 366 366 0 8 0 namei 1024 194627 0 194627 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 109 0 2 14 0 14 14 0 8 0 vmpool 552 155 0 48 10 2 8 8 0 8 0 scsiplug 64 8 0 8 7 7 0 1 0 8 0 scxspl 192 167502 0 167502 127 126 1 7 0 8 1 plimitpl 152 1165 0 1158 1 0 1 1 0 8 0 sigapl 432 16558 0 16544 5 3 2 3 0 8 0 futexpl 56 444686 0 444686 4 3 1 1 0 8 1 knotepl 112 5672 0 5659 9 8 1 3 0 8 0 kqueuepl 104 5023 0 5021 7 6 1 4 0 8 0 pipepl 112 12764 0 12751 24 23 1 2 0 8 0 fdescpl 488 16559 0 16544 3 0 3 3 0 8 0 filepl 152 198572 0 198492 195 189 6 14 0 8 2 lockfpl 104 7036 0 7034 1 0 1 1 0 8 0 lockfspl 48 2718 0 2716 1 0 1 1 0 8 0 sessionpl 112 121 0 111 1 0 1 1 0 8 0 pgrppl 48 527 0 517 1 0 1 1 0 8 0 ucredpl 96 17100 0 17089 1 0 1 1 0 8 0 zombiepl 144 16556 0 16556 2 1 1 1 0 8 1 processpl 896 16588 0 16556 6 2 4 5 0 8 0 procpl 632 61520 0 61478 11 6 5 5 0 8 0 srpgc 64 158 0 158 55 55 0 1 0 8 0 sosppl 128 337 0 337 84 83 1 1 0 8 1 sockpl 384 97616 0 97576 439 430 9 22 0 8 3 mcl64k 65536 1057 0 0 124 121 3 64 0 8 0 mcl16k 16384 50 0 0 5 3 2 3 0 8 0 mcl12k 12288 57 0 0 2 0 2 2 0 8 0 mcl9k 9216 65 0 0 4 2 2 2 0 8 0 mcl8k 8192 73 0 0 8 5 3 3 0 8 0 mcl4k 4096 73 0 0 4 1 3 3 0 8 0 mcl2k2 2112 13 0 0 1 0 1 1 0 8 0 mcl2k 2048 348 0 0 19 12 7 19 0 8 0 mtagpl 80 189 0 0 1 0 1 1 0 8 0 mbufpl 256 2707 0 0 36 4 32 36 0 8 0 bufpl 256 61268 0 54210 442 0 442 442 0 8 0 anonpl 16 1923206 0 1887620 676 512 164 164 0 124 0 amapchunkpl 152 139434 0 138262 319 271 48 50 0 158 0 amappl16 192 86118 0 84724 654 583 71 82 0 8 0 amappl15 184 2511 0 2511 13 13 0 1 0 8 0 amappl14 176 4971 0 4967 1 0 1 1 0 8 0 amappl13 168 1419 0 1419 27 27 0 1 0 8 0 amappl12 160 2170 0 2166 2 1 1 1 0 8 0 amappl11 152 1403 0 1388 1 0 1 1 0 8 0 amappl10 144 1077 0 1071 1 0 1 1 0 8 0 amappl9 136 4214 0 4211 1 0 1 1 0 8 0 amappl8 128 3978 0 3906 3 0 3 3 0 8 0 amappl7 120 1462 0 1453 1 0 1 1 0 8 0 amappl6 112 1183 0 1166 1 0 1 1 0 8 0 amappl5 104 3208 0 3193 1 0 1 1 0 8 0 amappl4 96 15614 0 15576 8 7 1 2 0 8 0 amappl3 88 6596 0 6581 1 0 1 1 0 8 0 amappl2 80 128365 0 128288 3 0 3 3 0 8 0 amappl1 72 399100 0 398675 26 15 11 20 0 8 0 amappl 80 63588 0 63483 3 0 3 3 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 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 16714 0 16544 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 16714 0 16544 2 0 2 2 0 8 0 vmmpekpl 168 150370 0 150315 3 0 3 3 0 8 0 vmmpepl 168 2144748 0 2142000 1780 1644 136 176 0 357 6 vmsppl 368 16558 0 16544 2 0 2 2 0 8 0 pdppl 4096 33435 0 33291 32 13 19 19 0 8 0 pvpl 32 5072387 0 5053325 1386 1188 198 244 0 265 1 pmappl 232 16713 0 16592 14 6 8 8 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 954 0 309 21 1 20 21 0 8 0