[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180901.174339.431652509255896783.davem@davemloft.net>
Date: Sat, 01 Sep 2018 17:43:39 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: alexey.kodanev@...cle.com
Cc: netdev@...r.kernel.org, dsahern@...il.com
Subject: Re: [PATCH net] ipv6: don't get lwtstate twice in
ip6_rt_copy_init()
From: Alexey Kodanev <alexey.kodanev@...cle.com>
Date: Thu, 30 Aug 2018 19:11:24 +0300
> Commit 80f1a0f4e0cd ("net/ipv6: Put lwtstate when destroying fib6_info")
> partially fixed the kmemleak [1], lwtstate can be copied from fib6_info,
> with ip6_rt_copy_init(), and it should be done only once there.
>
> rt->dst.lwtstate is set by ip6_rt_init_dst(), at the start of the function
> ip6_rt_copy_init(), so there is no need to get it again at the end.
>
> With this patch, lwtstate also isn't copied from RTF_REJECT routes.
...
> Fixes: 6edb3c96a5f0 ("net/ipv6: Defer initialization of dst to data path")
> Signed-off-by: Alexey Kodanev <alexey.kodanev@...cle.com>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists