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 359945 49202 0 0 0 0 syz-executor.1 * 49471 49202 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(ffffffff8220951b,ffffffff821d1c53,350,ffffffff821a9916) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000229d8ca8,83,ffff8000229d8d48,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff8000229d8db8,fffffd806f6d3710,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d3710,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d3710,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000229d8e90,fffffd8065d4e720,fffffd806f6d3690) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d3690,fffffd8065d4e700) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806f6d4600,4,0,fffffd8065d4e700,0,ffff800020ace510) at udp_usrreq+0x560 sys_connect(ffff800020ace510,ffff8000229d9018,ffff8000229d9060) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000229d90e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000229d90e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,6f155874010) at Xsyscall+0x128 end of kernel end trace frame: 0x6f44c630d00, 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{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(ffffffff8220951b,ffffffff821d1c53,350,ffffffff821a9916) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000229d8ca8,83,ffff8000229d8d48,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff8000229d8db8,fffffd806f6d3710,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d3710,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d3710,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000229d8e90,fffffd8065d4e720,fffffd806f6d3690) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d3690,fffffd8065d4e700) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806f6d4600,4,0,fffffd8065d4e700,0,ffff800020ace510) at udp_usrreq+0x560 sys_connect(ffff800020ace510,ffff8000229d9018,ffff8000229d9060) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000229d90e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000229d90e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,6f155874010) at Xsyscall+0x128 end of kernel end trace frame: 0x6f44c630d00, count: -12 ddb{1}> show registers rdi 0xffffffff8120bfe7 db_enter+0x17 rsi 0x4756 __ALIGN_SIZE+0x3756 rbp 0xffff8000229d8ac0 rbx 0xffff8000229d8b70 rdx 0x4757 __ALIGN_SIZE+0x3757 rcx 0xffff800021398000 rax 0xffff800021398000 r8 0xffffffff81d00c7f kprintf+0x16f r9 0x1 r10 0x25 r11 0xaf4664fb99088ae0 r12 0x3000000008 r13 0xffff8000229d8ad0 r14 0x100 r15 0x1 rip 0xffffffff8120bfe8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000229d8ab0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=49471 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf8d0,0xffffffff8266a260 process=0xffff800020adc700 user=0xffff8000229d4000, vmspace=0xfffffd807f00a8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 49202 359945 61187 0 7 0 syz-executor.1 *49202 49471 61187 0 7 0x4000000 syz-executor.1 30481 472244 77210 0 2 0x2 syz-executor.0 61187 274075 77210 0 3 0x82 nanosleep syz-executor.1 86645 6639 0 0 3 0x14200 acct acct 37356 496930 1 0 3 0x100083 ttyin getty 22995 474702 0 0 3 0x14200 bored sosplice 77210 394230 71284 0 3 0x82 thrsleep syz-fuzzer 77210 487676 71284 0 3 0x4000082 nanosleep syz-fuzzer 77210 20949 71284 0 3 0x4000082 thrsleep syz-fuzzer 77210 296244 71284 0 3 0x4000082 thrsleep syz-fuzzer 77210 468685 71284 0 3 0x4000082 thrsleep syz-fuzzer 77210 107026 71284 0 3 0x4000082 thrsleep syz-fuzzer 77210 506733 71284 0 3 0x4000082 thrsleep syz-fuzzer 77210 517407 71284 0 3 0x4000082 kqread syz-fuzzer 77210 68997 71284 0 3 0x4000082 nanosleep syz-fuzzer 77210 374061 71284 0 3 0x4000082 thrsleep syz-fuzzer 71284 303549 31449 0 3 0x10008a pause ksh 31449 86504 44191 0 3 0x92 select sshd 44191 212861 1 0 3 0x80 select sshd 44559 152055 356 74 3 0x100092 bpf pflogd 356 228566 1 0 3 0x80 netio pflogd 43478 486851 40279 73 3 0x100090 kqread syslogd 40279 123776 1 0 3 0x100082 netio syslogd 90705 471585 1 77 3 0x100090 poll dhclient 35652 383668 1 0 3 0x80 poll dhclient 11210 350459 0 0 3 0x14200 pgzero zerothread 14451 157611 0 0 3 0x14200 aiodoned aiodoned 70019 436359 0 0 3 0x14200 syncer update 97599 351457 0 0 3 0x14200 cleaner cleaner 25231 470989 0 0 3 0x14200 reaper reaper 40415 161315 0 0 3 0x14200 pgdaemon pagedaemon 38031 47890 0 0 3 0x14200 bored crynlk 51324 505183 0 0 3 0x14200 bored crypto 9361 81337 0 0 3 0x40014200 acpi0 acpi0 49991 252310 0 0 3 0x40014200 idle1 62234 348466 0 0 3 0x14200 bored softnet 54062 172774 0 0 3 0x14200 bored systqmp 97309 150938 0 0 3 0x14200 bored systq 5112 27414 0 0 3 0x40014200 bored softclock 79753 399136 0 0 3 0x40014200 idle0 55063 338465 0 0 3 0x14200 bored smr 1 1009 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 49202 (syz-executor.1) thread 0xffff800020ace510 (49471) exclusive rwlock netlock r = 0 (0xffffffff824c0f78) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 uvn_io+0x3b2 sys/uvm/uvm_vnode.c:1206 #2 uvn_get+0x226 sys/uvm/uvm_vnode.c:1049 #3 uvm_fault+0x11cc sys/uvm/uvm_fault.c:1023 #4 pageflttrap+0x20b sys/arch/amd64/amd64/trap.c:199 #5 kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 #6 alltraps_kern_meltdown+0x7b #7 copyin+0x4b #8 sys_connect+0x9c sys/kern/uipc_syscalls.c:367 #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 kernel_lock &kernel_lock r = 1 (0xffffffff82623a10) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9580 7141K 8415K 78643K 15710 0 0 pcb 13 8K 8K 78643K 269 0 0 rtable 115 5K 6K 78643K 909 0 0 ifaddr 80 17K 18K 78643K 307 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1540 0 0 iov 0 0K 16K 78643K 206 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1231 77K 78K 78643K 2828 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 16 8K 8K 78643K 22 0 0 sem 12 1K 1K 78643K 469 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1151 0 0 sigio 0 0K 0K 78643K 13 0 0 proc 60 63K 83K 78643K 809 0 0 subproc 32 2K 2K 78643K 119 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 78 0 0 in_multi 25 1K 2K 78643K 128 0 0 ether_multi 1 0K 0K 78643K 15 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 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 390 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 135 136K 140K 78643K 5095 0 0 UVM aobj 123 5K 5K 78643K 127 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 273 0 0 NDP 18 0K 0K 78643K 89 0 0 temp 214 3560K 4194K 78643K 51288 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 23 0 19 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 133 0 131 1 0 1 1 0 8 0 rtentry 112 144 0 98 2 0 2 2 0 8 0 unpcb 120 2166 0 2156 3 1 2 2 0 8 1 syncache 264 11 0 11 4 3 1 1 0 8 1 tcpqe 32 101 0 101 3 2 1 1 0 8 1 tcpcb 544 514 0 510 4 3 1 3 0 8 0 inpcb 280 3106 0 3098 11 8 3 5 0 8 2 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 14 0 12 1 0 1 1 0 8 0 pkpcb 40 9 0 9 4 4 0 1 0 8 0 ppxss 1128 35 0 35 3 2 1 1 0 8 1 pffrag 232 187 0 164 2 0 2 2 0 482 0 pffrnode 88 167 0 164 1 0 1 1 0 8 0 pffrent 40 7207 0 7156 1 0 1 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 126 0 60 1 0 1 1 0 8 0 pfstkey 112 126 0 60 3 0 3 3 0 8 0 pfstate 328 126 0 60 6 0 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 537 0 338 17 3 14 16 0 8 0 art_table 32 539 0 338 3 0 3 3 0 8 0 art_node 16 142 0 105 1 0 1 1 0 8 0 sysvmsgpl 40 25 0 13 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 467 0 457 1 0 1 1 0 8 0 shmpl 112 125 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3115 0 1700 46 0 46 46 0 8 0 ffsino 272 3115 0 1700 95 0 95 95 0 8 0 nchpl 144 5026 0 3415 62 1 61 61 0 8 0 uvmvnodes 72 4526 0 0 83 0 83 83 0 8 0 vnodes 208 4526 0 0 239 0 239 239 0 8 0 namei 1024 16324 0 16324 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 14 0 0 2 0 2 2 0 8 0 vmpool 552 20 0 6 3 2 1 1 0 8 0 scsiplug 64 3 0 3 1 1 0 1 0 8 0 scxspl 192 15923 0 15923 14 13 1 7 0 8 1 plimitpl 152 117 0 109 1 0 1 1 0 8 0 sigapl 432 1335 0 1320 3 1 2 3 0 8 0 futexpl 56 32118 0 32118 1 0 1 1 0 8 1 knotepl 112 230 0 211 1 0 1 1 0 8 0 kqueuepl 104 343 0 341 1 0 1 1 0 8 0 pipepl 112 1398 0 1379 2 1 1 2 0 8 0 fdescpl 488 1336 0 1320 3 0 3 3 0 8 0 filepl 152 13979 0 13877 14 7 7 8 0 8 3 lockfpl 104 419 0 418 1 0 1 1 0 8 0 lockfspl 48 139 0 138 1 0 1 1 0 8 0 sessionpl 112 24 0 13 1 0 1 1 0 8 0 pgrppl 48 39 0 28 1 0 1 1 0 8 0 ucredpl 96 1021 0 1009 1 0 1 1 0 8 0 zombiepl 144 1320 0 1320 1 0 1 1 0 8 1 processpl 896 1353 0 1320 4 0 4 4 0 8 0 procpl 632 4010 0 3967 5 0 5 5 0 8 0 srpgc 64 8 0 8 2 2 0 1 0 8 0 sosppl 128 330 0 330 1 0 1 1 0 8 1 sockpl 384 5475 0 5455 17 11 6 9 0 8 4 mcl64k 65536 41 0 0 6 0 6 6 0 8 0 mcl16k 16384 10 0 0 2 0 2 2 0 8 0 mcl12k 12288 13 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 15 0 0 2 0 2 2 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 173 0 0 21 2 19 21 0 8 0 mtagpl 80 33 0 0 1 0 1 1 0 8 0 mbufpl 256 781 0 0 47 0 47 47 0 8 0 bufpl 256 9529 0 2471 442 0 442 442 0 8 0 anonpl 16 175554 0 155522 115 19 96 98 0 124 10 amapchunkpl 152 9519 0 9369 22 13 9 14 0 158 2 amappl16 192 7635 0 6485 87 20 67 70 0 8 8 amappl15 184 56 0 56 2 2 0 1 0 8 0 amappl14 176 79 0 74 1 0 1 1 0 8 0 amappl13 168 8 0 8 1 1 0 1 0 8 0 amappl12 160 153 0 149 1 0 1 1 0 8 0 amappl11 152 455 0 440 1 0 1 1 0 8 0 amappl10 144 146 0 138 1 0 1 1 0 8 0 amappl9 136 866 0 862 1 0 1 1 0 8 0 amappl8 128 431 0 396 2 0 2 2 0 8 0 amappl7 120 183 0 176 1 0 1 1 0 8 0 amappl6 112 464 0 452 1 0 1 1 0 8 0 amappl5 104 333 0 316 1 0 1 1 0 8 0 amappl4 96 1619 0 1588 1 0 1 1 0 8 0 amappl3 88 164 0 157 1 0 1 1 0 8 0 amappl2 80 9545 0 9472 3 1 2 3 0 8 0 amappl1 72 39901 0 39461 25 15 10 20 0 8 0 amappl 80 4381 0 4328 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 126 0 4 2 0 2 2 0 8 0 uaddrrnd 24 1356 0 1320 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1356 0 1320 1 0 1 1 0 8 0 vmmpekpl 168 15398 0 15355 4 1 3 3 0 8 0 vmmpepl 168 176561 0 174233 189 48 141 173 0 357 35 vmsppl 368 1335 0 1320 2 0 2 2 0 8 0 pdppl 4096 2719 0 2666 8 1 7 8 0 8 0 pvpl 32 481068 0 457759 252 29 223 231 0 265 27 pmappl 232 1355 0 1326 4 2 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 659 0 12 19 0 19 19 0 8 0