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 258967 49321 0 0 0 0 syz-executor.0 *467941 49321 0 0 0x4000000 1K 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(ffffffff822092b2,ffffffff821d5feb,350,ffffffff821ade45) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800023b8b148,83,ffff800023b8b1e8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023b8b258,fffffd806f6cd710,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cd710,fffffd80618d61f8,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cd710,fffffd80618d61f8,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd80618d6100,0,fffffd806f6cd700,20,0,fffffd806f6cd690) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd80618d6100,fffffd80692fd010,ffff800023b8b468,ffff800022b58000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80692fd010,9,fffffd80618d6100,0,0,ffff800020ab0c70) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80692fd010,0,ffff800023b8b688,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ab0c70,3,ffff800023b8b688,0,ffff800023b8b770) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ab0c70,ffff800023b8b728,ffff800023b8b770) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800023b8b7f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b8b7f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,2659bde6010) at Xsyscall+0x128 end of kernel end trace frame: 0x2682e2b2ba0, count: 1 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(ffffffff822092b2,ffffffff821d5feb,350,ffffffff821ade45) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800023b8b148,83,ffff800023b8b1e8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023b8b258,fffffd806f6cd710,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cd710,fffffd80618d61f8,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cd710,fffffd80618d61f8,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd80618d6100,0,fffffd806f6cd700,20,0,fffffd806f6cd690) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd80618d6100,fffffd80692fd010,ffff800023b8b468,ffff800022b58000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80692fd010,9,fffffd80618d6100,0,0,ffff800020ab0c70) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80692fd010,0,ffff800023b8b688,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ab0c70,3,ffff800023b8b688,0,ffff800023b8b770) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ab0c70,ffff800023b8b728,ffff800023b8b770) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800023b8b7f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b8b7f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,2659bde6010) at Xsyscall+0x128 end of kernel end trace frame: 0x2682e2b2ba0, count: -14 ddb{1}> show registers rdi 0xffffffff815a92f7 db_enter+0x17 rsi 0x3c01 __ALIGN_SIZE+0x2c01 rbp 0xffff800023b8af60 rbx 0xffff800023b8b010 rdx 0x3c02 __ALIGN_SIZE+0x2c02 rcx 0xffff800022b58000 rax 0xffff800022b58000 r8 0xffffffff821269af kprintf+0x16f r9 0x1 r10 0x25 r11 0x3f384c804ac7da89 r12 0x3000000008 r13 0xffff800023b8af70 r14 0x100 r15 0x1 rip 0xffffffff815a92f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b8af50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=467941 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab09f8,0xffffffff8266aad8 process=0xffff800020add500 user=0xffff800023b86000, vmspace=0xfffffd807f00a5c0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 49321 258967 27107 0 7 0 syz-executor.0 *49321 467941 27107 0 7 0x4000000 syz-executor.0 15863 324719 37993 0 3 0x80 nanosleep syz-executor.1 15863 154492 37993 0 3 0x4000080 select syz-executor.1 15863 179515 37993 0 3 0x4000080 fsleep syz-executor.1 25953 409688 1 0 3 0x100083 ttyin getty 27107 31160 53474 0 3 0x82 nanosleep syz-executor.0 37993 85271 53474 0 3 0x82 nanosleep syz-executor.1 40391 256215 0 0 3 0x14200 bored sosplice 53474 347384 72973 0 3 0x82 thrsleep syz-fuzzer 53474 364722 72973 0 3 0x4000082 nanosleep syz-fuzzer 53474 164941 72973 0 3 0x4000082 kqread syz-fuzzer 53474 70153 72973 0 3 0x4000082 thrsleep syz-fuzzer 53474 515536 72973 0 3 0x4000082 thrsleep syz-fuzzer 53474 6202 72973 0 3 0x4000082 thrsleep syz-fuzzer 53474 359264 72973 0 3 0x4000082 thrsleep syz-fuzzer 53474 194120 72973 0 3 0x4000082 thrsleep syz-fuzzer 53474 384038 72973 0 3 0x4000082 thrsleep syz-fuzzer 53474 361731 72973 0 3 0x4000082 thrsleep syz-fuzzer 72973 207726 96676 0 3 0x10008a pause ksh 96676 429727 92288 0 3 0x92 select sshd 92288 418929 1 0 3 0x80 select sshd 19428 121655 4665 74 3 0x100092 bpf pflogd 4665 447920 1 0 3 0x80 netio pflogd 3063 136374 88938 73 3 0x100090 kqread syslogd 88938 373182 1 0 3 0x100082 netio syslogd 93428 326214 1 77 3 0x100090 poll dhclient 51323 143505 1 0 3 0x80 poll dhclient 51076 459999 0 0 3 0x14200 pgzero zerothread 69911 184512 0 0 3 0x14200 aiodoned aiodoned 54219 364358 0 0 3 0x14200 syncer update 94544 367692 0 0 3 0x14200 cleaner cleaner 74072 105439 0 0 3 0x14200 reaper reaper 48727 172548 0 0 3 0x14200 pgdaemon pagedaemon 7408 56978 0 0 3 0x14200 bored crynlk 28964 142219 0 0 3 0x14200 bored crypto 14149 250962 0 0 3 0x40014200 acpi0 acpi0 46172 28909 0 0 3 0x40014200 idle1 46153 444505 0 0 3 0x14200 bored softnet 44982 157939 0 0 3 0x14200 bored systqmp 20507 461301 0 0 3 0x14200 bored systq 97230 24542 0 0 3 0x40014200 bored softclock 53528 187124 0 0 3 0x40014200 idle0 12317 457422 0 0 3 0x14200 bored smr 1 19405 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 49321 (syz-executor.0) thread 0xffff800020ab0c70 (467941) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82663580) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rt_clone+0x5c sys/net/route.c:266 #2 rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] #2 rtalloc_mpath+0xba sys/net/route.c:359 #3 ip_output+0x4f2 sys/netinet/ip_output.c:204 #4 rip_output+0x252 sys/netinet/raw_ip.c:289 #5 rip_usrreq+0x46a sys/netinet/raw_ip.c:538 #6 sosend+0x645 sys/kern/uipc_socket.c:524 #7 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #8 sys_write+0x83 sys/kern/sys_generic.c:284 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 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 sosend+0x51b sys/kern/uipc_socket.c:512 #3 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #4 sys_write+0x83 sys/kern/sys_generic.c:284 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9592 7097K 9010K 78643K 27683 0 0 pcb 14 8K 9K 78643K 816 0 0 rtable 109 13K 13K 78643K 1958 0 0 ifaddr 94 20K 21K 78643K 538 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1623 0 0 iov 0 0K 24K 78643K 735 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1235 78K 78K 78643K 6219 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 50 0 0 VM map 19 9K 9K 78643K 26 0 0 sem 12 0K 1K 78643K 695 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 3434 0 0 sigio 0 0K 0K 78643K 37 0 0 proc 62 63K 95K 78643K 1626 0 0 subproc 32 2K 2K 78643K 391 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 213 0 0 in_multi 26 1K 2K 78643K 442 0 0 ether_multi 1 0K 0K 78643K 31 0 0 mrt 0 0K 0K 78643K 14 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 789 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 179 155K 155K 78643K 12702 0 0 UVM aobj 130 8K 8K 78643K 133 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 2 0K 1K 78643K 764 0 0 NDP 20 0K 0K 78643K 176 0 0 temp 230 3565K 4204K 78643K 100723 0 0 kqueue 0 0K 0K 78643K 19 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 60 0 55 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 267 0 265 1 0 1 1 0 8 0 rtentry 112 384 0 344 2 0 2 2 0 8 0 unpcb 120 4856 0 4842 4 3 1 2 0 8 0 syncache 264 19 0 19 7 7 0 1 0 8 0 tcpqe 32 81 0 81 5 5 0 1 0 8 0 tcpcb 544 1501 0 1497 12 10 2 6 0 8 1 inpcb 280 6561 0 6551 19 17 2 7 0 8 1 rttmr 72 7 0 6 5 4 1 1 0 8 0 ip6q 72 2 0 1 2 1 1 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 63 0 61 2 1 1 1 0 8 0 pkpcb 40 13 0 13 5 4 1 1 0 8 1 ppxss 1128 62 0 62 15 14 1 1 0 8 1 pffrag 232 89 0 89 9 8 1 1 0 482 1 pffrnode 88 89 0 89 9 8 1 1 0 8 1 pffrent 40 2799 0 2799 9 8 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 222 0 170 1 0 1 1 0 8 0 pfstkey 112 222 0 170 2 0 2 2 0 8 0 pfstate 328 222 0 170 6 0 6 6 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 1651 0 1442 33 18 15 16 0 8 1 art_table 32 1653 0 1442 2 0 2 2 0 8 0 art_node 16 382 0 347 1 0 1 1 0 8 0 sysvmsgpl 40 25 0 20 1 0 1 1 0 8 0 semapl 112 690 0 680 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 7346 0 5926 46 0 46 46 0 8 0 ffsino 272 7346 0 5926 96 0 96 96 0 8 0 nchpl 144 14036 0 13552 61 40 21 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 48662 0 48662 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 17 0 0 3 0 3 3 0 8 0 vmpool 552 24 0 7 4 2 2 2 0 8 0 scsiplug 64 4 0 4 2 2 0 1 0 8 0 scxspl 192 43011 0 43011 20 18 2 5 0 8 2 plimitpl 152 247 0 239 1 0 1 1 0 8 0 sigapl 432 3571 0 3555 3 1 2 3 0 8 0 futexpl 56 91667 0 91666 2 1 1 1 0 8 0 knotepl 112 629 0 610 2 1 1 2 0 8 0 kqueuepl 104 1439 0 1437 1 0 1 1 0 8 0 pipepl 112 3844 0 3825 7 6 1 2 0 8 0 fdescpl 488 3572 0 3555 3 0 3 3 0 8 0 filepl 152 38144 0 38040 23 17 6 9 0 8 1 lockfpl 104 1066 0 1065 1 0 1 1 0 8 0 lockfspl 48 375 0 374 1 0 1 1 0 8 0 sessionpl 112 41 0 30 1 0 1 1 0 8 0 pgrppl 48 91 0 80 1 0 1 1 0 8 0 ucredpl 96 3328 0 3319 1 0 1 1 0 8 0 zombiepl 144 3556 0 3556 2 1 1 1 0 8 1 processpl 896 3589 0 3556 4 0 4 4 0 8 0 procpl 632 10785 0 10740 5 0 5 5 0 8 0 srpgc 64 33 0 33 8 8 0 1 0 8 0 sosppl 128 102 0 102 14 14 0 1 0 8 0 sockpl 384 11828 0 11802 33 28 5 11 0 8 1 mcl64k 65536 277 0 0 34 3 31 34 0 8 0 mcl16k 16384 14 0 0 2 0 2 2 0 8 0 mcl12k 12288 29 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 202 0 0 22 0 22 22 0 8 0 mtagpl 80 60 0 0 1 0 1 1 0 8 0 mbufpl 256 777 0 0 42 0 42 42 0 8 0 bufpl 256 15955 0 8897 442 0 442 442 0 8 0 anonpl 16 412300 0 391869 161 76 85 99 0 124 1 amapchunkpl 152 24488 0 24305 31 22 9 14 0 158 0 amappl16 192 17939 0 16807 147 88 59 69 0 8 2 amappl15 184 779 0 774 1 0 1 1 0 8 0 amappl14 176 309 0 304 1 0 1 1 0 8 0 amappl13 168 323 0 322 1 0 1 1 0 8 0 amappl12 160 128 0 127 4 3 1 1 0 8 0 amappl11 152 1114 0 1099 1 0 1 1 0 8 0 amappl10 144 216 0 208 1 0 1 1 0 8 0 amappl9 136 1456 0 1453 1 0 1 1 0 8 0 amappl8 128 1042 0 988 2 0 2 2 0 8 0 amappl7 120 322 0 312 1 0 1 1 0 8 0 amappl6 112 1071 0 1056 1 0 1 1 0 8 0 amappl5 104 449 0 435 1 0 1 1 0 8 0 amappl4 96 3821 0 3781 3 1 2 2 0 8 1 amappl3 88 474 0 467 1 0 1 1 0 8 0 amappl2 80 27270 0 27188 3 0 3 3 0 8 0 amappl1 72 90286 0 89837 25 15 10 20 0 8 0 amappl 80 11456 0 11393 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 3596 0 3555 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3596 0 3555 1 0 1 1 0 8 0 vmmpekpl 168 35631 0 35590 3 0 3 3 0 8 1 vmmpepl 168 462397 0 459948 267 122 145 157 0 357 34 vmsppl 368 3571 0 3555 2 0 2 2 0 8 0 pdppl 4096 7199 0 7141 8 0 8 8 0 8 0 pvpl 32 1127799 0 1104312 342 144 198 229 0 265 7 pmappl 232 3595 0 3562 4 2 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 710 0 35 20 0 20 20 0 8 0