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 *454918 982 0 0 0x4000000 0 syz-executor.1 269649 66388 0 0x2 0 1 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(ffffffff822069c1,ffffffff821d46da,350,ffffffff821ac919) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800020b52d78,83,ffff800020b52e18,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800020b52e88,fffffd806f6ca828,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6ca828,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6ca828,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800020b52f60,fffffd806889b020,fffffd806f6ca7a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6ca7a8,fffffd806889b000) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8064e324c0,4,0,fffffd806889b000,0,ffff800020acf8d0) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020acf8d0,ffff800020b53108,ffff800020b53150) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800020b531d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b531d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,85e1a4f8010) at Xsyscall+0x128 end of kernel end trace frame: 0x860c7115ef0, 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,ffff800020b52d78,83,ffff800020b52e18,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800020b52e88,fffffd806f6ca828,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6ca828,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6ca828,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800020b52f60,fffffd806889b020,fffffd806f6ca7a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6ca7a8,fffffd806889b000) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8064e324c0,4,0,fffffd806889b000,0,ffff800020acf8d0) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020acf8d0,ffff800020b53108,ffff800020b53150) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800020b531d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b531d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,85e1a4f8010) at Xsyscall+0x128 end of kernel end trace frame: 0x860c7115ef0, count: -12 ddb{0}> show registers rdi 0xffffffff81194cb7 db_enter+0x17 rsi 0x35d3 __ALIGN_SIZE+0x25d3 rbp 0xffff800020b52b90 rbx 0xffff800020b52c40 rdx 0x35d4 __ALIGN_SIZE+0x25d4 rcx 0xffff80002195e000 rax 0xffff80002195e000 r8 0xffffffff81f734ef kprintf+0x16f r9 0x1 r10 0x25 r11 0x71d106ab4e412555 r12 0x3000000008 r13 0xffff800020b52ba0 r14 0x100 r15 0x1 rip 0xffffffff81194cb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b52b80 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=454918 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020acfb48,0xffff800020acef00 process=0xffff800020add180 user=0xffff800020b4e000, vmspace=0xfffffd807f00aa10 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 35086 233423 26844 0 2 0 syz-executor.0 982 266516 66388 0 2 0 syz-executor.1 * 982 454918 66388 0 7 0x4000000 syz-executor.1 26844 64430 35379 0 3 0x82 nanosleep syz-executor.0 66388 269649 35379 0 7 0x2 syz-executor.1 52689 475571 0 0 3 0x14200 bored sosplice 35379 261135 90607 0 3 0x82 thrsleep syz-fuzzer 35379 87896 90607 0 3 0x4000082 nanosleep syz-fuzzer 35379 491299 90607 0 3 0x4000082 thrsleep syz-fuzzer 35379 335888 90607 0 3 0x4000082 kqread syz-fuzzer 35379 363466 90607 0 3 0x4000082 thrsleep syz-fuzzer 35379 338426 90607 0 3 0x4000082 thrsleep syz-fuzzer 35379 160696 90607 0 3 0x4000082 thrsleep syz-fuzzer 35379 448909 90607 0 3 0x4000082 thrsleep syz-fuzzer 35379 422989 90607 0 3 0x4000082 thrsleep syz-fuzzer 35379 447831 90607 0 3 0x4000082 nanosleep syz-fuzzer 90607 99484 42161 0 3 0x10008a pause ksh 42161 272240 52860 0 3 0x92 select sshd 87361 411552 1 0 3 0x100083 ttyin getty 52860 252561 1 0 3 0x80 select sshd 70281 323889 71005 74 3 0x100092 bpf pflogd 71005 281224 1 0 3 0x80 netio pflogd 25151 423209 48803 73 3 0x100090 kqread syslogd 48803 459578 1 0 3 0x100082 netio syslogd 18038 422428 1 77 3 0x100090 poll dhclient 70508 80548 1 0 3 0x80 poll dhclient 13262 506158 0 0 2 0x14200 zerothread 49950 4700 0 0 3 0x14200 aiodoned aiodoned 49817 393344 0 0 3 0x14200 syncer update 61247 302815 0 0 3 0x14200 cleaner cleaner 12671 100679 0 0 3 0x14200 reaper reaper 38264 446562 0 0 3 0x14200 pgdaemon pagedaemon 30903 135004 0 0 3 0x14200 bored crynlk 50405 239257 0 0 3 0x14200 bored crypto 59366 229403 0 0 3 0x40014200 acpi0 acpi0 92765 500680 0 0 3 0x40014200 idle1 75824 475596 0 0 3 0x14200 bored softnet 43783 58522 0 0 3 0x14200 bored systqmp 82743 405516 0 0 3 0x14200 bored systq 7980 235945 0 0 3 0x40014200 bored softclock 35393 504529 0 0 3 0x40014200 idle0 14045 287624 0 0 3 0x14200 bored smr 1 110248 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 982 (syz-executor.1) thread 0xffff800020acf8d0 (454918) 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 9573 6445K 15277K 78643K 16202 0 0 pcb 13 8K 8K 78643K 327 0 0 rtable 107 13K 14K 78643K 1210 0 0 ifaddr 80 17K 19K 78643K 331 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1550 0 0 iov 0 0K 32K 78643K 295 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1223 77K 77K 78643K 3335 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 21 0 0 VM map 11 5K 6K 78643K 19 0 0 sem 12 0K 0K 78643K 2567 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 2317 0 0 sigio 0 0K 0K 78643K 14 0 0 proc 60 63K 95K 78643K 1013 0 0 subproc 32 2K 2K 78643K 221 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 222 0 0 in_multi 15 0K 2K 78643K 253 0 0 ether_multi 1 0K 0K 78643K 12 0 0 mrt 0 0K 0K 78643K 6 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 453 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 132 71K 80K 78643K 8329 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 2K 78643K 1175 0 0 NDP 19 0K 0K 78643K 109 0 0 temp 221 3564K 4204K 78643K 68923 0 0 kqueue 0 0K 0K 78643K 8 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 42 0 33 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 168 0 166 1 0 1 1 0 8 0 rtentry 112 235 0 196 2 0 2 2 0 8 0 unpcb 120 757 0 745 1 0 1 1 0 8 0 syncache 264 8 0 8 3 3 0 1 0 8 0 tcpcb 544 4052 0 4047 9 8 1 2 0 8 0 inpcb 280 7223 0 7211 6 4 2 3 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 36 0 36 2 1 1 1 0 8 1 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 32 0 32 7 6 1 1 0 8 1 pffrag 232 45 0 45 8 7 1 1 0 482 1 pffrnode 88 45 0 45 8 7 1 1 0 8 1 pffrent 40 1233 0 1233 8 7 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 152 0 109 1 0 1 1 0 8 0 pfstkey 112 153 0 110 2 0 2 2 0 8 0 pfstate 328 153 0 110 6 0 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 3 0 1 3 1 2 3 0 8 0 art_heap4 256 1066 0 886 20 4 16 16 0 8 4 art_table 32 1069 0 887 3 0 3 3 0 8 1 art_node 16 230 0 193 1 0 1 1 0 8 0 sysvmsgpl 40 62 0 51 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 2565 0 2555 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 4397 0 2980 46 0 46 46 0 8 0 ffsino 272 4397 0 2980 95 0 95 95 0 8 0 nchpl 144 7705 0 7259 61 42 19 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 30037 0 30037 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 9 0 0 2 0 2 2 0 8 0 vmpool 552 17 0 8 1 0 1 1 0 8 0 scsiplug 64 5 0 5 2 1 1 1 0 8 1 scxspl 192 25389 0 25389 21 17 4 7 0 8 4 plimitpl 152 131 0 123 1 0 1 1 0 8 0 sigapl 432 2482 0 2466 3 1 2 3 0 8 0 futexpl 56 73524 0 73524 1 0 1 1 0 8 1 knotepl 112 397 0 378 3 2 1 3 0 8 0 kqueuepl 104 1382 0 1380 1 0 1 1 0 8 0 pipepl 112 5022 0 5003 8 7 1 2 0 8 0 fdescpl 488 2483 0 2466 3 0 3 3 0 8 0 filepl 152 24789 0 24688 18 13 5 8 0 8 1 lockfpl 104 452 0 451 1 0 1 1 0 8 0 lockfspl 48 156 0 155 1 0 1 1 0 8 0 sessionpl 112 29 0 18 1 0 1 1 0 8 0 pgrppl 48 42 0 31 1 0 1 1 0 8 0 ucredpl 96 1430 0 1420 1 0 1 1 0 8 0 zombiepl 144 2467 0 2467 1 0 1 1 0 8 1 processpl 896 2500 0 2467 4 0 4 4 0 8 0 procpl 632 6981 0 6938 5 0 5 5 0 8 0 srpgc 64 15 0 15 7 6 1 1 0 8 1 sosppl 128 68 0 68 8 7 1 1 0 8 1 sockpl 384 8169 0 8147 14 10 4 6 0 8 1 mcl64k 65536 25 0 0 3 0 3 3 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 20 0 0 2 0 2 2 0 8 0 mcl9k 9216 14 0 0 1 0 1 1 0 8 0 mcl8k 8192 11 0 0 2 0 2 2 0 8 0 mcl4k 4096 20 0 0 3 0 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 153 0 0 19 1 18 19 0 8 0 mtagpl 80 49 0 0 1 0 1 1 0 8 0 mbufpl 256 698 0 0 39 0 39 39 0 8 0 bufpl 256 13692 0 6634 442 0 442 442 0 8 0 anonpl 16 272600 0 255129 137 43 94 97 0 124 11 amapchunkpl 152 16462 0 16310 42 25 17 21 0 158 9 amappl16 192 12270 0 11181 109 47 62 67 0 8 7 amappl15 184 296 0 295 1 0 1 1 0 8 0 amappl14 176 170 0 161 1 0 1 1 0 8 0 amappl13 168 553 0 553 1 1 0 1 0 8 0 amappl12 160 134 0 133 1 0 1 1 0 8 0 amappl11 152 198 0 183 1 0 1 1 0 8 0 amappl10 144 499 0 494 1 0 1 1 0 8 0 amappl9 136 1072 0 1067 1 0 1 1 0 8 0 amappl8 128 650 0 611 2 0 2 2 0 8 0 amappl7 120 565 0 556 1 0 1 1 0 8 0 amappl6 112 187 0 175 1 0 1 1 0 8 0 amappl5 104 348 0 334 1 0 1 1 0 8 0 amappl4 96 3257 0 3225 1 0 1 1 0 8 0 amappl3 88 259 0 252 1 0 1 1 0 8 0 amappl2 80 18419 0 18343 3 1 2 3 0 8 0 amappl1 72 64347 0 63899 25 15 10 20 0 8 0 amappl 80 7457 0 7404 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 2500 0 2466 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2500 0 2466 1 0 1 1 0 8 0 vmmpekpl 168 29701 0 29662 2 0 2 2 0 8 0 vmmpepl 168 318182 0 315837 213 70 143 143 0 357 35 vmsppl 368 2482 0 2466 2 0 2 2 0 8 0 pdppl 4096 5007 0 4957 7 0 7 7 0 8 0 pvpl 32 762668 0 741898 285 65 220 226 0 265 31 pmappl 232 2499 0 2474 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 653 0 17 19 0 19 19 0 8 0