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 341920 8882 0 0 0 1 syz-executor.1 *278593 54350 0 0 0x4000000 0K 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(ffffffff82208f7b,ffffffff821d48a2,350,ffffffff821acbc4) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800023b83818,83,ffff800023b838b8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023b83928,fffffd806f6cf4e0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cf4e0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cf4e0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023b83a00,fffffd80685d5820,fffffd806f6cf460) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cf460,fffffd80685d5800) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd806f6d0480,4,0,fffffd80685d5800,0,ffff800020a5e280) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020a5e280,ffff800023b83ba8,ffff800023b83bf0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023b83c70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b83c70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,49df506d010) at Xsyscall+0x128 end of kernel end trace frame: 0x4a0ca5b4a80, 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(ffffffff82208f7b,ffffffff821d48a2,350,ffffffff821acbc4) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800023b83818,83,ffff800023b838b8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023b83928,fffffd806f6cf4e0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cf4e0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cf4e0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023b83a00,fffffd80685d5820,fffffd806f6cf460) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cf460,fffffd80685d5800) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd806f6d0480,4,0,fffffd80685d5800,0,ffff800020a5e280) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020a5e280,ffff800023b83ba8,ffff800023b83bf0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023b83c70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b83c70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,49df506d010) at Xsyscall+0x128 end of kernel end trace frame: 0x4a0ca5b4a80, count: -12 ddb{0}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x431f __ALIGN_SIZE+0x331f rbp 0xffff800023b83630 rbx 0xffff800023b836e0 rdx 0x4320 __ALIGN_SIZE+0x3320 rcx 0xffff800021d72000 rax 0xffff800021d72000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0x57ed816759a9426 r12 0x3000000008 r13 0xffff800023b83640 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b83620 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=278593 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020a5f150,0xffff800020ab18d8 process=0xffff800020a8ae10 user=0xffff800023b7e000, vmspace=0xfffffd807f00a450 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 8882 341920 82379 0 7 0 syz-executor.1 8882 172522 82379 0 3 0x4000080 fsleep syz-executor.1 54350 266787 29131 0 2 0 syz-executor.0 *54350 278593 29131 0 7 0x4000000 syz-executor.0 82379 302289 21431 0 3 0x82 nanosleep syz-executor.1 29131 209278 21431 0 3 0x82 nanosleep syz-executor.0 38170 334919 1 0 3 0x100083 ttyin getty 85677 247890 0 0 3 0x14200 acct acct 66348 468791 0 0 3 0x14200 bored sosplice 21431 210122 88192 0 3 0x82 thrsleep syz-fuzzer 21431 421601 88192 0 3 0x4000082 thrsleep syz-fuzzer 21431 152871 88192 0 3 0x4000082 thrsleep syz-fuzzer 21431 46086 88192 0 3 0x4000082 thrsleep syz-fuzzer 21431 46574 88192 0 3 0x4000082 thrsleep syz-fuzzer 21431 194372 88192 0 3 0x4000082 thrsleep syz-fuzzer 21431 243400 88192 0 3 0x4000082 thrsleep syz-fuzzer 21431 404609 88192 0 3 0x4000082 thrsleep syz-fuzzer 21431 520386 88192 0 3 0x4000082 kqread syz-fuzzer 21431 18560 88192 0 3 0x4000082 thrsleep syz-fuzzer 88192 360065 15664 0 3 0x10008a pause ksh 15664 13320 14492 0 3 0x92 select sshd 14492 124058 1 0 3 0x80 select sshd 19913 147032 78994 74 3 0x100092 bpf pflogd 78994 70492 1 0 3 0x80 netio pflogd 65171 514758 86490 73 3 0x100090 kqread syslogd 86490 101263 1 0 3 0x100082 netio syslogd 55609 78542 1 77 3 0x100090 poll dhclient 65820 255783 1 0 3 0x80 poll dhclient 6971 506164 0 0 2 0x14200 zerothread 37875 296905 0 0 3 0x14200 aiodoned aiodoned 27732 106931 0 0 3 0x14200 syncer update 88099 298400 0 0 3 0x14200 cleaner cleaner 83016 5312 0 0 3 0x14200 reaper reaper 62272 344182 0 0 3 0x14200 pgdaemon pagedaemon 73955 435875 0 0 3 0x14200 bored crynlk 14320 427222 0 0 3 0x14200 bored crypto 62214 152238 0 0 3 0x40014200 acpi0 acpi0 16225 343054 0 0 3 0x40014200 idle1 93510 102991 0 0 3 0x14200 bored softnet 31291 438944 0 0 3 0x14200 bored systqmp 10620 489177 0 0 3 0x14200 bored systq 32604 83979 0 0 3 0x40014200 bored softclock 25506 107904 0 0 3 0x40014200 idle0 30787 133338 0 0 3 0x14200 bored smr 1 428668 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 54350 (syz-executor.0) thread 0xffff800020a5e280 (278593) exclusive rwlock netlock r = 0 (0xffffffff824dc718) #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 (0xffffffff82648ec0) #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 9547 6419K 8348K 78643K 17573 0 0 pcb 13 8K 8K 78643K 297 0 0 rtable 95 12K 13K 78643K 919 0 0 ifaddr 67 15K 17K 78643K 292 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1521 0 0 iov 0 0K 16K 78643K 288 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1244 78K 79K 78643K 3277 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 11 0 0 VM map 15 7K 7K 78643K 23 0 0 sem 12 1K 1K 78643K 294 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1201 0 0 sigio 0 0K 0K 78643K 21 0 0 proc 61 63K 83K 78643K 781 0 0 subproc 32 2K 2K 78643K 123 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 96 0 0 in_multi 15 0K 2K 78643K 161 0 0 ether_multi 1 0K 0K 78643K 17 0 0 mrt 1 0K 0K 78643K 11 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 402 0 0 pfkey data 0 0K 4K 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 147 104K 106K 78643K 5252 0 0 UVM aobj 130 4K 4K 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 0K 78643K 291 0 0 NDP 15 0K 0K 78643K 86 0 0 temp 192 3560K 4193K 78643K 22931 0 0 kqueue 0 0K 0K 78643K 40 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 23 0 18 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 550 0 547 1 0 1 1 0 8 0 rtentry 112 157 0 124 2 0 2 2 0 8 0 unpcb 120 772 0 760 2 1 1 2 0 8 0 syncache 264 5 0 5 2 1 1 1 0 8 1 tcpqe 32 129 0 129 2 1 1 1 0 8 1 tcpcb 544 722 0 717 5 4 1 2 0 8 0 inpcb 280 1952 0 1943 8 6 2 3 0 8 1 rttmr 72 2 0 2 2 2 0 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 21 0 21 1 0 1 1 0 8 1 pkpcb 40 7 0 7 2 2 0 1 0 8 0 swfcl 56 6 0 0 1 0 1 1 0 8 0 ppxss 1128 37 0 37 4 4 0 1 0 8 0 pffrag 232 34 0 34 4 3 1 1 0 482 1 pffrnode 88 34 0 34 4 3 1 1 0 8 1 pffrent 40 1307 0 1307 4 3 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 97 0 42 1 0 1 1 0 8 0 pfstkey 112 97 0 42 2 0 2 2 0 8 0 pfstate 328 97 0 42 5 0 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 4 0 2 4 2 2 4 0 8 0 art_heap4 256 687 0 539 17 4 13 16 0 8 0 art_table 32 691 0 541 2 0 2 2 0 8 0 art_node 16 154 0 123 1 0 1 1 0 8 0 sysvmsgpl 40 47 0 34 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 292 0 282 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 3293 0 1875 46 0 46 46 0 8 0 ffsino 272 3293 0 1875 95 0 95 95 0 8 0 nchpl 144 5482 0 3857 61 0 61 61 0 8 0 uvmvnodes 72 5096 0 0 93 0 93 93 0 8 0 vnodes 208 5096 0 0 269 0 269 269 0 8 0 namei 1024 20342 0 20342 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 13 0 0 2 0 2 2 0 8 0 vmpool 552 21 0 8 1 0 1 1 0 8 0 scsiplug 64 2 0 2 1 0 1 1 0 8 1 scxspl 192 16795 0 16795 15 13 2 5 0 8 2 plimitpl 152 112 0 104 1 0 1 1 0 8 0 sigapl 432 1385 0 1369 3 1 2 3 0 8 0 futexpl 56 33108 0 33107 1 0 1 1 0 8 0 knotepl 112 454 0 435 4 3 1 2 0 8 0 kqueuepl 104 545 0 543 2 1 1 2 0 8 0 pipepl 112 1040 0 1019 3 2 1 2 0 8 0 fdescpl 488 1386 0 1369 3 0 3 3 0 8 0 filepl 152 13498 0 13387 10 5 5 7 0 8 0 lockfpl 104 431 0 430 1 0 1 1 0 8 0 lockfspl 48 158 0 157 1 0 1 1 0 8 0 sessionpl 112 24 0 13 1 0 1 1 0 8 0 pgrppl 48 90 0 79 1 0 1 1 0 8 0 ucredpl 96 1318 0 1309 1 0 1 1 0 8 0 zombiepl 144 1369 0 1369 1 0 1 1 0 8 1 processpl 896 1403 0 1369 4 0 4 4 0 8 0 procpl 632 4148 0 4103 6 1 5 5 0 8 1 srpgc 64 6 0 6 2 1 1 1 0 8 1 sosppl 128 27 0 26 7 6 1 1 0 8 0 sockpl 384 3311 0 3287 13 9 4 6 0 8 1 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 9 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 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 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 157 0 0 19 0 19 19 0 8 0 mtagpl 80 50 0 0 1 0 1 1 0 8 0 mbufpl 256 363 0 0 20 0 20 20 0 8 0 bufpl 256 10369 0 3311 442 0 442 442 0 8 0 anonpl 16 168292 0 147970 106 17 89 100 0 124 0 amapchunkpl 152 10524 0 10351 34 20 14 15 0 158 5 amappl16 192 7047 0 5865 78 17 61 70 0 8 1 amappl15 184 644 0 641 1 0 1 1 0 8 0 amappl14 176 259 0 250 1 0 1 1 0 8 0 amappl13 168 9 0 9 2 2 0 1 0 8 0 amappl12 160 9 0 6 1 0 1 1 0 8 0 amappl11 152 470 0 455 1 0 1 1 0 8 0 amappl10 144 15 0 9 1 0 1 1 0 8 0 amappl9 136 774 0 771 1 0 1 1 0 8 0 amappl8 128 360 0 320 2 0 2 2 0 8 0 amappl7 120 69 0 61 1 0 1 1 0 8 0 amappl6 112 466 0 457 1 0 1 1 0 8 0 amappl5 104 174 0 160 1 0 1 1 0 8 0 amappl4 96 1498 0 1468 1 0 1 1 0 8 0 amappl3 88 517 0 508 1 0 1 1 0 8 0 amappl2 80 10262 0 10179 3 1 2 3 0 8 0 amappl1 72 40620 0 40161 26 16 10 20 0 8 0 amappl 80 4526 0 4470 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 1407 0 1369 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1407 0 1369 1 0 1 1 0 8 0 vmmpekpl 168 15539 0 15503 2 0 2 2 0 8 0 vmmpepl 168 181201 0 178667 223 73 150 151 0 357 39 vmsppl 368 1385 0 1369 2 0 2 2 0 8 0 pdppl 4096 2821 0 2767 8 1 7 7 0 8 0 pvpl 32 475417 0 452599 237 36 201 226 0 265 10 pmappl 232 1406 0 1377 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 631 0 14 18 0 18 18 0 8 0