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 * 65392 6638 0 0 0x4000000 0K syz-executor.1 36322 11032 0 0x14000 0x200 1 reaper 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(ffffffff822092b2,ffffffff821d5feb,350,ffffffff821ade45) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800024bc1878,83,ffff800024bc1918,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800024bc1988,fffffd806f6d0b70,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d0b70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d0b70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800024bc1a60,fffffd8062b5a120,fffffd806f6d0af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d0af0,fffffd8062b5a100) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806f6d1900,4,0,fffffd8062b5a100,0,ffff800020ab0290) at udp_usrreq+0x560 sys_connect(ffff800020ab0290,ffff800024bc1be8,ffff800024bc1c30) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800024bc1cb0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024bc1cb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,ca585432010) at Xsyscall+0x128 end of kernel end trace frame: 0xca78c080c50, 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(ffffffff822092b2,ffffffff821d5feb,350,ffffffff821ade45) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800024bc1878,83,ffff800024bc1918,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800024bc1988,fffffd806f6d0b70,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d0b70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d0b70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800024bc1a60,fffffd8062b5a120,fffffd806f6d0af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d0af0,fffffd8062b5a100) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806f6d1900,4,0,fffffd8062b5a100,0,ffff800020ab0290) at udp_usrreq+0x560 sys_connect(ffff800020ab0290,ffff800024bc1be8,ffff800024bc1c30) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800024bc1cb0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024bc1cb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,ca585432010) at Xsyscall+0x128 end of kernel end trace frame: 0xca78c080c50, count: -12 ddb{0}> show registers rdi 0xffffffff815a92f7 db_enter+0x17 rsi 0x423f __ALIGN_SIZE+0x323f rbp 0xffff800024bc1690 rbx 0xffff800024bc1740 rdx 0x4240 __ALIGN_SIZE+0x3240 rcx 0xffff800021b6a000 rax 0xffff800021b6a000 r8 0xffffffff821269af kprintf+0x16f r9 0x1 r10 0x25 r11 0x27743eaffe756623 r12 0x3000000008 r13 0xffff800024bc16a0 r14 0x100 r15 0x1 rip 0xffffffff815a92f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024bc1680 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=65392 stat=onproc flags process=0 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0508,0xffffffff8266aad8 process=0xffff800020a8ae10 user=0xffff800024bbc000, vmspace=0xfffffd807f00a730 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 6638 185085 39704 0 2 0 syz-executor.1 * 6638 65392 39704 0 7 0x4000000 syz-executor.1 39704 272908 39320 0 2 0x482 syz-executor.1 51669 194176 39320 0 3 0x82 nanosleep syz-executor.0 14443 328276 1 0 3 0x100083 ttyin getty 47452 444069 0 0 3 0x14200 bored sosplice 39320 274123 57722 0 3 0x82 thrsleep syz-fuzzer 39320 467973 57722 0 3 0x4000082 nanosleep syz-fuzzer 39320 57744 57722 0 3 0x4000082 thrsleep syz-fuzzer 39320 288073 57722 0 3 0x4000082 thrsleep syz-fuzzer 39320 337216 57722 0 3 0x4000082 thrsleep syz-fuzzer 39320 455058 57722 0 3 0x4000082 thrsleep syz-fuzzer 39320 89412 57722 0 3 0x4000082 thrsleep syz-fuzzer 39320 260645 57722 0 3 0x4000082 thrsleep syz-fuzzer 39320 78033 57722 0 3 0x4000082 thrsleep syz-fuzzer 39320 79431 57722 0 3 0x4000082 thrsleep syz-fuzzer 39320 405074 57722 0 3 0x4000082 kqread syz-fuzzer 57722 353302 32592 0 3 0x10008a pause ksh 32592 357665 71928 0 3 0x92 select sshd 71928 497055 1 0 3 0x80 select sshd 16763 314069 84440 74 3 0x100092 bpf pflogd 84440 135175 1 0 3 0x80 netio pflogd 82307 309965 12553 73 3 0x100090 kqread syslogd 12553 14996 1 0 3 0x100082 netio syslogd 41122 120692 1 77 3 0x100090 poll dhclient 81970 54122 1 0 3 0x80 poll dhclient 51199 403942 0 0 2 0x14200 zerothread 48611 271572 0 0 3 0x14200 aiodoned aiodoned 47014 402493 0 0 3 0x14200 syncer update 89632 258920 0 0 3 0x14200 cleaner cleaner 11032 36322 0 0 7 0x14200 reaper 78110 446524 0 0 3 0x14200 pgdaemon pagedaemon 63604 208961 0 0 3 0x14200 bored crynlk 22213 466787 0 0 3 0x14200 bored crypto 46392 281224 0 0 3 0x40014200 acpi0 acpi0 55190 50924 0 0 3 0x40014200 idle1 5675 313827 0 0 3 0x14200 bored softnet 35282 333406 0 0 3 0x14200 bored systqmp 98063 462282 0 0 3 0x14200 bored systq 34527 217191 0 0 3 0x40014200 bored softclock 38472 474136 0 0 3 0x40014200 idle0 16982 516200 0 0 3 0x14200 bored smr 1 357774 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 6638 (syz-executor.1) thread 0xffff800020ab0290 (65392) exclusive rwlock netlock r = 0 (0xffffffff824895c8) #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 (0xffffffff82663580) #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 9525 6418K 7391K 78643K 12928 0 0 pcb 13 8K 8K 78643K 94 0 0 rtable 97 3K 4K 78643K 460 0 0 ifaddr 58 13K 13K 78643K 110 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1503 0 0 iov 0 0K 16K 78643K 91 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1223 77K 77K 78643K 1876 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 10 0 0 VM map 7 3K 3K 78643K 9 0 0 sem 12 1K 1K 78643K 12 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 444 0 0 sigio 0 0K 0K 78643K 1 0 0 proc 60 63K 95K 78643K 584 0 0 subproc 32 2K 2K 78643K 68 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 45 0 0 in_multi 23 1K 2K 78643K 90 0 0 ether_multi 1 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 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 282 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 134 64K 64K 78643K 2550 0 0 UVM aobj 70 3K 3K 78643K 70 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 73 0 0 NDP 12 0K 0K 78643K 33 0 0 temp 171 3559K 3628K 78643K 18720 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 16 0 12 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 79 0 77 1 0 1 1 0 8 0 rtentry 112 93 0 55 2 0 2 2 0 8 0 unpcb 120 394 0 384 2 0 2 2 0 8 1 syncache 264 10 0 10 4 3 1 1 0 8 1 tcpqe 32 54 0 54 2 1 1 1 0 8 1 tcpcb 544 422 0 413 6 5 1 6 0 8 0 inpcb 280 1026 0 1013 7 5 2 7 0 8 1 nd6 48 10 0 8 1 0 1 1 0 8 0 ppxss 1128 4 0 4 2 2 0 1 0 8 0 pffrag 232 15 0 15 2 1 1 1 0 482 1 pffrnode 88 15 0 15 2 1 1 1 0 8 1 pffrent 40 414 0 414 2 1 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 51 0 11 1 0 1 1 0 8 0 pfstkey 112 51 0 11 2 0 2 2 0 8 0 pfstate 328 51 0 10 4 0 4 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 395 0 210 15 1 14 15 0 8 2 art_table 32 397 0 210 2 0 2 2 0 8 0 art_node 16 91 0 56 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 2 1 0 1 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 68 0 0 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2060 0 654 46 0 46 46 0 8 0 ffsino 272 2060 0 654 96 1 95 95 0 8 0 nchpl 144 2946 0 1339 62 1 61 61 0 8 0 uvmvnodes 72 2666 0 0 49 0 49 49 0 8 0 vnodes 208 2666 0 0 141 0 141 141 0 8 0 namei 1024 9144 0 9144 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 5 0 0 1 0 1 1 0 8 0 vmpool 552 7 0 2 1 0 1 1 0 8 0 scxspl 192 8632 0 8632 9 7 2 7 0 8 2 plimitpl 152 40 0 32 1 0 1 1 0 8 0 sigapl 432 637 0 622 3 1 2 3 0 8 0 futexpl 56 11581 0 11581 1 0 1 1 0 8 1 knotepl 112 205 0 186 1 0 1 1 0 8 0 kqueuepl 104 263 0 261 1 0 1 1 0 8 0 pipepl 112 406 0 387 1 0 1 1 0 8 0 fdescpl 488 638 0 622 3 0 3 3 0 8 0 filepl 152 5592 0 5491 10 4 6 9 0 8 2 lockfpl 104 155 0 154 1 0 1 1 0 8 0 lockfspl 48 43 0 42 1 0 1 1 0 8 0 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 43 0 32 1 0 1 1 0 8 0 ucredpl 96 552 0 542 1 0 1 1 0 8 0 zombiepl 144 622 0 621 1 0 1 1 0 8 0 processpl 896 654 0 621 4 0 4 4 0 8 0 procpl 632 1655 0 1611 5 0 5 5 0 8 1 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 48 0 48 3 2 1 1 0 8 1 sockpl 384 1504 0 1479 16 8 8 11 0 8 5 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 15 0 0 2 0 2 2 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 152 0 0 18 0 18 18 0 8 0 mtagpl 80 35 0 0 1 0 1 1 0 8 0 mbufpl 256 374 0 0 22 0 22 22 0 8 0 bufpl 256 7398 0 1313 381 0 381 381 0 8 0 anonpl 16 89819 0 73292 102 9 93 99 0 124 8 amapchunkpl 152 3913 0 3759 9 1 8 9 0 158 0 amappl16 192 3615 0 2499 75 16 59 68 0 8 2 amappl15 184 359 0 359 1 0 1 1 0 8 1 amappl14 176 207 0 201 1 0 1 1 0 8 0 amappl13 168 2 0 1 1 0 1 1 0 8 0 amappl12 160 7 0 6 2 1 1 1 0 8 0 amappl11 152 62 0 47 1 0 1 1 0 8 0 amappl10 144 11 0 6 1 0 1 1 0 8 0 amappl9 136 627 0 623 1 0 1 1 0 8 0 amappl8 128 220 0 185 2 0 2 2 0 8 0 amappl7 120 49 0 44 1 0 1 1 0 8 0 amappl6 112 69 0 57 1 0 1 1 0 8 0 amappl5 104 149 0 135 1 0 1 1 0 8 0 amappl4 96 766 0 733 1 0 1 1 0 8 0 amappl3 88 417 0 411 1 0 1 1 0 8 0 amappl2 80 4272 0 4194 3 1 2 3 0 8 0 amappl1 72 24019 0 23560 25 15 10 20 0 8 0 amappl 80 1947 0 1894 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 69 0 0 2 0 2 2 0 8 0 uaddrrnd 24 645 0 622 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 645 0 622 1 0 1 1 0 8 0 vmmpekpl 168 9591 0 9556 2 0 2 2 0 8 0 vmmpepl 168 87871 0 85482 175 26 149 149 0 357 45 vmsppl 368 637 0 621 2 0 2 2 0 8 0 pdppl 4096 1297 0 1251 6 0 6 6 0 8 0 pvpl 32 262662 0 242916 229 6 223 228 0 265 27 pmappl 232 644 0 623 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 562 0 10 16 0 16 16 0 8 0