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 *252970 53251 0 0 0x4000000 0K syz-executor.0 401741 67001 0 0x2 0x4000000 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(ffffffff822069c1,ffffffff821d46da,350,ffffffff821ac919) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000239ed7f8,83,ffff8000239ed898,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff8000239ed908,fffffd806f6c8940,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6c8940,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6c8940,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000239ed9e0,fffffd8060a42e20,fffffd806f6c88c0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6c88c0,fffffd8060a42e00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80600b2de0,4,0,fffffd8060a42e00,0,ffff800020a5f3c8) at udp_usrreq+0x560 sys_connect(ffff800020a5f3c8,ffff8000239edb68,ffff8000239edbb0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000239edc30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239edc30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,e5f53e01010) at Xsyscall+0x128 end of kernel end trace frame: 0xe621db6f930, 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(ffffffff822069c1,ffffffff821d46da,350,ffffffff821ac919) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000239ed7f8,83,ffff8000239ed898,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff8000239ed908,fffffd806f6c8940,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6c8940,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6c8940,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000239ed9e0,fffffd8060a42e20,fffffd806f6c88c0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6c88c0,fffffd8060a42e00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80600b2de0,4,0,fffffd8060a42e00,0,ffff800020a5f3c8) at udp_usrreq+0x560 sys_connect(ffff800020a5f3c8,ffff8000239edb68,ffff8000239edbb0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000239edc30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239edc30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,e5f53e01010) at Xsyscall+0x128 end of kernel end trace frame: 0xe621db6f930, count: -12 ddb{0}> show registers rdi 0xffffffff81194cb7 db_enter+0x17 rsi 0x425f __ALIGN_SIZE+0x325f rbp 0xffff8000239ed610 rbx 0xffff8000239ed6c0 rdx 0x4260 __ALIGN_SIZE+0x3260 rcx 0xffff800023190000 rax 0xffff800023190000 r8 0xffffffff81f734ef kprintf+0x16f r9 0x1 r10 0x25 r11 0xd1aa9781f9ac23fc r12 0x3000000008 r13 0xffff8000239ed620 r14 0x100 r15 0x1 rip 0xffffffff81194cb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000239ed600 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=252970 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac0010,0xffffffff82645b50 process=0xffff800020a8ae10 user=0xffff8000239e8000, vmspace=0xfffffd807f00a000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 53251 475590 89889 0 2 0 syz-executor.0 *53251 252970 89889 0 7 0x4000000 syz-executor.0 14147 445491 67001 0 2 0x2 syz-executor.1 73779 350727 0 0 3 0x14200 acct acct 88178 76842 1 0 3 0x100083 ttyopn getty 89889 91279 67001 0 2 0x482 syz-executor.0 79254 187517 0 0 3 0x14200 bored sosplice 67001 343865 79597 0 3 0x82 thrsleep syz-fuzzer 67001 13965 79597 0 3 0x4000082 nanosleep syz-fuzzer 67001 265994 79597 0 3 0x4000082 thrsleep syz-fuzzer 67001 440991 79597 0 3 0x4000082 thrsleep syz-fuzzer 67001 372474 79597 0 3 0x4000082 thrsleep syz-fuzzer 67001 23388 79597 0 3 0x4000082 thrsleep syz-fuzzer 67001 257756 79597 0 3 0x4000082 thrsleep syz-fuzzer 67001 401741 79597 0 7 0x4000002 syz-fuzzer 67001 408020 79597 0 3 0x4000082 thrsleep syz-fuzzer 67001 508910 79597 0 3 0x4000082 nanosleep syz-fuzzer 79597 406247 16070 0 3 0x10008a pause ksh 16070 132513 47710 0 3 0x92 select sshd 47710 28612 1 0 3 0x80 select sshd 46260 338927 21302 74 3 0x100092 bpf pflogd 21302 506921 1 0 3 0x80 netio pflogd 43471 217417 94107 73 3 0x100090 kqread syslogd 94107 364207 1 0 3 0x100082 netio syslogd 79453 66349 1 77 3 0x100090 poll dhclient 98905 8321 1 0 3 0x80 poll dhclient 68750 500237 0 0 3 0x14200 pgzero zerothread 35598 475499 0 0 3 0x14200 aiodoned aiodoned 18114 281046 0 0 3 0x14200 syncer update 7946 60 0 0 3 0x14200 cleaner cleaner 99975 345064 0 0 3 0x14200 reaper reaper 79049 298145 0 0 3 0x14200 pgdaemon pagedaemon 17731 31538 0 0 3 0x14200 bored crynlk 3539 285767 0 0 3 0x14200 bored crypto 74458 174128 0 0 3 0x40014200 acpi0 acpi0 6814 137506 0 0 3 0x40014200 idle1 20029 320724 0 0 3 0x14200 bored softnet 24186 508971 0 0 3 0x14200 bored systqmp 624 491631 0 0 3 0x14200 bored systq 97506 246511 0 0 3 0x40014200 bored softclock 23900 27412 0 0 3 0x40014200 idle0 19069 491565 0 0 3 0x14200 bored smr 1 522893 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 53251 (syz-executor.0) thread 0xffff800020a5f3c8 (252970) exclusive rwlock netlock r = 0 (0xffffffff824f3758) #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 (0xffffffff8262a6d0) #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 9636 6478K 14802K 78643K 38156 0 0 pcb 13 12K 14K 78643K 2518 0 0 rtable 226 21K 21K 78643K 7332 0 0 ifaddr 143 40K 48K 78643K 2299 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2488 0 0 iov 0 0K 32K 78643K 4627 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1217 76K 77K 78643K 12053 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 168 0 0 VM map 171 85K 85K 78643K 206 0 0 sem 12 1K 1K 78643K 654 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 11929 0 0 sigio 0 0K 0K 78643K 185 0 0 proc 62 63K 95K 78643K 5132 0 0 subproc 32 2K 2K 78643K 1449 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 1100 0 0 in_multi 52 3K 4K 78643K 1601 0 0 ether_multi 1 0K 0K 78643K 136 0 0 mrt 0 0K 0K 78643K 37 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 2559 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 413 1336K 1336K 78643K 45942 0 0 UVM aobj 130 7K 7K 78643K 145 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 2954 0 0 NDP 25 0K 1K 78643K 737 0 0 temp 264 3565K 4206K 78643K 396645 0 0 kqueue 0 0K 0K 78643K 12100 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 174 0 167 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1099 0 1097 1 0 1 1 0 8 0 rtentry 112 1298 0 1204 6 3 3 3 0 8 0 unpcb 120 6624 0 6602 19 18 1 2 0 8 0 syncache 264 67 0 67 34 34 0 1 0 8 0 tcpqe 32 35 0 35 14 14 0 1 0 8 0 tcpcb 544 5556 0 5552 69 68 1 15 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 16786 0 16778 104 103 1 13 0 8 0 rttmr 72 12 0 12 9 9 0 1 0 8 0 ip6q 72 10 0 10 6 6 0 1 0 8 0 ip6af 40 22 0 22 6 6 0 1 0 8 0 nd6 48 201 0 199 8 7 1 1 0 8 0 pkpcb 40 45 0 45 13 13 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 277 0 277 46 46 0 1 0 8 0 pffrag 232 338 0 338 48 48 0 1 0 482 0 pffrnode 88 338 0 338 48 48 0 1 0 8 0 pffrent 40 11610 0 11610 46 46 0 1 0 8 0 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 985 0 948 1 0 1 1 0 8 0 pfstkey 112 992 0 955 4 2 2 3 0 8 0 pfstate 328 992 0 955 16 10 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 20 0 10 16 6 10 10 0 8 0 art_heap4 256 5600 0 5269 74 52 22 25 0 8 0 art_table 32 5620 0 5279 4 0 4 4 0 8 0 art_node 16 1276 0 1211 1 0 1 1 0 8 0 sysvmsgpl 40 48 0 33 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 652 0 642 1 0 1 1 0 8 0 shmpl 112 143 0 15 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 19467 0 17992 48 0 48 48 0 8 0 ffsino 272 19467 0 17992 102 3 99 99 0 8 0 nchpl 144 37892 0 37423 62 42 20 61 0 8 0 uvmvnodes 72 7562 0 0 138 0 138 138 0 8 0 vnodes 208 7562 0 0 398 0 398 398 0 8 0 namei 1024 140514 0 140514 5 4 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 169 0 0 22 0 22 22 0 8 0 vmpool 552 204 0 35 13 0 13 13 0 8 0 scsiplug 64 25 0 25 16 16 0 1 0 8 0 scxspl 192 123715 0 123715 97 95 2 7 0 8 2 plimitpl 152 951 0 943 1 0 1 1 0 8 0 sigapl 432 11887 0 11872 4 2 2 3 0 8 0 futexpl 56 433670 0 433670 2 1 1 1 0 8 1 knotepl 112 15099 0 15080 13 12 1 3 0 8 0 kqueuepl 104 23761 0 23759 15 14 1 4 0 8 0 pipepl 112 64044 0 64023 56 53 3 4 0 8 2 fdescpl 488 11888 0 11872 3 0 3 3 0 8 0 filepl 152 189157 0 189051 146 139 7 14 0 8 2 lockfpl 104 4227 0 4226 1 0 1 1 0 8 0 lockfspl 48 1462 0 1461 1 0 1 1 0 8 0 sessionpl 112 110 0 99 1 0 1 1 0 8 0 pgrppl 48 219 0 208 1 0 1 1 0 8 0 ucredpl 96 12273 0 12263 1 0 1 1 0 8 0 zombiepl 144 11880 0 11880 7 6 1 1 0 8 1 processpl 896 11913 0 11880 5 1 4 5 0 8 0 procpl 632 40610 0 40567 6 1 5 5 0 8 1 srpgc 64 205 0 205 50 49 1 1 0 8 1 sosppl 128 289 0 289 52 52 0 1 0 8 0 sockpl 384 24771 0 24738 142 137 5 23 0 8 0 mcl64k 65536 1129 0 0 129 113 16 66 0 8 1 mcl16k 16384 57 0 0 6 3 3 3 0 8 0 mcl12k 12288 48 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 3 0 3 3 0 8 0 mcl4k 4096 42 0 0 3 0 3 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 240 0 0 22 11 11 22 0 8 0 mtagpl 80 225 0 0 1 0 1 1 0 8 0 mbufpl 256 1499 0 0 38 3 35 38 0 8 0 bufpl 256 43323 0 35760 473 0 473 473 0 8 0 anonpl 16 1529403 0 1506842 463 355 108 122 0 124 2 amapchunkpl 152 95406 0 95210 162 151 11 22 0 158 0 amappl16 192 64609 0 63101 495 418 77 87 0 8 1 amappl15 184 1865 0 1863 12 11 1 1 0 8 0 amappl14 176 2272 0 2263 1 0 1 1 0 8 0 amappl13 168 2608 0 2607 1 0 1 1 0 8 0 amappl12 160 1791 0 1784 1 0 1 1 0 8 0 amappl11 152 1115 0 1100 1 0 1 1 0 8 0 amappl10 144 1615 0 1606 1 0 1 1 0 8 0 amappl9 136 2273 0 2270 1 0 1 1 0 8 0 amappl8 128 1977 0 1854 5 0 5 5 0 8 0 amappl7 120 1955 0 1945 1 0 1 1 0 8 0 amappl6 112 924 0 906 1 0 1 1 0 8 0 amappl5 104 2786 0 2770 1 0 1 1 0 8 0 amappl4 96 13092 0 13047 6 4 2 2 0 8 0 amappl3 88 3741 0 3726 1 0 1 1 0 8 0 amappl2 80 92779 0 92686 5 2 3 3 0 8 0 amappl1 72 284499 0 284056 25 15 10 20 0 8 0 amappl 80 42496 0 42362 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 144 0 15 3 0 3 3 0 8 0 uaddrrnd 24 12092 0 11872 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12092 0 11872 2 0 2 2 0 8 0 vmmpekpl 168 207252 0 207188 5 1 4 4 0 8 0 vmmpepl 168 1565843 0 1562607 768 576 192 193 0 357 42 vmsppl 368 11887 0 11872 2 0 2 2 0 8 0 pdppl 4096 24191 0 23983 34 7 27 27 0 8 0 pvpl 32 3888684 0 3868180 794 579 215 237 0 265 16 pmappl 232 12091 0 11907 13 2 11 11 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 983 0 273 21 0 21 21 0 8 0