From 22cc7fecdc90e78f1afdda38ab9ab2a1ee46014b Mon Sep 17 00:00:00 2001 From: Justin Iurman Date: Wed, 5 Mar 2025 09:16:55 +0100 Subject: [PATCH] net: ipv6: fix missing dst ref drop in ila lwtunnel stable inclusion from stable-v6.6.76 commit 9ff13800d6a8703437fe690e6c318984402d1651 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IC904P Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9ff13800d6a8703437fe690e6c318984402d1651 -------------------------------- [ Upstream commit 5da15a9c11c1c47ef573e6805b60a7d8a1687a2a ] Add missing skb_dst_drop() to drop reference to the old dst before adding the new dst to the skb. Fixes: 79ff2fc31e0f ("ila: Cache a route to translated address") Cc: Tom Herbert Signed-off-by: Justin Iurman Link: https://patch.msgid.link/20250305081655.19032-1-justin.iurman@uliege.be Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin (cherry picked from commit 9ff13800d6a8703437fe690e6c318984402d1651) Signed-off-by: yunjianshijie --- net/ipv6/ila/ila_lwt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv6/ila/ila_lwt.c b/net/ipv6/ila/ila_lwt.c index ff7e734e335b..f5f44c1877f6 100644 --- a/net/ipv6/ila/ila_lwt.c +++ b/net/ipv6/ila/ila_lwt.c @@ -95,6 +95,7 @@ static int ila_output(struct net *net, struct sock *sk, struct sk_buff *skb) } } + skb_dst_drop(skb); skb_dst_set(skb, dst); return dst_output(net, sk, skb); -- Gitee