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 354534 45022 0 0 0 0 syz-executor.1 * 72611 45022 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(ffffffff82205bea,ffffffff821ce864,350,ffffffff821a64b5) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800023a16b38,83,ffff800023a16bd8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023a16c48,fffffd806f6cc5f8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cc5f8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cc5f8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023a16d20,fffffd8065016320,fffffd806f6cc578) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cc578,fffffd8065016300) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd805d0471b0,4,0,fffffd8065016300,0,ffff800020acea00) at udp_usrreq+0x560 sys_connect(ffff800020acea00,ffff800023a16ea8,ffff800023a16ef0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023a16f70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023a16f70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,43e4fce1010) at Xsyscall+0x128 end of kernel end trace frame: 0x4405877f3a0, 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(ffffffff82205bea,ffffffff821ce864,350,ffffffff821a64b5) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800023a16b38,83,ffff800023a16bd8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023a16c48,fffffd806f6cc5f8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cc5f8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cc5f8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023a16d20,fffffd8065016320,fffffd806f6cc578) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cc578,fffffd8065016300) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd805d0471b0,4,0,fffffd8065016300,0,ffff800020acea00) at udp_usrreq+0x560 sys_connect(ffff800020acea00,ffff800023a16ea8,ffff800023a16ef0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023a16f70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023a16f70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,43e4fce1010) at Xsyscall+0x128 end of kernel end trace frame: 0x4405877f3a0, count: -12 ddb{1}> show registers rdi 0xffffffff81800b47 db_enter+0x17 rsi 0x3d5d __ALIGN_SIZE+0x2d5d rbp 0xffff800023a16950 rbx 0xffff800023a16a00 rdx 0x3d5e __ALIGN_SIZE+0x2d5e rcx 0xffff800020b52000 rax 0xffff800020b52000 r8 0xffffffff8149825f kprintf+0x16f r9 0x1 r10 0x25 r11 0xa770b6b22281f4a9 r12 0x3000000008 r13 0xffff800023a16960 r14 0x100 r15 0x1 rip 0xffffffff81800b48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023a16940 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=72611 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020acec78,0xffffffff82662210 process=0xffff800020a8b510 user=0xffff800023a12000, 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 45022 354534 86707 0 7 0 syz-executor.1 *45022 72611 86707 0 7 0x4000000 syz-executor.1 45535 171794 8551 0 3 0x82 nanosleep syz-executor.0 86707 318256 8551 0 3 0x82 nanosleep syz-executor.1 17486 412453 0 0 3 0x14200 acct acct 69140 414608 1 0 3 0x100083 ttyin getty 83691 434502 0 0 3 0x14200 bored sosplice 8551 104419 73657 0 3 0x82 thrsleep syz-fuzzer 8551 348204 73657 0 3 0x4000082 nanosleep syz-fuzzer 8551 478362 73657 0 3 0x4000082 thrsleep syz-fuzzer 8551 254380 73657 0 3 0x4000082 thrsleep syz-fuzzer 8551 234639 73657 0 3 0x4000082 thrsleep syz-fuzzer 8551 133307 73657 0 3 0x4000082 thrsleep syz-fuzzer 8551 243466 73657 0 3 0x4000082 thrsleep syz-fuzzer 8551 446889 73657 0 3 0x4000082 thrsleep syz-fuzzer 8551 357133 73657 0 3 0x4000082 kqread syz-fuzzer 8551 422890 73657 0 3 0x4000082 nanosleep syz-fuzzer 73657 301822 1100 0 3 0x10008a pause ksh 1100 186096 56504 0 3 0x92 select sshd 56504 467949 1 0 3 0x80 select sshd 11339 244922 38967 74 3 0x100092 bpf pflogd 38967 500621 1 0 3 0x80 netio pflogd 11236 73587 95548 73 3 0x100090 kqread syslogd 95548 370142 1 0 3 0x100082 netio syslogd 12312 120142 1 77 3 0x100090 poll dhclient 8318 69234 1 0 3 0x80 poll dhclient 2315 220456 0 0 3 0x14200 pgzero zerothread 33905 408648 0 0 3 0x14200 aiodoned aiodoned 42635 344039 0 0 3 0x14200 syncer update 57556 388660 0 0 3 0x14200 cleaner cleaner 18245 325823 0 0 3 0x14200 reaper reaper 36663 24442 0 0 3 0x14200 pgdaemon pagedaemon 30240 226026 0 0 3 0x14200 bored crynlk 85502 368344 0 0 3 0x14200 bored crypto 76000 56287 0 0 3 0x40014200 acpi0 acpi0 20907 162665 0 0 3 0x40014200 idle1 87999 484129 0 0 3 0x14200 bored softnet 64515 349150 0 0 3 0x14200 bored systqmp 40525 13383 0 0 3 0x14200 bored systq 41405 39226 0 0 3 0x40014200 bored softclock 54869 301715 0 0 3 0x40014200 idle0 31008 32187 0 0 3 0x14200 bored smr 1 454331 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 45022 (syz-executor.1) thread 0xffff800020acea00 (72611) exclusive rwlock netlock r = 0 (0xffffffff8250cdb8) #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 (0xffffffff82624c28) #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 9654 6485K 11142K 78643K 108962 0 0 pcb 13 12K 14K 78643K 4202 0 0 rtable 207 19K 20K 78643K 9555 0 0 ifaddr 145 40K 44K 78643K 2929 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2286 0 0 iov 0 0K 32K 78643K 3814 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1220 77K 77K 78643K 30459 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 236 0 0 VM map 139 69K 70K 78643K 224 0 0 sem 12 0K 1K 78643K 4383 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 17447 0 0 sigio 0 0K 0K 78643K 193 0 0 proc 61 63K 95K 78643K 6759 0 0 subproc 32 2K 2K 78643K 1887 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 1949 0 0 in_multi 56 3K 4K 78643K 1972 0 0 ether_multi 1 0K 0K 78643K 214 0 0 mrt 1 0K 0K 78643K 128 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 126 556K 556K 78643K 126 0 0 exec 0 0K 1K 78643K 3495 0 0 pfkey data 0 0K 0K 78643K 4 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 354 1149K 1154K 78643K 63102 0 0 UVM aobj 130 8K 8K 78643K 131 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 4378 0 0 NDP 25 0K 1K 78643K 934 0 0 temp 238 3565K 4209K 78643K 425110 0 0 kqueue 0 0K 0K 78643K 123 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 244 0 238 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1363 0 1361 1 0 1 1 0 8 0 rtentry 112 1626 0 1540 3 0 3 3 0 8 0 unpcb 120 10355 0 10329 24 22 2 2 0 8 0 syncache 264 110 0 110 43 43 0 1 0 8 0 tcpqe 32 64 0 64 24 24 0 1 0 8 0 tcpcb 544 22023 0 22019 145 142 3 13 0 8 2 inpcb 280 39884 0 39876 139 136 3 13 0 8 2 rttmr 72 43 0 43 15 15 0 1 0 8 0 ip6q 72 12 0 12 7 7 0 1 0 8 0 ip6af 40 26 0 26 8 8 0 1 0 8 0 nd6 48 266 0 264 4 3 1 1 0 8 0 pkpcb 40 141 0 141 37 37 0 1 0 8 0 swfcl 56 14 0 0 1 0 1 1 0 8 0 ppxss 1128 424 0 424 41 41 0 1 0 8 0 pffrag 232 475 0 475 45 45 0 1 0 482 0 pffrnode 88 475 0 475 45 45 0 1 0 8 0 pffrent 40 14220 0 14220 45 45 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 1406 0 1334 1 0 1 1 0 8 0 pfstkey 112 1408 0 1336 5 2 3 3 0 8 0 pfstate 328 1408 0 1334 13 6 7 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 19 0 11 12 4 8 8 0 8 0 art_heap4 256 7329 0 7023 90 67 23 28 0 8 0 art_table 32 7348 0 7034 9 6 3 4 0 8 0 art_node 16 1615 0 1556 1 0 1 1 0 8 0 sysvmsgpl 40 62 0 35 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 4381 0 4371 1 0 1 1 0 8 0 shmpl 112 129 0 1 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 27837 0 26335 52 3 49 49 0 8 0 ffsino 272 27837 0 26335 101 0 101 101 0 8 0 nchpl 144 55800 0 55333 61 41 20 61 0 8 0 uvmvnodes 72 8737 0 0 159 0 159 159 0 8 0 vnodes 208 8737 0 0 460 0 460 460 0 8 0 namei 1024 213895 0 213895 6 5 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 139 0 2 18 0 18 18 0 8 0 vmpool 552 222 0 85 15 5 10 10 0 8 0 scsiplug 64 28 0 28 20 20 0 1 0 8 0 scxspl 192 178903 0 178903 109 107 2 7 0 8 2 plimitpl 152 1449 0 1441 1 0 1 1 0 8 0 sigapl 432 17330 0 17315 4 2 2 3 0 8 0 futexpl 56 465843 0 465843 4 3 1 1 0 8 1 knotepl 112 4168 0 4149 11 10 1 3 0 8 0 kqueuepl 104 13084 0 13082 22 21 1 4 0 8 0 pipepl 112 17140 0 17121 56 54 2 3 0 8 1 fdescpl 488 17331 0 17315 3 0 3 3 0 8 0 filepl 152 187470 0 187368 156 150 6 14 0 8 1 lockfpl 104 6197 0 6196 1 0 1 1 0 8 0 lockfspl 48 1944 0 1943 1 0 1 1 0 8 0 sessionpl 112 139 0 128 1 0 1 1 0 8 0 pgrppl 48 329 0 318 1 0 1 1 0 8 0 ucredpl 96 22098 0 22089 1 0 1 1 0 8 0 zombiepl 144 17319 0 17318 4 3 1 1 0 8 0 processpl 896 17352 0 17318 5 1 4 5 0 8 0 procpl 632 56140 0 56096 5 0 5 5 0 8 0 srpgc 64 189 0 189 49 48 1 1 0 8 1 sosppl 128 426 0 426 56 55 1 1 0 8 1 sockpl 384 52049 0 52013 206 198 8 23 0 8 2 mcl64k 65536 1015 0 0 105 63 42 66 0 8 1 mcl16k 16384 57 0 0 7 4 3 3 0 8 0 mcl12k 12288 85 0 0 2 0 2 2 0 8 0 mcl9k 9216 33 0 0 2 0 2 2 0 8 0 mcl8k 8192 73 0 0 10 7 3 3 0 8 0 mcl4k 4096 72 0 0 4 1 3 3 0 8 0 mcl2k2 2112 17 0 0 2 0 2 2 0 8 0 mcl2k 2048 286 0 0 28 17 11 28 0 8 0 mtagpl 80 241 0 0 2 1 1 2 0 8 0 mbufpl 256 1416 0 0 40 0 40 40 0 8 0 bufpl 256 68260 0 59422 553 0 553 553 0 8 0 anonpl 16 2178414 0 2138568 559 388 171 183 0 124 4 amapchunkpl 152 137394 0 136190 278 227 51 61 0 158 4 amappl16 192 94400 0 92948 552 471 81 86 0 8 7 amappl15 184 1883 0 1879 1 0 1 1 0 8 0 amappl14 176 4022 0 4015 1 0 1 1 0 8 0 amappl13 168 2121 0 2121 19 18 1 1 0 8 1 amappl12 160 2547 0 2547 18 18 0 1 0 8 0 amappl11 152 2061 0 2045 1 0 1 1 0 8 0 amappl10 144 1654 0 1645 1 0 1 1 0 8 0 amappl9 136 4674 0 4671 1 0 1 1 0 8 0 amappl8 128 4399 0 4312 4 1 3 3 0 8 0 amappl7 120 2106 0 2094 1 0 1 1 0 8 0 amappl6 112 1780 0 1761 1 0 1 1 0 8 0 amappl5 104 3697 0 3683 1 0 1 1 0 8 0 amappl4 96 16875 0 16835 8 6 2 2 0 8 1 amappl3 88 4730 0 4715 1 0 1 1 0 8 0 amappl2 80 134074 0 133993 3 0 3 3 0 8 0 amappl1 72 400295 0 399856 26 16 10 20 0 8 0 amappl 80 58725 0 58600 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 130 0 1 3 0 3 3 0 8 0 uaddrrnd 24 17553 0 17315 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 17553 0 17315 2 0 2 2 0 8 0 vmmpekpl 168 131453 0 131398 3 0 3 3 0 8 0 vmmpepl 168 2237778 0 2234797 650 471 179 184 0 357 38 vmsppl 368 17330 0 17315 2 0 2 2 0 8 0 pdppl 4096 35113 0 34937 32 9 23 23 0 8 0 pvpl 32 5477882 0 5455322 803 595 208 252 0 265 6 pmappl 232 17552 0 17400 11 1 10 10 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1142 0 322 24 0 24 24 0 8 0