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 127741 18651 0 0 0 1 syz-executor.0 *352361 14513 0 0 0x4000000 0K 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(ffffffff822089a2,ffffffff821d2b2e,350,ffffffff821aad56) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800023ba4a28,83,ffff800023ba4ac8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023ba4b38,fffffd806f6d1710,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d1710,fffffd8066ffd4f8,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d1710,fffffd8066ffd4f8,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd8066ffd400,0,fffffd806f6d1700,20,0,fffffd806f6d1690) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8066ffd400,fffffd8070927630,ffff800023ba4d48,ffff80002255e000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8070927630,9,fffffd8066ffd400,0,0,ffff800020ab0780) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8070927630,0,ffff800023ba4f68,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ab0780,3,ffff800023ba4f68,0,ffff800023ba5050) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ab0780,ffff800023ba5008,ffff800023ba5050) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800023ba50d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023ba50d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,bfca7698010) at Xsyscall+0x128 end of kernel end trace frame: 0xbfedaae6d60, 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{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(ffffffff822089a2,ffffffff821d2b2e,350,ffffffff821aad56) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800023ba4a28,83,ffff800023ba4ac8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023ba4b38,fffffd806f6d1710,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d1710,fffffd8066ffd4f8,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d1710,fffffd8066ffd4f8,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd8066ffd400,0,fffffd806f6d1700,20,0,fffffd806f6d1690) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8066ffd400,fffffd8070927630,ffff800023ba4d48,ffff80002255e000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8070927630,9,fffffd8066ffd400,0,0,ffff800020ab0780) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8070927630,0,ffff800023ba4f68,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ab0780,3,ffff800023ba4f68,0,ffff800023ba5050) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ab0780,ffff800023ba5008,ffff800023ba5050) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800023ba50d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023ba50d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,bfca7698010) at Xsyscall+0x128 end of kernel end trace frame: 0xbfedaae6d60, count: -14 ddb{0}> show registers rdi 0xffffffff81a8d2c7 db_enter+0x17 rsi 0x431d __ALIGN_SIZE+0x331d rbp 0xffff800023ba4840 rbx 0xffff800023ba48f0 rdx 0x431e __ALIGN_SIZE+0x331e rcx 0xffff80002255e000 rax 0xffff80002255e000 r8 0xffffffff818b4cbf kprintf+0x16f r9 0x1 r10 0x25 r11 0xc1b971da67a5da69 r12 0x3000000008 r13 0xffff800023ba4850 r14 0x100 r15 0x1 rip 0xffffffff81a8d2c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023ba4830 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=352361 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1b40,0xffff800020ab13e8 process=0xffff800020a4bc08 user=0xffff800023ba0000, vmspace=0xfffffd807f00bcf0 estcpu=31, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 18651 127741 95389 0 7 0 syz-executor.0 18651 521828 95389 0 3 0x4000080 fsleep syz-executor.0 14513 12985 19467 0 2 0 syz-executor.1 *14513 352361 19467 0 7 0x4000000 syz-executor.1 19467 318655 15430 0 3 0x82 nanosleep syz-executor.1 95389 26407 15430 0 3 0x82 nanosleep syz-executor.0 29553 6022 0 0 3 0x14200 bored sosplice 27551 112455 0 0 3 0x14200 acct acct 15430 200827 6058 0 3 0x82 nanosleep syz-fuzzer 15430 138817 6058 0 3 0x4000082 nanosleep syz-fuzzer 15430 73656 6058 0 3 0x4000082 thrsleep syz-fuzzer 15430 204590 6058 0 3 0x4000082 thrsleep syz-fuzzer 15430 498889 6058 0 3 0x4000082 thrsleep syz-fuzzer 15430 49866 6058 0 3 0x4000082 thrsleep syz-fuzzer 15430 345622 6058 0 3 0x4000082 kqread syz-fuzzer 15430 54141 6058 0 3 0x4000082 thrsleep syz-fuzzer 15430 215997 6058 0 3 0x4000082 thrsleep syz-fuzzer 15430 413786 6058 0 3 0x4000082 thrsleep syz-fuzzer 6058 94037 73559 0 3 0x10008a pause ksh 73559 193187 45778 0 3 0x92 select sshd 41675 202241 1 0 3 0x100083 ttyopn getty 45778 517685 1 0 3 0x80 select sshd 16139 134128 21257 74 3 0x100092 bpf pflogd 21257 481880 1 0 3 0x80 netio pflogd 61452 211481 44430 73 3 0x100090 kqread syslogd 44430 76252 1 0 3 0x100082 netio syslogd 23927 254264 1 77 3 0x100090 poll dhclient 75870 340333 1 0 3 0x80 poll dhclient 16836 242870 0 0 2 0x14200 zerothread 17995 79361 0 0 3 0x14200 aiodoned aiodoned 47380 406957 0 0 3 0x14200 syncer update 66697 185807 0 0 3 0x14200 cleaner cleaner 89359 6534 0 0 3 0x14200 reaper reaper 1090 149910 0 0 3 0x14200 pgdaemon pagedaemon 42858 277343 0 0 3 0x14200 bored crynlk 2774 334764 0 0 3 0x14200 bored crypto 77421 260767 0 0 3 0x40014200 acpi0 acpi0 19445 385175 0 0 3 0x40014200 idle1 23605 123620 0 0 3 0x14200 bored softnet 68814 460863 0 0 3 0x14200 bored systqmp 24924 26900 0 0 3 0x14200 bored systq 23865 71527 0 0 3 0x40014200 bored softclock 99443 28693 0 0 3 0x40014200 idle0 78698 524012 0 0 3 0x14200 bored smr 1 357612 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 14513 (syz-executor.1) thread 0xffff800020ab0780 (352361) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82644940) #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 (0xffffffff824d26b8) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9603 6458K 7890K 78643K 15980 0 0 pcb 13 8K 8K 78643K 423 0 0 rtable 127 14K 14K 78643K 1304 0 0 ifaddr 92 19K 20K 78643K 413 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1566 0 0 iov 0 0K 16K 78643K 397 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1237 78K 78K 78643K 3396 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 22 0 0 VM map 19 9K 9K 78643K 22 0 0 sem 12 1K 1K 78643K 343 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1803 0 0 sigio 0 0K 0K 78643K 64 0 0 proc 62 63K 95K 78643K 1061 0 0 subproc 32 2K 2K 78643K 238 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 242 0 0 in_multi 25 1K 2K 78643K 275 0 0 ether_multi 1 0K 0K 78643K 27 0 0 mrt 0 0K 0K 78643K 19 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 546 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 157 138K 138K 78643K 7348 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 446 0 0 NDP 21 0K 0K 78643K 128 0 0 temp 237 3561K 4200K 78643K 49776 0 0 kqueue 0 0K 0K 78643K 30 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 36 0 31 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 191 0 189 1 0 1 1 0 8 0 rtentry 112 231 0 182 2 0 2 2 0 8 0 unpcb 120 1263 0 1251 2 1 1 2 0 8 0 syncache 264 15 0 15 6 6 0 1 0 8 0 tcpqe 32 216 0 216 4 4 0 1 0 8 0 tcpcb 544 755 0 751 5 3 2 2 0 8 1 inpcb 280 2671 0 2663 12 9 3 5 0 8 2 rttmr 72 6 0 4 3 2 1 1 0 8 0 ip6q 72 2 0 1 1 0 1 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 35 0 33 2 1 1 1 0 8 0 pkpcb 40 16 0 16 4 4 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 49 0 49 7 6 1 1 0 8 1 pffrag 232 55 0 55 5 4 1 1 0 482 1 pffrnode 88 55 0 55 5 4 1 1 0 8 1 pffrent 40 1458 0 1458 5 4 1 1 0 8 1 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 170 0 100 1 0 1 1 0 8 0 pfstkey 112 170 0 100 3 0 3 3 0 8 0 pfstate 328 170 0 100 7 0 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 6 0 3 5 2 3 4 0 8 0 art_heap4 256 1046 0 797 27 7 20 20 0 8 1 art_table 32 1052 0 800 3 0 3 3 0 8 0 art_node 16 230 0 190 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 9 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 341 0 331 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 4416 0 3003 46 0 46 46 0 8 0 ffsino 272 4416 0 3003 96 1 95 95 0 8 0 nchpl 144 7686 0 6085 61 0 61 61 0 8 0 uvmvnodes 72 5910 0 0 108 0 108 108 0 8 0 vnodes 208 5910 0 0 312 0 312 312 0 8 0 namei 1024 30239 0 30239 1 0 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 20 0 3 2 0 2 2 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 21795 0 21795 21 20 1 7 0 8 1 plimitpl 152 166 0 158 1 0 1 1 0 8 0 sigapl 432 1965 0 1949 3 1 2 3 0 8 0 futexpl 56 47018 0 47017 1 0 1 1 0 8 0 knotepl 112 595 0 576 6 5 1 2 0 8 0 kqueuepl 104 516 0 513 1 0 1 1 0 8 0 pipepl 112 1322 0 1303 3 1 2 2 0 8 1 fdescpl 488 1966 0 1949 3 0 3 3 0 8 0 filepl 152 21241 0 21139 18 12 6 8 0 8 2 lockfpl 104 672 0 671 1 0 1 1 0 8 0 lockfspl 48 231 0 230 1 0 1 1 0 8 0 sessionpl 112 30 0 19 1 0 1 1 0 8 0 pgrppl 48 46 0 35 1 0 1 1 0 8 0 ucredpl 96 6156 0 6147 1 0 1 1 0 8 0 zombiepl 144 1949 0 1949 1 0 1 1 0 8 1 processpl 896 1983 0 1949 4 0 4 4 0 8 0 procpl 632 5890 0 5845 5 0 5 5 0 8 1 srpgc 64 24 0 24 8 7 1 1 0 8 1 sosppl 128 62 0 62 8 7 1 1 0 8 1 sockpl 384 4188 0 4166 21 15 6 9 0 8 2 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 23 0 0 3 1 2 3 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 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 176 0 0 21 0 21 21 0 8 0 mtagpl 80 64 0 0 1 0 1 1 0 8 0 mbufpl 256 459 0 0 22 0 22 22 0 8 0 bufpl 256 12931 0 5873 442 0 442 442 0 8 0 anonpl 16 267225 0 242517 137 37 100 100 0 124 0 amapchunkpl 152 15224 0 15053 34 27 7 14 0 158 0 amappl16 192 11035 0 9639 106 36 70 70 0 8 0 amappl15 184 239 0 237 2 1 1 1 0 8 0 amappl14 176 279 0 273 1 0 1 1 0 8 0 amappl13 168 325 0 325 3 3 0 1 0 8 0 amappl12 160 40 0 37 1 0 1 1 0 8 0 amappl11 152 548 0 532 1 0 1 1 0 8 0 amappl10 144 13 0 9 1 0 1 1 0 8 0 amappl9 136 799 0 793 1 0 1 1 0 8 0 amappl8 128 382 0 335 2 0 2 2 0 8 0 amappl7 120 97 0 88 1 0 1 1 0 8 0 amappl6 112 515 0 504 1 0 1 1 0 8 0 amappl5 104 277 0 263 1 0 1 1 0 8 0 amappl4 96 2106 0 2074 1 0 1 1 0 8 0 amappl3 88 514 0 509 1 0 1 1 0 8 0 amappl2 80 14588 0 14505 3 1 2 3 0 8 0 amappl1 72 54424 0 53959 26 16 10 20 0 8 0 amappl 80 6397 0 6342 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 1986 0 1949 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1986 0 1949 1 0 1 1 0 8 0 vmmpekpl 168 19698 0 19661 2 0 2 2 0 8 0 vmmpepl 168 257437 0 254703 217 70 147 148 0 357 28 vmsppl 368 1965 0 1949 2 0 2 2 0 8 0 pdppl 4096 3979 0 3921 9 1 8 8 0 8 0 pvpl 32 687432 0 660382 288 69 219 226 0 265 0 pmappl 232 1985 0 1952 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 649 0 18 19 0 19 19 0 8 0