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 * 91673 91270 0 0 0x4000000 1 syz-executor.1 406402 18354 0 0x14000 0x200 0 smr 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,ffff800023bb0a28,83,ffff800023bb0ac8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023bb0b38,fffffd806f6d0c88,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d0c88,fffffd806f2402f4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d0c88,fffffd806f2402f4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd806f240200,0,fffffd806f6d0c78,20,0,fffffd806f6d0c08) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8061ff3800,fffffd8071f1ac48,ffff800023bb0d48,ffff800022d8c000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8071f1ac48,9,fffffd8061ff3800,0,0,ffff800020ab13d8) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8071f1ac48,0,ffff800023bb0f68,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ab13d8,6,ffff800023bb0f68,0,ffff800023bb1050) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ab13d8,ffff800023bb1008,ffff800023bb1050) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800023bb10d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bb10d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,16a9b904010) at Xsyscall+0x128 end of kernel end trace frame: 0x16d6fb4a260, 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,ffff800023bb0a28,83,ffff800023bb0ac8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023bb0b38,fffffd806f6d0c88,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d0c88,fffffd806f2402f4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d0c88,fffffd806f2402f4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd806f240200,0,fffffd806f6d0c78,20,0,fffffd806f6d0c08) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8061ff3800,fffffd8071f1ac48,ffff800023bb0d48,ffff800022d8c000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd8071f1ac48,9,fffffd8061ff3800,0,0,ffff800020ab13d8) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd8071f1ac48,0,ffff800023bb0f68,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ab13d8,6,ffff800023bb0f68,0,ffff800023bb1050) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ab13d8,ffff800023bb1008,ffff800023bb1050) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800023bb10d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bb10d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,16a9b904010) at Xsyscall+0x128 end of kernel end trace frame: 0x16d6fb4a260, count: -14 ddb{1}> show registers rdi 0xffffffff818c8e87 db_enter+0x17 rsi 0x3c7e __ALIGN_SIZE+0x2c7e rbp 0xffff800023bb0840 rbx 0xffff800023bb08f0 rdx 0x3c7f __ALIGN_SIZE+0x2c7f rcx 0xffff800022d8c000 rax 0xffff800022d8c000 r8 0xffffffff81ad2b6f kprintf+0x16f r9 0x1 r10 0x25 r11 0x871349afd2e3bab0 r12 0x3000000008 r13 0xffff800023bb0850 r14 0x100 r15 0x1 rip 0xffffffff818c8e88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bb0830 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=91673 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab09f8,0xffffffff8265a258 process=0xffff800020adca80 user=0xffff800023bac000, vmspace=0xfffffd807f00b8a0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 91270 175155 10328 0 2 0 syz-executor.1 *91270 91673 10328 0 7 0x4000000 syz-executor.1 25075 4927 31642 0 3 0x82 piperd syz-executor.0 65432 40424 0 0 3 0x14200 acct acct 29018 193736 0 0 3 0x14200 bored sosplice 10328 198247 31642 0 3 0x82 nanosleep syz-executor.1 31642 470562 48838 0 3 0x82 thrsleep syz-fuzzer 31642 443516 48838 0 3 0x4000082 nanosleep syz-fuzzer 31642 131391 48838 0 3 0x4000082 thrsleep syz-fuzzer 31642 403993 48838 0 3 0x4000082 thrsleep syz-fuzzer 31642 214737 48838 0 3 0x4000082 thrsleep syz-fuzzer 31642 497719 48838 0 3 0x4000082 thrsleep syz-fuzzer 31642 420708 48838 0 3 0x4000082 thrsleep syz-fuzzer 31642 187223 48838 0 3 0x4000082 kqread syz-fuzzer 31642 399696 48838 0 3 0x4000082 thrsleep syz-fuzzer 31642 251937 48838 0 2 0x4000002 syz-fuzzer 48838 99316 76107 0 3 0x10008a pause ksh 76107 98180 55551 0 3 0x92 select sshd 11599 93707 1 0 3 0x100083 ttyin getty 55551 204333 1 0 3 0x80 select sshd 7972 415685 13717 74 3 0x100092 bpf pflogd 13717 476650 1 0 3 0x80 netio pflogd 97751 421966 9563 73 3 0x100090 kqread syslogd 9563 60675 1 0 3 0x100082 netio syslogd 26420 39049 1 77 3 0x100090 poll dhclient 42235 51972 1 0 3 0x80 poll dhclient 15149 5909 0 0 2 0x14200 zerothread 44921 192711 0 0 3 0x14200 aiodoned aiodoned 29825 252953 0 0 3 0x14200 syncer update 58640 362941 0 0 3 0x14200 cleaner cleaner 39977 416740 0 0 3 0x14200 reaper reaper 78892 394445 0 0 3 0x14200 pgdaemon pagedaemon 57671 271103 0 0 3 0x14200 bored crynlk 14353 392427 0 0 3 0x14200 bored crypto 17206 432717 0 0 3 0x40014200 acpi0 acpi0 63935 190003 0 0 3 0x40014200 idle1 4186 206151 0 0 3 0x14200 bored softnet 20892 404679 0 0 3 0x14200 bored systqmp 84154 174590 0 0 3 0x14200 bored systq 97883 431527 0 0 3 0x40014200 bored softclock 21733 139578 0 0 3 0x40014200 idle0 18354 406402 0 0 7 0x14200 smr 1 452849 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 0: exclusive mutex &uvm.fpageqlock r = 0 (0xffffffff8264d2c8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 uvm_pmr_freepages+0x126 sys/uvm/uvm_pmemrange.c:1135 #4 uvm_km_pgremove_intrsafe+0x86 sys/uvm/uvm_km.c:295 #5 uvm_unmap_kill_entry+0x112 sys/uvm/uvm_map.c:2098 #6 uvm_unmap_remove+0x398 sys/uvm/uvm_map.c:2213 #7 uvm_unmap+0x85 vm_map_unlock_ln sys/uvm/uvm_map.c:5375 [inline] #7 uvm_unmap+0x85 sys/uvm/uvm_map.c:2023 #8 free+0x1fe sys/kern/kern_malloc.c:437 #9 bpf_d_smr+0x48 sys/net/bpf.c:1590 #10 smr_thread+0x296 sys/kern/kern_smr.c:119 #11 proc_trampoline+0x1c exclusive mutex &map->mtx r = 0 (0xffffffff82615c80) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 vm_map_lock_ln+0x60 sys/uvm/uvm_map.c:5348 #4 uvm_unmap+0x6b sys/uvm/uvm_map.c:2022 #5 free+0x1fe sys/kern/kern_malloc.c:437 #6 bpf_d_smr+0x48 sys/net/bpf.c:1590 #7 smr_thread+0x296 sys/kern/kern_smr.c:119 #8 proc_trampoline+0x1c Process 91270 (syz-executor.1) thread 0xffff800020ab13d8 (91673) 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 Process 18354 (smr) thread 0xffff800020a11638 (406402) shared rwlock smr r = 0 (0xffffffff824ceaf8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 smr_thread+0x242 sys/kern/kern_smr.c:119 #2 proc_trampoline+0x1c ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9540 6415K 7173K 78643K 12191 0 0 pcb 13 8K 8K 78643K 206 0 0 rtable 107 12K 12K 78643K 553 0 0 ifaddr 73 16K 16K 78643K 171 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1495 0 0 iov 0 0K 18K 78643K 166 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1213 76K 77K 78643K 1757 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 8 0 0 VM map 5 2K 2K 78643K 8 0 0 sem 12 0K 1K 78643K 196 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 676 0 0 sigio 0 0K 0K 78643K 16 0 0 proc 62 63K 95K 78643K 632 0 0 subproc 32 2K 2K 78643K 85 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 98 0 0 in_multi 32 2K 2K 78643K 129 0 0 ether_multi 1 0K 0K 78643K 11 0 0 mrt 0 0K 0K 78643K 3 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 305 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 111 38K 40K 78643K 3333 0 0 UVM aobj 43 4K 4K 78643K 46 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 188 0 0 NDP 15 0K 0K 78643K 52 0 0 temp 193 3560K 3631K 78643K 29570 0 0 kqueue 0 0K 0K 78643K 2 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 11 0 7 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 85 0 83 1 0 1 1 0 8 0 rtentry 112 109 0 67 2 0 2 2 0 8 0 unpcb 120 385 0 371 1 0 1 1 0 8 0 syncache 264 9 0 9 3 3 0 1 0 8 0 tcpqe 32 109 0 109 2 2 0 1 0 8 0 tcpcb 544 406 0 402 3 2 1 3 0 8 0 inpcb 280 1973 0 1964 7 4 3 3 0 8 2 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 16 0 13 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 17 0 17 4 3 1 1 0 8 1 pffrag 232 20 0 20 3 2 1 1 0 482 1 pffrnode 88 20 0 20 3 2 1 1 0 8 1 pffrent 40 472 0 472 3 2 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 80 0 21 1 0 1 1 0 8 0 pfstkey 112 80 0 21 2 0 2 2 0 8 0 pfstate 328 80 0 21 5 0 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 4 0 2 3 1 2 3 0 8 0 art_heap4 256 613 0 387 17 2 15 15 0 8 0 art_table 32 617 0 389 2 0 2 2 0 8 0 art_node 16 108 0 69 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 11 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 194 0 184 1 0 1 1 0 8 0 shmpl 112 44 0 3 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2428 0 1021 46 0 46 46 0 8 0 ffsino 272 2428 0 1021 96 1 95 95 0 8 0 nchpl 144 3755 0 2158 62 2 60 61 0 8 0 uvmvnodes 72 2875 0 0 53 0 53 53 0 8 0 vnodes 208 2875 0 0 152 0 152 152 0 8 0 namei 1024 11835 0 11835 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 552 6 0 3 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 11817 0 11817 13 10 3 6 0 8 3 plimitpl 152 71 0 63 1 0 1 1 0 8 0 sigapl 432 865 0 850 3 1 2 3 0 8 0 futexpl 56 17366 0 17366 1 0 1 1 0 8 1 knotepl 112 212 0 193 3 0 3 3 0 8 2 kqueuepl 104 167 0 165 1 0 1 1 0 8 0 pipepl 112 624 0 605 3 1 2 2 0 8 1 fdescpl 488 866 0 850 4 1 3 3 0 8 1 filepl 152 7669 0 7563 11 5 6 7 0 8 1 lockfpl 104 378 0 377 1 0 1 1 0 8 0 lockfspl 48 130 0 129 1 0 1 1 0 8 0 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 23 0 12 1 0 1 1 0 8 0 ucredpl 96 838 0 829 1 0 1 1 0 8 0 zombiepl 144 850 0 850 1 0 1 1 0 8 1 processpl 896 883 0 850 4 0 4 4 0 8 0 procpl 632 2408 0 2365 6 1 5 5 0 8 1 srpgc 64 8 0 8 4 3 1 1 0 8 1 sosppl 128 33 0 33 4 3 1 1 0 8 1 sockpl 384 2455 0 2430 12 7 5 7 0 8 2 mcl64k 65536 260 0 0 33 2 31 33 0 8 1 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 12 0 0 2 0 2 2 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 188 0 0 23 0 23 23 0 8 0 mtagpl 80 35 0 0 1 0 1 1 0 8 0 mbufpl 256 465 0 0 27 1 26 27 0 8 0 bufpl 256 8670 0 1612 442 0 442 442 0 8 0 anonpl 16 118459 0 98493 110 22 88 98 0 124 4 amapchunkpl 152 6113 0 5953 22 12 10 14 0 158 2 amappl16 192 4780 0 3669 81 23 58 68 0 8 1 amappl15 184 3 0 2 1 0 1 1 0 8 0 amappl14 176 74 0 69 1 0 1 1 0 8 0 amappl13 168 57 0 56 2 1 1 1 0 8 0 amappl12 160 300 0 295 1 0 1 1 0 8 0 amappl11 152 65 0 50 1 0 1 1 0 8 0 amappl10 144 27 0 21 1 0 1 1 0 8 0 amappl9 136 777 0 773 1 0 1 1 0 8 0 amappl8 128 318 0 294 1 0 1 1 0 8 0 amappl7 120 52 0 47 1 0 1 1 0 8 0 amappl6 112 68 0 58 1 0 1 1 0 8 0 amappl5 104 457 0 440 1 0 1 1 0 8 0 amappl4 96 1180 0 1145 2 1 1 2 0 8 0 amappl3 88 146 0 139 1 0 1 1 0 8 0 amappl2 80 5882 0 5808 3 1 2 3 0 8 0 amappl1 72 29510 0 29071 26 16 10 20 0 8 0 amappl 80 2720 0 2673 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 45 0 3 1 0 1 1 0 8 0 uaddrrnd 24 872 0 850 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 872 0 850 1 0 1 1 0 8 0 vmmpekpl 168 11649 0 11614 3 1 2 2 0 8 0 vmmpepl 168 116299 0 114032 173 32 141 141 0 357 39 vmsppl 368 865 0 850 2 0 2 2 0 8 0 pdppl 4096 1751 0 1709 6 0 6 6 0 8 0 pvpl 32 329292 0 306627 238 25 213 223 0 265 24 pmappl 232 871 0 853 4 2 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 666 0 13 19 0 19 19 0 8 0