mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 13:52:50 +01:00
net: ipv6: fix dst ref loop in ila lwtunnel
This patch follows commit92191dd107("net: ipv6: fix dst ref loops in rpl, seg6 and ioam6 lwtunnels") and, on a second thought, the same patch is also needed for ila (even though the config that triggered the issue was pathological, but still, we don't want that to happen). Fixes:79ff2fc31e("ila: Cache a route to translated address") Cc: Tom Herbert <[email protected]> Signed-off-by: Justin Iurman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
This commit is contained in:
1 parent
cf7ee25e70
commit
0e7633d7b9
1 file changed
+2
-1
@@ -88,7 +88,8 @@ static int ila_output(struct net *net, struct sock *sk, struct sk_buff *skb)
|
||||
goto drop;
|
||||
}
|
||||
|
||||
if (ilwt->connected) {
|
||||
/* cache only if we don't create a dst reference loop */
|
||||
if (ilwt->connected && orig_dst->lwtstate != dst->lwtstate) {
|
||||
local_bh_disable();
|
||||
dst_cache_set_ip6(&ilwt->dst_cache, dst, &fl6.saddr);
|
||||
local_bh_enable();
|
||||
|
||||
Reference in new issue
Block a user