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 30991 99618 0 0 0 0 syz-executor.1 *104569 99618 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(ffffffff82207348,ffffffff821d52f7,350,ffffffff821ad3cb) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800023bcece8,83,ffff800023bced88,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023bcedf8,fffffd806f6cbc88,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cbc88,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cbc88,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023bceed0,fffffd8066165b20,fffffd806f6cbc08) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cbc08,fffffd8066165b00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8060f7a1e0,4,0,fffffd8066165b00,0,ffff800020ace298) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ace298,ffff800023bcf078,ffff800023bcf0c0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023bcf140) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bcf140) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,b24ea1b8010) at Xsyscall+0x128 end of kernel end trace frame: 0xb27cca5a440, 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(ffffffff82207348,ffffffff821d52f7,350,ffffffff821ad3cb) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800023bcece8,83,ffff800023bced88,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023bcedf8,fffffd806f6cbc88,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cbc88,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cbc88,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023bceed0,fffffd8066165b20,fffffd806f6cbc08) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cbc08,fffffd8066165b00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8060f7a1e0,4,0,fffffd8066165b00,0,ffff800020ace298) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ace298,ffff800023bcf078,ffff800023bcf0c0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023bcf140) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bcf140) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,b24ea1b8010) at Xsyscall+0x128 end of kernel end trace frame: 0xb27cca5a440, count: -12 ddb{1}> show registers rdi 0xffffffff81d97467 db_enter+0x17 rsi 0x3917 __ALIGN_SIZE+0x2917 rbp 0xffff800023bceb00 rbx 0xffff800023bcebb0 rdx 0x3918 __ALIGN_SIZE+0x2918 rcx 0xffff800021352000 rax 0xffff800021352000 r8 0xffffffff815fe7df kprintf+0x16f r9 0x1 r10 0x25 r11 0xf9ec7b4bc911549f r12 0x3000000008 r13 0xffff800023bceb10 r14 0x100 r15 0x1 rip 0xffffffff81d97468 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bceaf0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=104569 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020acec78,0xffffffff8265ca30 process=0xffff800020adc000 user=0xffff800023bca000, vmspace=0xfffffd807f00b2e0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 99618 30991 65454 0 7 0 syz-executor.1 *99618 104569 65454 0 7 0x4000000 syz-executor.1 40992 213553 13631 0 2 0 syz-executor.0 40992 455467 13631 0 3 0x4000080 fsleep syz-executor.0 65454 506679 59641 0 3 0x82 nanosleep syz-executor.1 13631 391090 59641 0 3 0x82 nanosleep syz-executor.0 94475 360002 0 0 3 0x14200 acct acct 45171 239760 1 0 3 0x100083 ttyopn getty 71897 123438 0 0 3 0x14200 bored sosplice 59641 222190 92183 0 3 0x82 thrsleep syz-fuzzer 59641 152645 92183 0 3 0x4000082 thrsleep syz-fuzzer 59641 411712 92183 0 3 0x4000082 thrsleep syz-fuzzer 59641 477237 92183 0 3 0x4000082 thrsleep syz-fuzzer 59641 189516 92183 0 3 0x4000082 kqread syz-fuzzer 59641 332721 92183 0 3 0x4000082 thrsleep syz-fuzzer 59641 161302 92183 0 3 0x4000082 thrsleep syz-fuzzer 59641 12176 92183 0 3 0x4000082 thrsleep syz-fuzzer 59641 459684 92183 0 3 0x4000082 thrsleep syz-fuzzer 59641 451424 92183 0 3 0x4000082 thrsleep syz-fuzzer 92183 123510 64531 0 3 0x10008a pause ksh 64531 274539 95493 0 3 0x92 select sshd 95493 336183 1 0 3 0x80 select sshd 42615 363551 34897 74 3 0x100092 bpf pflogd 34897 484049 1 0 3 0x80 netio pflogd 80794 369466 14858 73 3 0x100090 kqread syslogd 14858 481120 1 0 3 0x100082 netio syslogd 98248 486490 1 77 3 0x100090 poll dhclient 44688 214487 1 0 3 0x80 poll dhclient 94505 199135 0 0 2 0x14200 zerothread 61308 486216 0 0 3 0x14200 aiodoned aiodoned 67323 11194 0 0 3 0x14200 syncer update 47522 65344 0 0 3 0x14200 cleaner cleaner 1593 383576 0 0 3 0x14200 reaper reaper 25984 284337 0 0 3 0x14200 pgdaemon pagedaemon 10026 176322 0 0 3 0x14200 bored crynlk 48709 156516 0 0 3 0x14200 bored crypto 58145 404597 0 0 3 0x40014200 acpi0 acpi0 29417 365451 0 0 3 0x40014200 idle1 36952 49521 0 0 3 0x14200 bored softnet 67862 143590 0 0 3 0x14200 bored systqmp 6179 169186 0 0 3 0x14200 bored systq 21481 66171 0 0 3 0x40014200 bored softclock 59836 103960 0 0 3 0x40014200 idle0 25537 17411 0 0 3 0x14200 bored smr 1 426903 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 99618 (syz-executor.1) thread 0xffff800020ace298 (104569) exclusive rwlock netlock r = 0 (0xffffffff824ef928) #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 (0xffffffff82670948) #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 9591 6447K 7147K 78643K 14685 0 0 pcb 13 8K 8K 78643K 420 0 0 rtable 144 14K 15K 78643K 1288 0 0 ifaddr 94 19K 20K 78643K 356 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1562 0 0 iov 0 0K 24K 78643K 1363 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1226 77K 77K 78643K 2838 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 20 10K 10K 78643K 32 0 0 sem 12 0K 1K 78643K 2044 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 2841 0 0 sigio 0 0K 0K 78643K 28 0 0 proc 62 63K 83K 78643K 1162 0 0 subproc 32 2K 2K 78643K 255 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 194 0 0 in_multi 38 2K 2K 78643K 293 0 0 ether_multi 1 0K 0K 78643K 28 0 0 mrt 0 0K 0K 78643K 16 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 533 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 153 170K 172K 78643K 9803 0 0 UVM aobj 130 5K 6K 78643K 133 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 420 0 0 NDP 21 0K 0K 78643K 112 0 0 temp 236 3561K 4200K 78643K 64523 0 0 kqueue 0 0K 0K 78643K 17 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 37 0 30 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1010 0 1008 1 0 1 1 0 8 0 rtentry 112 239 0 183 2 0 2 2 0 8 0 unpcb 120 3062 0 3048 2 1 1 2 0 8 0 syncache 264 14 0 14 6 6 0 1 0 8 0 tcpqe 32 2 0 2 2 2 0 1 0 8 0 tcpcb 544 851 0 846 10 9 1 5 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 7136 0 7127 14 12 2 6 0 8 1 rttmr 72 5 0 5 3 3 0 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 4 0 4 1 1 0 1 0 8 0 nd6 48 37 0 33 3 2 1 1 0 8 0 pkpcb 40 24 0 24 6 6 0 1 0 8 0 ppxss 1128 34 0 34 8 7 1 1 0 8 1 pffrag 232 174 0 55 10 3 7 7 0 482 0 pffrnode 88 57 0 55 4 3 1 1 0 8 0 pffrent 40 1887 0 1733 5 3 2 2 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 154 0 131 1 0 1 1 0 8 0 pfstkey 112 154 0 131 3 0 3 3 0 8 0 pfstate 328 154 0 131 7 1 6 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 6 0 4 6 4 2 4 0 8 0 art_heap4 256 1059 0 821 20 5 15 16 0 8 0 art_table 32 1065 0 825 4 2 2 3 0 8 0 art_node 16 238 0 190 1 0 1 1 0 8 0 sysvmsgpl 40 60 0 20 1 0 1 1 0 8 0 semapl 112 2042 0 2032 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5104 0 3688 46 0 46 46 0 8 0 ffsino 272 5104 0 3688 95 0 95 95 0 8 0 nchpl 144 10201 0 8589 61 1 60 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 28741 0 28741 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 18 0 0 3 0 3 3 0 8 0 vmpool 552 30 0 12 3 1 2 2 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 28396 0 28396 17 16 1 7 0 8 1 plimitpl 152 152 0 144 1 0 1 1 0 8 0 sigapl 432 3001 0 2985 3 1 2 3 0 8 0 futexpl 56 67065 0 67064 1 0 1 1 0 8 0 knotepl 112 474 0 455 3 2 1 3 0 8 0 kqueuepl 104 426 0 424 1 0 1 1 0 8 0 pipepl 112 1352 0 1331 3 2 1 2 0 8 0 fdescpl 488 3002 0 2985 3 0 3 3 0 8 0 filepl 152 24657 0 24552 14 9 5 7 0 8 0 lockfpl 104 632 0 631 1 0 1 1 0 8 0 lockfspl 48 238 0 237 1 0 1 1 0 8 0 sessionpl 112 32 0 21 1 0 1 1 0 8 0 pgrppl 48 92 0 81 1 0 1 1 0 8 0 ucredpl 96 1984 0 1975 1 0 1 1 0 8 0 zombiepl 144 2985 0 2985 1 0 1 1 0 8 1 processpl 896 3019 0 2985 4 0 4 4 0 8 0 procpl 632 8343 0 8298 5 0 5 5 0 8 0 srpgc 64 32 0 32 9 8 1 1 0 8 1 sosppl 128 34 0 34 8 7 1 1 0 8 1 sockpl 384 11249 0 11224 30 25 5 10 0 8 1 mcl64k 65536 539 0 0 68 3 65 68 0 8 1 mcl16k 16384 14 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 14 0 0 1 0 1 1 0 8 0 mcl8k 8192 18 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 353 0 0 29 1 28 28 0 8 0 mtagpl 80 40 0 0 1 0 1 1 0 8 0 mbufpl 256 973 0 0 54 0 54 54 0 8 0 bufpl 256 12276 0 5218 442 0 442 442 0 8 0 anonpl 16 317327 0 301531 140 58 82 98 0 124 0 amapchunkpl 152 18094 0 17947 37 30 7 20 0 158 0 amappl16 192 14962 0 13848 124 66 58 68 0 8 1 amappl15 184 280 0 280 3 2 1 1 0 8 1 amappl14 176 1253 0 1246 1 0 1 1 0 8 0 amappl13 168 792 0 791 1 0 1 1 0 8 0 amappl12 160 244 0 243 1 0 1 1 0 8 0 amappl11 152 93 0 78 1 0 1 1 0 8 0 amappl10 144 142 0 135 1 0 1 1 0 8 0 amappl9 136 789 0 784 1 0 1 1 0 8 0 amappl8 128 351 0 312 3 1 2 2 0 8 0 amappl7 120 230 0 221 1 0 1 1 0 8 0 amappl6 112 71 0 62 1 0 1 1 0 8 0 amappl5 104 493 0 478 1 0 1 1 0 8 0 amappl4 96 3895 0 3863 1 0 1 1 0 8 0 amappl3 88 831 0 826 1 0 1 1 0 8 0 amappl2 80 23509 0 23427 3 1 2 3 0 8 0 amappl1 72 75054 0 74608 25 15 10 20 0 8 0 amappl 80 8825 0 8768 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 132 0 3 3 0 3 3 0 8 0 uaddrrnd 24 3032 0 2985 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3032 0 2985 1 0 1 1 0 8 0 vmmpekpl 168 24356 0 24316 3 1 2 3 0 8 0 vmmpepl 168 381966 0 379572 254 110 144 144 0 357 36 vmsppl 368 3001 0 2985 2 0 2 2 0 8 0 pdppl 4096 6071 0 6012 8 0 8 8 0 8 0 pvpl 32 870218 0 851133 284 94 190 226 0 265 1 pmappl 232 3031 0 2997 5 2 3 3 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 751 0 26 21 0 21 21 0 8 0