]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mptcp: Call dst_release() in mptcp_active_enable().
authorKuniyuki Iwashima <kuniyu@google.com>
Mon, 20 Oct 2025 15:44:07 +0000 (11:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Oct 2025 14:20:46 +0000 (16:20 +0200)
[ Upstream commit 108a86c71c93ff28087994e6107bc99ebe336629 ]

mptcp_active_enable() calls sk_dst_get(), which returns dst with its
refcount bumped, but forgot dst_release().

Let's add missing dst_release().

Cc: stable@vger.kernel.org
Fixes: 27069e7cb3d1 ("mptcp: disable active MPTCP in case of blackhole")
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250916214758.650211-7-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 833d4313bc1e ("mptcp: reset blackhole on success with non-loopback ifaces")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mptcp/ctrl.c

index dd595d9b5e50c77d333f14f8112624b74e1c643a..6a97d11bda7e2ddfcf5a8931ed5216edcd6a03a9 100644 (file)
@@ -385,6 +385,8 @@ void mptcp_active_enable(struct sock *sk)
 
                if (dst && dst->dev && (dst->dev->flags & IFF_LOOPBACK))
                        atomic_set(&pernet->active_disable_times, 0);
+
+               dst_release(dst);
        }
 }