[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180913.082150.1784634454675045279.davem@davemloft.net>
Date: Thu, 13 Sep 2018 08:21:50 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: lucien.xin@...il.com
Cc: netdev@...r.kernel.org, dsa@...ulusnetworks.com,
roopa@...ulusnetworks.com
Subject: Re: [PATCHv2 net] ipv6: use rt6_info members when dst is set in
rt6_fill_node
From: Xin Long <lucien.xin@...il.com>
Date: Tue, 11 Sep 2018 14:33:58 +0800
> In inet6_rtm_getroute, since Commit 93531c674315 ("net/ipv6: separate
> handling of FIB entries from dst based routes"), it has used rt->from
> to dump route info instead of rt.
>
> However for some route like cache, some of its information like flags
> or gateway is not the same as that of the 'from' one. It caused 'ip
> route get' to dump the wrong route information.
>
> In Jianlin's testing, the output information even lost the expiration
> time for a pmtu route cache due to the wrong fib6_flags.
>
> So change to use rt6_info members for dst addr, src addr, flags and
> gateway when it tries to dump a route entry without fibmatch set.
>
> v1->v2:
> - not use rt6i_prefsrc.
> - also fix the gw dump issue.
>
> Fixes: 93531c674315 ("net/ipv6: separate handling of FIB entries from dst based routes")
> Reported-by: Jianlin Shi <jishi@...hat.com>
> Signed-off-by: Xin Long <lucien.xin@...il.com>
Applied and queued up for -stable, thanks Xin.
Powered by blists - more mailing lists