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 62122 78685 0 0 0 0 syz-executor.1 *269811 78685 0 0 0x4000000 1K 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(ffffffff822068b1,ffffffff821d431e,350,ffffffff821ac2d6) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000239fb418,83,ffff8000239fb4b8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff8000239fb528,fffffd806f6cf710,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cf710,fffffd80705b11f4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cf710,fffffd80705b11f4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd80705b1100,0,fffffd806f6cf700,20,0,fffffd806f6cf690) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8077b3a900,fffffd80718d1208,ffff8000239fb738,ffff800021780000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80718d1208,9,fffffd8077b3a900,0,0,ffff800020acea00) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80718d1208,0,ffff8000239fb958,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020acea00,3,ffff8000239fb958,0,ffff8000239fba40) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020acea00,ffff8000239fb9f8,ffff8000239fba40) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff8000239fbac0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239fbac0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,9ef6d38e010) at Xsyscall+0x128 end of kernel end trace frame: 0x9f217a91750, 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(ffffffff822068b1,ffffffff821d431e,350,ffffffff821ac2d6) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000239fb418,83,ffff8000239fb4b8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff8000239fb528,fffffd806f6cf710,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cf710,fffffd80705b11f4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cf710,fffffd80705b11f4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd80705b1100,0,fffffd806f6cf700,20,0,fffffd806f6cf690) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8077b3a900,fffffd80718d1208,ffff8000239fb738,ffff800021780000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80718d1208,9,fffffd8077b3a900,0,0,ffff800020acea00) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80718d1208,0,ffff8000239fb958,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020acea00,3,ffff8000239fb958,0,ffff8000239fba40) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020acea00,ffff8000239fb9f8,ffff8000239fba40) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff8000239fbac0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239fbac0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,9ef6d38e010) at Xsyscall+0x128 end of kernel end trace frame: 0x9f217a91750, count: -14 ddb{1}> show registers rdi 0xffffffff818c8e87 db_enter+0x17 rsi 0x437c __ALIGN_SIZE+0x337c rbp 0xffff8000239fb230 rbx 0xffff8000239fb2e0 rdx 0x437d __ALIGN_SIZE+0x337d rcx 0xffff800021780000 rax 0xffff800021780000 r8 0xffffffff81ad2b6f kprintf+0x16f r9 0x1 r10 0x25 r11 0x7a1e47b943f3af90 r12 0x3000000008 r13 0xffff8000239fb240 r14 0x100 r15 0x1 rip 0xffffffff818c8e88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000239fb220 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=269811 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020acfb48,0xffffffff8265a258 process=0xffff800020adc380 user=0xffff8000239f6000, vmspace=0xfffffd807f00b8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 78685 62122 73517 0 7 0 syz-executor.1 *78685 269811 73517 0 7 0x4000000 syz-executor.1 19708 221754 11184 0 3 0x80 nanosleep syz-executor.0 19708 214639 11184 0 3 0x4000080 netcon syz-executor.0 19708 161597 11184 0 3 0x4000080 fsleep syz-executor.0 11184 371592 97173 0 3 0x82 nanosleep syz-executor.0 97016 367949 0 0 3 0x14200 acct acct 36606 30702 1 0 3 0x100083 ttyin getty 73517 290942 97173 0 3 0x82 nanosleep syz-executor.1 58519 168098 0 0 3 0x14200 bored sosplice 97173 37799 49758 0 3 0x82 thrsleep syz-fuzzer 97173 195067 49758 0 3 0x4000082 nanosleep syz-fuzzer 97173 471078 49758 0 3 0x4000082 thrsleep syz-fuzzer 97173 415870 49758 0 3 0x4000082 thrsleep syz-fuzzer 97173 39274 49758 0 3 0x4000082 thrsleep syz-fuzzer 97173 248370 49758 0 3 0x4000082 nanosleep syz-fuzzer 97173 417108 49758 0 3 0x4000082 kqread syz-fuzzer 97173 416510 49758 0 3 0x4000082 thrsleep syz-fuzzer 97173 161120 49758 0 3 0x4000082 thrsleep syz-fuzzer 97173 352999 49758 0 3 0x4000082 thrsleep syz-fuzzer 97173 37130 49758 0 3 0x4000082 thrsleep syz-fuzzer 49758 16227 5321 0 3 0x10008a pause ksh 5321 394922 71539 0 3 0x92 select sshd 71539 118250 1 0 3 0x80 select sshd 77517 495726 26904 74 3 0x100092 bpf pflogd 26904 262884 1 0 3 0x80 netio pflogd 18402 49425 29875 73 3 0x100090 kqread syslogd 29875 338171 1 0 3 0x100082 netio syslogd 50751 469854 0 0 3 0x14200 pgzero zerothread 55757 245818 0 0 3 0x14200 aiodoned aiodoned 28311 329969 0 0 3 0x14200 syncer update 59925 210080 0 0 3 0x14200 cleaner cleaner 47893 379572 0 0 3 0x14200 reaper reaper 31551 93166 0 0 3 0x14200 pgdaemon pagedaemon 20801 52233 0 0 3 0x14200 bored crynlk 38727 448503 0 0 3 0x14200 bored crypto 15106 480898 0 0 3 0x40014200 acpi0 acpi0 48466 151561 0 0 3 0x40014200 idle1 94785 88348 0 0 3 0x14200 bored softnet 68036 518321 0 0 3 0x14200 bored systqmp 74180 225653 0 0 3 0x14200 bored systq 45300 293968 0 0 3 0x40014200 bored softclock 38117 206375 0 0 3 0x40014200 idle0 40565 270056 0 0 3 0x14200 bored smr 1 50582 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 78685 (syz-executor.1) thread 0xffff800020acea00 (269811) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8265b1d8) #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 (0xffffffff824d1b18) #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 9610 7043K 8282K 78643K 24797 0 0 pcb 13 11K 13K 78643K 1354 0 0 rtable 145 16K 16K 78643K 3541 0 0 ifaddr 112 28K 33K 78643K 1170 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1728 0 0 iov 0 0K 32K 78643K 1373 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1236 78K 78K 78643K 6470 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 98 0 0 VM map 54 27K 27K 78643K 81 0 0 sem 12 0K 1K 78643K 2837 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 5809 0 0 sigio 0 0K 0K 78643K 74 0 0 proc 57 51K 83K 78643K 2339 0 0 subproc 32 2K 2K 78643K 541 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 690 0 0 in_multi 33 2K 2K 78643K 736 0 0 ether_multi 1 0K 0K 78643K 66 0 0 mrt 0 0K 0K 78643K 32 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 1231 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 226 452K 461K 78643K 21623 0 0 UVM aobj 130 4K 4K 78643K 135 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 1485 0 0 NDP 24 0K 1K 78643K 366 0 0 temp 257 3561K 4201K 78643K 211196 0 0 kqueue 0 0K 0K 78643K 49 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 113 0 108 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 593 0 593 2 1 1 1 0 8 1 rtentry 112 681 0 626 2 0 2 2 0 8 0 unpcb 120 3304 0 3290 4 2 2 2 0 8 1 syncache 264 42 0 42 19 19 0 1 0 8 0 tcpqe 32 138 0 138 11 11 0 1 0 8 0 tcpcb 544 2679 0 2671 24 23 1 12 0 8 0 inpcb 280 9995 0 9984 29 27 2 9 0 8 1 rttmr 72 11 0 11 8 8 0 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 4 0 4 1 1 0 1 0 8 0 nd6 48 89 0 87 1 0 1 1 0 8 0 pkpcb 40 10 0 10 4 4 0 1 0 8 0 swfcl 56 6 0 0 1 0 1 1 0 8 0 ppxss 1128 161 0 161 8 7 1 1 0 8 1 pffrag 232 133 0 133 13 12 1 1 0 482 1 pffrnode 88 133 0 133 13 12 1 1 0 8 1 pffrent 40 4231 0 4231 13 12 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 458 0 402 1 0 1 1 0 8 0 pfstkey 112 462 0 406 3 0 3 3 0 8 0 pfstate 328 462 0 406 8 2 6 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 14 0 12 11 9 2 4 0 8 0 art_heap4 256 2788 0 2544 35 15 20 20 0 8 1 art_table 32 2802 0 2556 5 2 3 3 0 8 0 art_node 16 676 0 630 1 0 1 1 0 8 0 sysvmsgpl 40 42 0 19 1 0 1 1 0 8 0 semapl 112 2833 0 2823 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10408 0 8973 47 0 47 47 0 8 0 ffsino 272 10408 0 8973 96 0 96 96 0 8 0 nchpl 144 22298 0 21813 61 40 21 61 0 8 0 uvmvnodes 72 6411 0 0 117 0 117 117 0 8 0 vnodes 208 6411 0 0 338 0 338 338 0 8 0 namei 1024 77190 0 77190 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 52 0 0 7 0 7 7 0 8 0 vmpool 552 79 0 27 4 0 4 4 0 8 0 scsiplug 64 5 0 5 4 4 0 1 0 8 0 scxspl 192 67467 0 67467 43 39 4 4 0 8 4 plimitpl 152 473 0 466 1 0 1 1 0 8 0 sigapl 432 5924 0 5910 3 1 2 3 0 8 0 futexpl 56 144698 0 144697 1 0 1 1 0 8 0 knotepl 112 1253 0 1234 5 2 3 3 0 8 2 kqueuepl 104 1851 0 1849 4 3 1 4 0 8 0 pipepl 112 7072 0 7053 20 18 2 2 0 8 1 fdescpl 488 5925 0 5910 3 0 3 3 0 8 0 filepl 152 60744 0 60648 36 30 6 13 0 8 1 lockfpl 104 2001 0 2001 2 1 1 1 0 8 1 lockfspl 48 709 0 709 2 1 1 1 0 8 1 sessionpl 112 51 0 42 1 0 1 1 0 8 0 pgrppl 48 98 0 89 1 0 1 1 0 8 0 ucredpl 96 6047 0 6039 1 0 1 1 0 8 0 zombiepl 144 5915 0 5915 2 1 1 1 0 8 1 processpl 896 5947 0 5915 4 0 4 4 0 8 0 procpl 632 19092 0 19047 5 0 5 5 0 8 0 srpgc 64 51 0 51 16 15 1 1 0 8 1 sosppl 128 122 0 122 21 20 1 1 0 8 1 sockpl 384 14062 0 14036 46 41 5 14 0 8 2 mcl64k 65536 607 0 0 72 10 62 64 0 8 1 mcl16k 16384 39 0 0 5 3 2 3 0 8 0 mcl12k 12288 49 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 1 2 3 0 8 0 mcl4k 4096 41 0 0 5 2 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 185 0 0 19 2 17 19 0 8 0 mtagpl 80 129 0 0 2 0 2 2 0 8 0 mbufpl 256 951 0 0 41 0 41 41 0 8 0 bufpl 256 23764 0 16706 442 0 442 442 0 8 0 anonpl 16 756706 0 736129 222 128 94 101 0 124 6 amapchunkpl 152 44562 0 44391 55 41 14 17 0 158 3 amappl16 192 33292 0 32104 209 145 64 72 0 8 3 amappl15 184 1723 0 1719 4 3 1 1 0 8 0 amappl14 176 792 0 786 1 0 1 1 0 8 0 amappl13 168 389 0 389 8 8 0 1 0 8 0 amappl12 160 534 0 530 1 0 1 1 0 8 0 amappl11 152 1166 0 1156 1 0 1 1 0 8 0 amappl10 144 588 0 583 1 0 1 1 0 8 0 amappl9 136 1571 0 1568 1 0 1 1 0 8 0 amappl8 128 1216 0 1153 5 2 3 3 0 8 0 amappl7 120 703 0 694 1 0 1 1 0 8 0 amappl6 112 1148 0 1127 1 0 1 1 0 8 0 amappl5 104 924 0 911 1 0 1 1 0 8 0 amappl4 96 6275 0 6242 1 0 1 1 0 8 0 amappl3 88 641 0 636 1 0 1 1 0 8 0 amappl2 80 46128 0 46050 3 0 3 3 0 8 0 amappl1 72 142964 0 142532 25 15 10 20 0 8 0 amappl 80 19982 0 19909 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 134 0 5 3 0 3 3 0 8 0 uaddrrnd 24 6004 0 5910 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6004 0 5910 1 0 1 1 0 8 0 vmmpekpl 168 54258 0 54207 4 1 3 3 0 8 0 vmmpepl 168 767862 0 765362 347 196 151 167 0 357 34 vmsppl 368 5924 0 5910 2 0 2 2 0 8 0 pdppl 4096 12015 0 11926 18 6 12 12 0 8 0 pvpl 32 1973703 0 1950411 421 202 219 233 0 265 25 pmappl 232 6003 0 5937 4 0 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 783 0 76 21 0 21 21 0 8 0