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 393304 93547 0 0 0 0 syz-executor.0 *265349 93547 0 0 0x4000000 1K 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(ffffffff822068b1,ffffffff821d431e,350,ffffffff821ac2d6) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000225c53c8,83,ffff8000225c5468,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff8000225c54d8,fffffd8070887950,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd8070887950,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd8070887950,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000225c55b0,fffffd807e08fd20,fffffd80708878d0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd80708878d0,fffffd807e08fd00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8066c71a88,4,0,fffffd807e08fd00,0,ffff800020ab0780) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ab0780,ffff8000225c5758,ffff8000225c57a0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000225c5820) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000225c5820) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,e5e08190010) at Xsyscall+0x128 end of kernel end trace frame: 0xe60b9b7f3b0, 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(ffffffff822068b1,ffffffff821d431e,350,ffffffff821ac2d6) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000225c53c8,83,ffff8000225c5468,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff8000225c54d8,fffffd8070887950,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd8070887950,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd8070887950,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000225c55b0,fffffd807e08fd20,fffffd80708878d0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd80708878d0,fffffd807e08fd00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8066c71a88,4,0,fffffd807e08fd00,0,ffff800020ab0780) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ab0780,ffff8000225c5758,ffff8000225c57a0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000225c5820) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000225c5820) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,e5e08190010) at Xsyscall+0x128 end of kernel end trace frame: 0xe60b9b7f3b0, count: -12 ddb{1}> show registers rdi 0xffffffff818c8e87 db_enter+0x17 rsi 0x41d7 __ALIGN_SIZE+0x31d7 rbp 0xffff8000225c51e0 rbx 0xffff8000225c5290 rdx 0x41d8 __ALIGN_SIZE+0x31d8 rcx 0xffff8000221ac000 rax 0xffff8000221ac000 r8 0xffffffff81ad2b6f kprintf+0x16f r9 0x1 r10 0x25 r11 0xc7075140cfd1577f r12 0x3000000008 r13 0xffff8000225c51f0 r14 0x100 r15 0x1 rip 0xffffffff818c8e88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000225c51d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=265349 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1b40,0xffffffff8265a258 process=0xffff800020a8aa90 user=0xffff8000225c0000, vmspace=0xfffffd807f00b5c0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 93547 393304 28039 0 7 0 syz-executor.0 *93547 265349 28039 0 7 0x4000000 syz-executor.0 40504 171156 82915 0 3 0x82 nanosleep syz-executor.1 28039 465146 82915 0 3 0x82 nanosleep syz-executor.0 77590 218081 1 0 3 0x100083 ttyin getty 35970 370088 0 0 3 0x14200 acct acct 98019 495211 0 0 3 0x14200 bored sosplice 82915 231127 67611 0 3 0x82 thrsleep syz-fuzzer 82915 504096 67611 0 3 0x4000082 nanosleep syz-fuzzer 82915 499002 67611 0 3 0x4000082 thrsleep syz-fuzzer 82915 215749 67611 0 3 0x4000082 thrsleep syz-fuzzer 82915 79847 67611 0 3 0x4000082 thrsleep syz-fuzzer 82915 58089 67611 0 3 0x4000082 nanosleep syz-fuzzer 82915 196372 67611 0 3 0x4000082 thrsleep syz-fuzzer 82915 345712 67611 0 3 0x4000082 thrsleep syz-fuzzer 82915 355589 67611 0 3 0x4000082 thrsleep syz-fuzzer 82915 288807 67611 0 3 0x4000082 kqread syz-fuzzer 67611 417327 84264 0 3 0x10008a pause ksh 84264 395923 61763 0 3 0x92 select sshd 61763 47090 1 0 3 0x80 select sshd 85848 482889 15316 74 3 0x100092 bpf pflogd 15316 226076 1 0 3 0x80 netio pflogd 82027 8121 49144 73 3 0x100090 kqread syslogd 49144 329943 1 0 3 0x100082 netio syslogd 43421 306266 1 77 3 0x100090 poll dhclient 49730 92885 1 0 3 0x80 poll dhclient 93287 225766 0 0 3 0x14200 pgzero zerothread 74411 150061 0 0 3 0x14200 aiodoned aiodoned 58194 15032 0 0 3 0x14200 syncer update 13715 328093 0 0 3 0x14200 cleaner cleaner 3740 306867 0 0 3 0x14200 reaper reaper 10563 315233 0 0 3 0x14200 pgdaemon pagedaemon 78002 431322 0 0 3 0x14200 bored crynlk 91244 190894 0 0 3 0x14200 bored crypto 57734 173511 0 0 3 0x40014200 acpi0 acpi0 98184 443734 0 0 3 0x40014200 idle1 39924 15368 0 0 3 0x14200 bored softnet 93404 91071 0 0 3 0x14200 bored systqmp 79742 233574 0 0 3 0x14200 bored systq 46173 443455 0 0 3 0x40014200 bored softclock 19494 427870 0 0 3 0x40014200 idle0 57983 507449 0 0 3 0x14200 bored smr 1 3973 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 93547 (syz-executor.0) thread 0xffff800020ab0780 (265349) exclusive rwlock netlock r = 0 (0xffffffff824d1b18) #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 (0xffffffff8265b1d8) #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 9625 6621K 8244K 78643K 28278 0 0 pcb 13 13K 14K 78643K 1572 0 0 rtable 136 15K 16K 78643K 4640 0 0 ifaddr 96 26K 31K 78643K 1245 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1778 0 0 iov 0 0K 32K 78643K 1551 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1234 77K 78K 78643K 7734 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 106 0 0 VM map 48 24K 24K 78643K 81 0 0 sem 12 0K 0K 78643K 4193 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 7171 0 0 sigio 0 0K 0K 78643K 94 0 0 proc 62 63K 95K 78643K 2960 0 0 subproc 32 2K 2K 78643K 699 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 775 0 0 in_multi 23 1K 2K 78643K 1018 0 0 ether_multi 1 0K 0K 78643K 78 0 0 mrt 0 0K 0K 78643K 47 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 1452 0 0 pfkey data 0 0K 0K 78643K 2 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 228 465K 468K 78643K 26752 0 0 UVM aobj 130 6K 6K 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 2K 78643K 1737 0 0 NDP 21 0K 0K 78643K 424 0 0 temp 236 3561K 4201K 78643K 249013 0 0 kqueue 0 0K 2K 78643K 343 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 150 0 145 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 684 0 682 1 0 1 1 0 8 0 rtentry 112 908 0 856 2 0 2 2 0 8 0 unpcb 120 4979 0 4958 9 8 1 2 0 8 0 syncache 264 42 0 42 17 17 0 1 0 8 0 tcpqe 32 87 0 87 9 9 0 1 0 8 0 tcpcb 544 4088 0 4082 51 50 1 12 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 11258 0 11249 67 64 3 13 0 8 1 rttmr 72 13 0 12 5 4 1 1 0 8 0 ip6q 72 4 0 4 4 4 0 1 0 8 0 ip6af 40 7 0 7 4 4 0 1 0 8 0 nd6 48 138 0 138 2 1 1 1 0 8 1 pkpcb 40 35 0 35 11 11 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 152 0 152 23 22 1 1 0 8 1 pffrag 232 173 0 173 19 18 1 1 0 482 1 pffrnode 88 171 0 171 19 18 1 1 0 8 1 pffrent 40 5913 0 5913 19 18 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 584 0 510 1 0 1 1 0 8 0 pfstkey 112 587 0 513 3 0 3 3 0 8 0 pfstate 328 587 0 513 11 3 8 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 14 0 12 8 6 2 4 0 8 0 art_heap4 256 3938 0 3721 54 34 20 21 0 8 2 art_table 32 3952 0 3733 3 0 3 3 0 8 0 art_node 16 897 0 855 1 0 1 1 0 8 0 sysvmsgpl 40 38 0 18 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 4191 0 4181 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 12290 0 10842 47 0 47 47 0 8 0 ffsino 272 12290 0 10842 97 0 97 97 0 8 0 nchpl 144 26776 0 26285 61 40 21 61 0 8 0 uvmvnodes 72 6437 0 0 118 0 118 118 0 8 0 vnodes 208 6437 0 0 339 0 339 339 0 8 0 namei 1024 90459 0 90459 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 48 0 2 6 0 6 6 0 8 0 vmpool 552 79 0 33 4 0 4 4 0 8 0 scsiplug 64 9 0 9 5 5 0 1 0 8 0 scxspl 192 81043 0 81043 51 50 1 7 0 8 1 plimitpl 152 591 0 583 1 0 1 1 0 8 0 sigapl 432 7256 0 7241 3 1 2 3 0 8 0 futexpl 56 214502 0 214502 4 3 1 1 0 8 1 knotepl 112 4678 0 4659 26 24 2 6 0 8 1 kqueuepl 104 14284 0 14282 14 12 2 4 0 8 1 pipepl 112 4608 0 4589 8 7 1 2 0 8 0 fdescpl 488 7257 0 7241 3 0 3 3 0 8 0 filepl 152 80633 0 80532 65 58 7 14 0 8 3 lockfpl 104 2580 0 2579 1 0 1 1 0 8 0 lockfspl 48 826 0 825 1 0 1 1 0 8 0 sessionpl 112 61 0 50 1 0 1 1 0 8 0 pgrppl 48 451 0 440 1 0 1 1 0 8 0 ucredpl 96 7077 0 7068 1 0 1 1 0 8 0 zombiepl 144 7243 0 7242 1 0 1 1 0 8 0 processpl 896 7276 0 7242 4 0 4 4 0 8 0 procpl 632 23765 0 23721 6 1 5 5 0 8 0 srpgc 64 52 0 52 14 14 0 1 0 8 0 sosppl 128 152 0 152 29 28 1 1 0 8 1 sockpl 384 17073 0 17041 105 99 6 22 0 8 2 mcl64k 65536 444 0 0 47 19 28 33 0 8 1 mcl16k 16384 25 0 0 4 1 3 3 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 3 0 3 3 0 8 0 mcl4k 4096 36 0 0 3 0 3 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 221 0 0 25 7 18 25 0 8 0 mtagpl 80 149 0 0 2 1 1 2 0 8 0 mbufpl 256 865 0 0 43 0 43 43 0 8 0 bufpl 256 29031 0 21973 442 0 442 442 0 8 0 anonpl 16 944930 0 922198 260 152 108 108 0 124 14 amapchunkpl 152 54358 0 54167 90 75 15 18 0 158 6 amappl16 192 41786 0 40501 278 205 73 75 0 8 8 amappl15 184 677 0 676 1 0 1 1 0 8 0 amappl14 176 2201 0 2195 1 0 1 1 0 8 0 amappl13 168 494 0 492 2 1 1 1 0 8 0 amappl12 160 365 0 363 1 0 1 1 0 8 0 amappl11 152 843 0 828 1 0 1 1 0 8 0 amappl10 144 1291 0 1288 1 0 1 1 0 8 0 amappl9 136 2181 0 2177 1 0 1 1 0 8 0 amappl8 128 1810 0 1738 3 0 3 3 0 8 0 amappl7 120 1479 0 1469 1 0 1 1 0 8 0 amappl6 112 772 0 753 1 0 1 1 0 8 0 amappl5 104 858 0 843 1 0 1 1 0 8 0 amappl4 96 7558 0 7521 1 0 1 1 0 8 0 amappl3 88 2142 0 2132 1 0 1 1 0 8 0 amappl2 80 55422 0 55338 3 1 2 3 0 8 0 amappl1 72 173790 0 173353 25 15 10 20 0 8 0 amappl 80 24798 0 24724 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 7336 0 7241 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7336 0 7241 1 0 1 1 0 8 0 vmmpekpl 168 62360 0 62318 3 0 3 3 0 8 0 vmmpepl 168 942134 0 939524 360 222 138 159 0 357 17 vmsppl 368 7256 0 7241 2 0 2 2 0 8 0 pdppl 4096 14679 0 14594 14 2 12 12 0 8 1 pvpl 32 2397944 0 2374798 445 223 222 229 0 265 28 pmappl 232 7335 0 7274 7 3 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 804 0 125 20 0 20 20 0 8 0