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 498412 52572 0 0 0 1 syz-executor.0 *191735 52572 0 0 0x4000000 0K 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(ffffffff822089a2,ffffffff821d2b2e,350,ffffffff821aad56) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800021dcafe8,83,ffff800021dcb088,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021dcb0f8,fffffd806f6ce4e0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6ce4e0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6ce4e0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021dcb1d0,fffffd8065789d20,fffffd806f6ce460) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6ce460,fffffd8065789d00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80645b6ae8,4,0,fffffd8065789d00,0,ffff800020ace060) at udp_usrreq+0x560 sys_connect(ffff800020ace060,ffff800021dcb358,ffff800021dcb3a0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021dcb420) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021dcb420) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,6bce9194010) at Xsyscall+0x128 end of kernel end trace frame: 0x6bf0fc67440, 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(ffffffff822089a2,ffffffff821d2b2e,350,ffffffff821aad56) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800021dcafe8,83,ffff800021dcb088,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021dcb0f8,fffffd806f6ce4e0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6ce4e0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6ce4e0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021dcb1d0,fffffd8065789d20,fffffd806f6ce460) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6ce460,fffffd8065789d00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80645b6ae8,4,0,fffffd8065789d00,0,ffff800020ace060) at udp_usrreq+0x560 sys_connect(ffff800020ace060,ffff800021dcb358,ffff800021dcb3a0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021dcb420) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021dcb420) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,6bce9194010) at Xsyscall+0x128 end of kernel end trace frame: 0x6bf0fc67440, count: -12 ddb{0}> show registers rdi 0xffffffff81a8d2c7 db_enter+0x17 rsi 0x3b4d __ALIGN_SIZE+0x2b4d rbp 0xffff800021dcae00 rbx 0xffff800021dcaeb0 rdx 0x3b4e __ALIGN_SIZE+0x2b4e rcx 0xffff800021bb6000 rax 0xffff800021bb6000 r8 0xffffffff818b4cbf kprintf+0x16f r9 0x1 r10 0x25 r11 0x9f7f7a2326dc808b r12 0x3000000008 r13 0xffff800021dcae10 r14 0x100 r15 0x1 rip 0xffffffff81a8d2c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021dcadf0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=191735 stat=onproc flags process=0 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf910,0xffffffff82666280 process=0xffff800020adca80 user=0xffff800021dc6000, vmspace=0xfffffd807f00b8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 52572 498412 45268 0 7 0 syz-executor.0 *52572 191735 45268 0 7 0x4000000 syz-executor.0 54414 16758 53870 0 2 0 syz-executor.1 54414 392574 53870 0 3 0x4000080 netio syz-executor.1 53870 116836 78710 0 2 0x2 syz-executor.1 45268 153487 78710 0 3 0x82 nanosleep syz-executor.0 1733 291365 0 0 3 0x14200 acct acct 12410 13778 1 0 3 0x100083 ttyin getty 24418 197083 0 0 3 0x14200 bored sosplice 78710 461752 68742 0 3 0x82 thrsleep syz-fuzzer 78710 120376 68742 0 3 0x4000082 thrsleep syz-fuzzer 78710 131605 68742 0 3 0x4000082 thrsleep syz-fuzzer 78710 389111 68742 0 3 0x4000082 thrsleep syz-fuzzer 78710 89783 68742 0 3 0x4000082 kqread syz-fuzzer 78710 464673 68742 0 3 0x4000082 thrsleep syz-fuzzer 78710 153807 68742 0 3 0x4000082 thrsleep syz-fuzzer 78710 136723 68742 0 3 0x4000082 thrsleep syz-fuzzer 78710 261563 68742 0 3 0x4000082 thrsleep syz-fuzzer 78710 453053 68742 0 3 0x4000082 thrsleep syz-fuzzer 78710 271834 68742 0 3 0x4000082 thrsleep syz-fuzzer 68742 201349 93065 0 3 0x10008a pause ksh 93065 145546 64568 0 3 0x92 select sshd 64568 281679 1 0 3 0x80 select sshd 48802 189959 75754 74 3 0x100092 bpf pflogd 75754 152902 1 0 3 0x80 netio pflogd 1309 59225 53831 73 3 0x100090 kqread syslogd 53831 410004 1 0 3 0x100082 netio syslogd 42554 193210 1 77 3 0x100090 poll dhclient 43299 190092 1 0 3 0x80 poll dhclient 95360 400814 0 0 2 0x14200 zerothread 3698 67794 0 0 3 0x14200 aiodoned aiodoned 66267 448614 0 0 3 0x14200 syncer update 57246 181029 0 0 3 0x14200 cleaner cleaner 16759 96948 0 0 3 0x14200 reaper reaper 19213 325139 0 0 3 0x14200 pgdaemon pagedaemon 46611 313750 0 0 3 0x14200 bored crynlk 91179 503370 0 0 3 0x14200 bored crypto 21661 1092 0 0 3 0x40014200 acpi0 acpi0 90399 438953 0 0 3 0x40014200 idle1 21155 382316 0 0 3 0x14200 bored softnet 18122 426561 0 0 3 0x14200 bored systqmp 78437 170862 0 0 3 0x14200 bored systq 16514 217956 0 0 3 0x40014200 bored softclock 27373 495447 0 0 3 0x40014200 idle0 99617 478523 0 0 3 0x14200 bored smr 1 160974 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 52572 (syz-executor.0) thread 0xffff800020ace060 (191735) exclusive rwlock netlock r = 0 (0xffffffff824d26b8) #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 (0xffffffff82644940) #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 9566 6449K 7947K 78643K 19939 0 0 pcb 13 16K 18K 78643K 697 0 0 rtable 120 5K 6K 78643K 1550 0 0 ifaddr 78 19K 20K 78643K 543 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1678 0 0 iov 0 0K 32K 78643K 406 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1221 77K 77K 78643K 4906 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 51 0 0 VM map 21 10K 11K 78643K 40 0 0 sem 12 0K 0K 78643K 1436 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 5077 0 0 sigio 0 0K 0K 78643K 94 0 0 proc 62 63K 95K 78643K 1143 0 0 subproc 32 2K 2K 78643K 204 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 438 0 0 in_multi 21 1K 2K 78643K 437 0 0 ether_multi 1 0K 0K 78643K 77 0 0 mrt 6 0K 0K 78643K 51 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 653 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 162 300K 309K 78643K 13874 0 0 UVM aobj 130 4K 4K 78643K 130 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 788 0 0 NDP 17 0K 0K 78643K 158 0 0 temp 208 3556K 3634K 78643K 61984 0 0 kqueue 0 0K 0K 78643K 16 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 34 0 27 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 314 0 312 1 0 1 1 0 8 0 rtentry 112 207 0 160 2 0 2 2 0 8 0 unpcb 120 2609 0 2584 7 5 2 2 0 8 0 syncache 264 94 0 94 11 10 1 1 0 8 1 tcpqe 32 31 0 31 4 4 0 1 0 8 0 tcpcb 544 7394 0 7387 43 42 1 15 0 8 0 inpcb 280 10986 0 10975 59 57 2 16 0 8 1 rttmr 72 11 0 11 3 3 0 1 0 8 0 nd6 48 32 0 31 3 2 1 1 0 8 0 pkpcb 40 56 0 56 4 4 0 1 0 8 0 ppxss 1128 89 0 89 13 12 1 1 0 8 1 pffrag 232 49 0 49 10 10 0 1 0 482 0 pffrnode 88 49 0 49 10 10 0 1 0 8 0 pffrent 40 2171 0 2171 10 10 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 181 0 130 1 0 1 1 0 8 0 pfstkey 112 181 0 130 2 0 2 2 0 8 0 pfstate 328 181 0 129 6 1 5 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 878 0 694 23 9 14 17 0 8 0 art_table 32 880 0 694 3 1 2 3 0 8 0 art_node 16 202 0 161 1 0 1 1 0 8 0 sysvmsgpl 40 33 0 11 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 1434 0 1424 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9392 0 7972 47 1 46 47 0 8 0 ffsino 272 9392 0 7972 96 0 96 96 0 8 0 nchpl 144 16301 0 15831 62 42 20 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 48521 0 48521 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 19 0 0 3 0 3 3 0 8 0 vmpool 552 38 0 19 5 3 2 2 0 8 0 scsiplug 64 4 0 4 1 1 0 1 0 8 0 scxspl 192 47410 0 47410 14 13 1 7 0 8 1 plimitpl 152 358 0 350 1 0 1 1 0 8 0 sigapl 432 5247 0 5231 3 1 2 3 0 8 0 futexpl 56 88921 0 88921 1 0 1 1 0 8 1 knotepl 112 1133 0 1114 6 5 1 3 0 8 0 kqueuepl 104 6398 0 6396 15 14 1 7 0 8 0 pipepl 112 1636 0 1615 7 6 1 2 0 8 0 fdescpl 488 5248 0 5231 3 0 3 3 0 8 0 filepl 152 40644 0 40528 59 53 6 22 0 8 1 lockfpl 104 1084 0 1083 1 0 1 1 0 8 0 lockfspl 48 454 0 453 1 0 1 1 0 8 0 sessionpl 112 30 0 19 1 0 1 1 0 8 0 pgrppl 48 123 0 112 1 0 1 1 0 8 0 ucredpl 96 6249 0 6240 1 0 1 1 0 8 0 zombiepl 144 5231 0 5231 2 1 1 1 0 8 1 processpl 896 5265 0 5231 4 0 4 4 0 8 0 procpl 632 12431 0 12385 13 8 5 5 0 8 0 srpgc 64 26 0 26 8 8 0 1 0 8 0 sosppl 128 157 0 157 11 10 1 1 0 8 1 sockpl 384 14020 0 13982 83 78 5 24 0 8 1 mcl64k 65536 32 0 0 4 1 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 18 0 0 2 0 2 2 0 8 0 mcl9k 9216 11 0 0 1 0 1 1 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 16 0 0 2 0 2 2 0 8 0 mcl2k 2048 235 0 0 14 1 13 13 0 8 0 mtagpl 80 139 0 0 2 0 2 2 0 8 0 mbufpl 256 610 0 0 24 0 24 24 0 8 0 bufpl 256 16634 0 9576 442 0 442 442 0 8 0 anonpl 16 424687 0 418064 95 52 43 54 0 124 13 amapchunkpl 152 24667 0 24566 31 26 5 12 0 158 0 amappl16 192 24779 0 24449 62 38 24 29 0 8 7 amappl15 184 16 0 16 2 2 0 1 0 8 0 amappl14 176 119 0 112 1 0 1 1 0 8 0 amappl13 168 269 0 269 2 2 0 1 0 8 0 amappl12 160 2738 0 2731 1 0 1 1 0 8 0 amappl11 152 193 0 178 1 0 1 1 0 8 0 amappl10 144 1153 0 1148 1 0 1 1 0 8 0 amappl9 136 846 0 843 1 0 1 1 0 8 0 amappl8 128 382 0 346 3 1 2 2 0 8 0 amappl7 120 1195 0 1187 1 0 1 1 0 8 0 amappl6 112 175 0 163 1 0 1 1 0 8 0 amappl5 104 2980 0 2962 1 0 1 1 0 8 0 amappl4 96 3410 0 3375 2 1 1 2 0 8 0 amappl3 88 2767 0 2746 1 0 1 1 0 8 0 amappl2 80 40563 0 40484 4 2 2 3 0 8 0 amappl1 72 106691 0 106223 26 15 11 20 0 8 0 amappl 80 12886 0 12829 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 5286 0 5231 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5286 0 5231 1 0 1 1 0 8 0 vmmpekpl 168 30297 0 30253 3 0 3 3 0 8 0 vmmpepl 168 613165 0 611517 144 66 78 82 0 357 3 vmsppl 368 5247 0 5231 2 0 2 2 0 8 0 pdppl 4096 10579 0 10519 11 3 8 8 0 8 0 pvpl 32 1618236 0 1607699 284 166 118 134 0 265 33 pmappl 232 5285 0 5250 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 679 0 60 18 0 18 18 0 8 0