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 276463 29668 0 0 0 0 syz-executor.0 *159771 29668 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,ffff800022bf6cb8,83,ffff800022bf6d58,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800022bf6dc8,fffffd806f6d4828,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d4828,fffffd807cdacbf0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d4828,fffffd807cdacbf0,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd807cdacb00,0,fffffd806f6d4818,20,0,fffffd806f6d47a8) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd807cdacb00,fffffd8062c8bb00,ffff800022bf6fd8,ffff800021d88000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8062c8bb00,9,fffffd807cdacb00,0,0,ffff800020ab18c8) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8062c8bb00,0,ffff800022bf7140,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020ab18c8,d,ffff800022bf7220,0,ffff800022bf7300) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020ab18c8,ffff800022bf72b8,ffff800022bf7300) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800022bf7380) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bf7380) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd7,0,6,69795e97010) at Xsyscall+0x128 end of kernel end trace frame: 0x699d34f7a40, 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,ffff800022bf6cb8,83,ffff800022bf6d58,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800022bf6dc8,fffffd806f6d4828,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d4828,fffffd807cdacbf0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d4828,fffffd807cdacbf0,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd807cdacb00,0,fffffd806f6d4818,20,0,fffffd806f6d47a8) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd807cdacb00,fffffd8062c8bb00,ffff800022bf6fd8,ffff800021d88000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8062c8bb00,9,fffffd807cdacb00,0,0,ffff800020ab18c8) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8062c8bb00,0,ffff800022bf7140,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020ab18c8,d,ffff800022bf7220,0,ffff800022bf7300) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020ab18c8,ffff800022bf72b8,ffff800022bf7300) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800022bf7380) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bf7380) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd7,0,6,69795e97010) at Xsyscall+0x128 end of kernel end trace frame: 0x699d34f7a40, count: -14 ddb{1}> show registers rdi 0xffffffff815a92f7 db_enter+0x17 rsi 0x3c17 __ALIGN_SIZE+0x2c17 rbp 0xffff800022bf6ad0 rbx 0xffff800022bf6b80 rdx 0x3c18 __ALIGN_SIZE+0x2c18 rcx 0xffff800021d88000 rax 0xffff800021d88000 r8 0xffffffff821269af kprintf+0x16f r9 0x1 r10 0x25 r11 0x14cd1d5b774ee53f r12 0x3000000008 r13 0xffff800022bf6ae0 r14 0x100 r15 0x1 rip 0xffffffff815a92f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022bf6ac0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=159771 stat=onproc flags process=0 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac0778,0xffffffff8266aad8 process=0xffff800020a4b888 user=0xffff800022bf2000, vmspace=0xfffffd807f00a450 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 29668 276463 24166 0 7 0 syz-executor.0 *29668 159771 24166 0 7 0x4000000 syz-executor.0 12829 369484 573 60929 3 0x90 nanosleep syz-executor.1 12829 450924 573 60929 3 0x4000090 netio syz-executor.1 12829 472538 573 60929 3 0x4000090 fsleep syz-executor.1 573 503547 63744 0 3 0x82 nanosleep syz-executor.1 24166 57738 63744 0 3 0x82 nanosleep syz-executor.0 69413 137026 0 0 3 0x14200 acct acct 85200 187517 1 0 3 0x100083 ttyin getty 92568 3002 0 0 3 0x14200 bored sosplice 63744 186095 42733 0 3 0x82 thrsleep syz-fuzzer 63744 219572 42733 0 3 0x4000082 nanosleep syz-fuzzer 63744 191555 42733 0 3 0x4000082 thrsleep syz-fuzzer 63744 29799 42733 0 3 0x4000082 thrsleep syz-fuzzer 63744 366054 42733 0 3 0x4000082 thrsleep syz-fuzzer 63744 132081 42733 0 3 0x4000082 thrsleep syz-fuzzer 63744 284340 42733 0 3 0x4000082 thrsleep syz-fuzzer 63744 161109 42733 0 3 0x4000082 nanosleep syz-fuzzer 63744 77176 42733 0 3 0x4000082 kqread syz-fuzzer 63744 429575 42733 0 3 0x4000082 thrsleep syz-fuzzer 42733 420218 11206 0 3 0x10008a pause ksh 11206 118875 50768 0 3 0x92 select sshd 50768 214818 1 0 3 0x80 select sshd 79854 147429 17352 74 3 0x100092 bpf pflogd 17352 9400 1 0 3 0x80 netio pflogd 35023 68446 78330 73 3 0x100090 kqread syslogd 78330 452890 1 0 3 0x100082 netio syslogd 52238 68804 1 77 3 0x100090 poll dhclient 61574 502333 1 0 3 0x80 poll dhclient 22901 257801 0 0 3 0x14200 pgzero zerothread 70962 79555 0 0 3 0x14200 aiodoned aiodoned 99782 511454 0 0 3 0x14200 syncer update 57799 519358 0 0 3 0x14200 cleaner cleaner 48318 474436 0 0 3 0x14200 reaper reaper 51714 67077 0 0 3 0x14200 pgdaemon pagedaemon 12260 179013 0 0 3 0x14200 bored crynlk 51423 453963 0 0 3 0x14200 bored crypto 74938 223830 0 0 3 0x40014200 acpi0 acpi0 64241 463546 0 0 3 0x40014200 idle1 82517 300414 0 0 3 0x14200 bored softnet 68521 251546 0 0 3 0x14200 bored systqmp 5581 229330 0 0 3 0x14200 bored systq 18998 125848 0 0 3 0x40014200 bored softclock 80276 63428 0 0 3 0x40014200 idle0 49238 516696 0 0 3 0x14200 bored smr 1 508916 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 29668 (syz-executor.0) thread 0xffff800020ab18c8 (159771) 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 sendit+0x52b sys/kern/uipc_syscalls.c:662 #8 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #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 sendit+0x52b sys/kern/uipc_syscalls.c:662 #4 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #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 9621 6483K 8277K 78643K 32403 0 0 pcb 14 12K 14K 78643K 1980 0 0 rtable 172 17K 18K 78643K 10894 0 0 ifaddr 112 33K 38K 78643K 3845 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2144 0 0 iov 0 0K 32K 78643K 7135 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1222 77K 78K 78643K 10818 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 764 0 0 VM map 44 22K 22K 78643K 83 0 0 sem 12 0K 1K 78643K 2111 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 19089 0 0 sigio 0 0K 0K 78643K 186 0 0 proc 62 63K 95K 78643K 3669 0 0 subproc 32 2K 2K 78643K 935 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 2654 0 0 in_multi 27 1K 2K 78643K 1493 0 0 ether_multi 1 0K 0K 78643K 87 0 0 mrt 0 0K 0K 78643K 48 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 2512 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 227 388K 392K 78643K 58802 0 0 UVM aobj 130 4K 4K 78643K 132 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 2068 0 0 NDP 23 0K 1K 78643K 1093 0 0 temp 249 3565K 4205K 78643K 250183 0 0 kqueue 0 0K 0K 78643K 81 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 309 0 304 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1457 0 1455 1 0 1 1 0 8 0 rtentry 112 1326 0 1259 5 2 3 3 0 8 0 unpcb 120 17257 0 17231 15 14 1 2 0 8 0 syncache 264 47 0 47 18 18 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 41 0 41 14 14 0 1 0 8 0 tcpcb 544 22063 0 22057 73 71 2 12 0 8 1 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 2 0 2 1 1 0 1 0 8 0 inpcb 280 50480 0 50469 96 90 6 13 0 8 5 rttmr 72 14 0 14 9 9 0 1 0 8 0 ip6q 72 5 0 5 3 3 0 1 0 8 0 ip6af 40 10 0 10 2 2 0 1 0 8 0 nd6 48 124 0 124 6 5 1 1 0 8 1 pkpcb 40 35 0 35 10 9 1 1 0 8 1 swfcl 56 8 0 0 1 0 1 1 0 8 0 ppxss 1128 842 0 842 30 29 1 1 0 8 1 pffrag 232 1425 0 1425 84 83 1 50 0 482 1 pffrnode 88 236 0 236 35 34 1 1 0 8 1 pffrent 40 8742 0 8742 44 43 1 10 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 694 0 531 2 0 2 2 0 8 0 pfstkey 112 694 0 531 6 1 5 5 0 8 0 pfstate 328 694 0 531 20 6 14 14 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 17 0 9 11 3 8 8 0 8 0 art_heap4 256 4783 0 4497 51 30 21 23 0 8 0 art_table 32 4800 0 4506 3 0 3 3 0 8 0 art_node 16 1320 0 1267 1 0 1 1 0 8 0 sysvmsgpl 40 81 0 76 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 2109 0 2099 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 31880 0 30420 48 0 48 48 0 8 0 ffsino 272 31880 0 30420 99 1 98 98 0 8 0 nchpl 144 62036 0 61560 61 42 19 61 0 8 0 uvmvnodes 72 7164 0 0 131 0 131 131 0 8 0 vnodes 208 7164 0 0 378 0 378 378 0 8 0 namei 1024 200485 0 200485 5 4 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 43 0 1 6 0 6 6 0 8 0 vmpool 552 81 0 39 5 1 4 4 0 8 1 scsiplug 64 7 0 7 5 5 0 1 0 8 0 scxspl 192 169359 0 169359 73 70 3 7 0 8 3 plimitpl 152 660 0 652 1 0 1 1 0 8 0 sigapl 432 19134 0 19118 3 1 2 3 0 8 0 futexpl 56 405528 0 405527 4 3 1 1 0 8 0 knotepl 112 2337 0 2318 6 5 1 2 0 8 0 kqueuepl 104 2771 0 2768 5 4 1 4 0 8 0 pipepl 112 7392 0 7371 8 6 2 2 0 8 0 fdescpl 488 19135 0 19118 3 0 3 3 0 8 0 filepl 152 159587 0 159463 83 76 7 14 0 8 2 lockfpl 104 4713 0 4712 1 0 1 1 0 8 0 lockfspl 48 1822 0 1821 1 0 1 1 0 8 0 sessionpl 112 77 0 66 1 0 1 1 0 8 0 pgrppl 48 162 0 151 1 0 1 1 0 8 0 ucredpl 96 12947 0 12937 1 0 1 1 0 8 0 zombiepl 144 19121 0 19121 4 3 1 1 0 8 1 processpl 896 19155 0 19121 4 0 4 4 0 8 0 procpl 632 55151 0 55105 16 11 5 5 0 8 1 srpgc 64 102 0 102 32 32 0 1 0 8 0 sosppl 128 271 0 271 33 32 1 1 0 8 1 sockpl 384 69602 0 69563 157 149 8 22 0 8 4 mcl64k 65536 766 0 0 90 85 5 65 0 8 0 mcl16k 16384 41 0 0 5 3 2 3 0 8 0 mcl12k 12288 49 0 0 3 1 2 2 0 8 0 mcl9k 9216 41 0 0 3 1 2 2 0 8 0 mcl8k 8192 49 0 0 5 1 4 5 0 8 0 mcl4k 4096 49 0 0 5 1 4 5 0 8 0 mcl2k2 2112 14 0 0 1 0 1 1 0 8 0 mcl2k 2048 1267 0 0 140 6 134 134 0 8 0 mtagpl 80 148 0 0 1 0 1 1 0 8 0 mbufpl 256 2440 0 0 116 1 115 115 0 8 0 bufpl 256 42885 0 35720 448 0 448 448 0 8 0 anonpl 16 1643093 0 1621815 299 211 88 101 0 124 0 amapchunkpl 152 108759 0 108593 91 80 11 14 0 158 3 amappl16 192 88670 0 87462 302 240 62 73 0 8 1 amappl15 184 5223 0 5223 8 8 0 1 0 8 0 amappl14 176 4197 0 4192 1 0 1 1 0 8 0 amappl13 168 1749 0 1746 1 0 1 1 0 8 0 amappl12 160 1638 0 1636 12 11 1 1 0 8 0 amappl11 152 1659 0 1644 1 0 1 1 0 8 0 amappl10 144 2865 0 2858 1 0 1 1 0 8 0 amappl9 136 2596 0 2591 1 0 1 1 0 8 0 amappl8 128 2423 0 2349 3 0 3 3 0 8 0 amappl7 120 3063 0 3054 1 0 1 1 0 8 0 amappl6 112 1529 0 1517 1 0 1 1 0 8 0 amappl5 104 2283 0 2268 1 0 1 1 0 8 0 amappl4 96 17917 0 17883 1 0 1 1 0 8 0 amappl3 88 5488 0 5479 1 0 1 1 0 8 0 amappl2 80 158305 0 158223 3 1 2 3 0 8 0 amappl1 72 400975 0 400501 26 16 10 20 0 8 0 amappl 80 56404 0 56331 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 131 0 2 3 0 3 3 0 8 0 uaddrrnd 24 19216 0 19118 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 19216 0 19118 1 0 1 1 0 8 0 vmmpekpl 168 131368 0 131321 3 0 3 3 0 8 0 vmmpepl 168 2311649 0 2309051 691 566 125 156 0 357 8 vmsppl 368 19134 0 19118 2 0 2 2 0 8 0 pdppl 4096 38439 0 38356 17 6 11 11 0 8 0 pvpl 32 4441214 0 4417798 599 398 201 231 0 265 7 pmappl 232 19215 0 19157 6 2 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1074 0 215 26 0 26 26 0 8 0