Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 224F64A2E16 for ; Wed, 29 Jul 2026 13:46:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785332766; cv=none; b=fv5lXF9dGP5swMmRmZG/dfw2egLLvd+BG0SoOoZ95Mgl7HwGGLm8oE6vOPOlmd3snersFrIDaTFZNIpWksV80zdaL7fiOCLA6bbAv9Lzt6revbUOn9RebC9nh9JGXod0ImjJSnKfy2Y5oABmmo62gy04LD8w0LJQSnmD6pFOEpg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785332766; c=relaxed/simple; bh=L2f2A3QpfBfQNVT5CMWVsCLyyiU9w+0qKetu6HumI7Y=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=RO6HywwFSSsUOjT12mrtFWIxSJSLYKSOmV/HhdvWt3noBCvttiyP6fRZE2tB0h6JS2OeexuAEMZML0CmKOd1f2ARyMFq6tETZ48lQlBpMKQYLDT7/+2t4boPJF2iJSiixoyEPGHbCczvTEfltlZOEYL9TpikhVJuvJtNYYHVB2g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1qojVFMc; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="1qojVFMc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 785921F000E9; Wed, 29 Jul 2026 13:46:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785332765; bh=+b6jdD20DwRUKm7EC5a5mo9O7Qse4HdCod3QxR540Ns=; h=Subject:To:Cc:From:Date; b=1qojVFMc6nGKReR4w24ZZLPG0hIAZoyOrmbbNdLRO7Zd4IuEnJucCjBkTbSv0Eb2M a6i6ZNAufns0UkXFqWhD+edjt69NWL7BwG+UlgK0CWKdbu63LH3wxw14rxXiiX9Sq8 CYcxef6hH1gscBYadm3noaLV9HeEWmDKh+4VdsbQ= Subject: FAILED: patch "[PATCH] sctp: close UDP tunnel sockets during netns teardown" failed to apply to 5.15-stable tree To: roxy520tt@gmail.com,kuba@kernel.org,lucien.xin@gmail.com,n05ec@lzu.edu.cn,sashiko-bot@kernel.org Cc: From: Date: Wed, 29 Jul 2026 15:45:46 +0200 Message-ID: <2026072946-semantic-plenty-6e1e@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y git checkout FETCH_HEAD git cherry-pick -x ffb2bd7ade36ec4da32c46a6eddbf4515316d08c # git commit -s git send-email --to '' --in-reply-to '2026072946-semantic-plenty-6e1e@gregkh' --subject-prefix 'PATCH 5.15.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From ffb2bd7ade36ec4da32c46a6eddbf4515316d08c Mon Sep 17 00:00:00 2001 From: Zhiling Zou Date: Wed, 15 Jul 2026 09:50:11 +0800 Subject: [PATCH] sctp: close UDP tunnel sockets during netns teardown proc_sctp_do_udp_port() starts per-net SCTP UDP tunneling sockets when net.sctp.udp_port is set, and stops/restarts them when the sysctl value changes. The netns exit path does not stop these sockets, so a namespace can be torn down while its SCTP UDP tunnel sockets are still installed. Close the UDP tunnel sockets from sctp_ctrlsock_exit() after unregistering the per-net sysctl table. This prevents new sysctl writes from racing in while the sockets are being released, and closes the sockets before the control socket is destroyed. Fixes: 046c052b475e ("sctp: enable udp tunneling socks") Cc: stable@vger.kernel.org Reported-by: Sashiko Closes: https://sashiko.dev/#/patchset/b9f1f02b0780ad6a719e2413f5f0bb8eb7702d94.1782585631.git.roxy520tt%40gmail.com Signed-off-by: Zhiling Zou Signed-off-by: Ren Wei Acked-by: Xin Long Link: https://patch.msgid.link/6dab75f22855cb219e2e30a5497cab03b970ab91.1784033357.git.roxy520tt@gmail.com Signed-off-by: Jakub Kicinski diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 49d9740b1e0f..27c26e12f95d 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -1460,6 +1460,7 @@ static int __net_init sctp_ctrlsock_init(struct net *net) static void __net_exit sctp_ctrlsock_exit(struct net *net) { sctp_sysctl_net_unregister(net); + sctp_udp_sock_stop(net); /* Free the control endpoint. */ inet_ctl_sock_destroy(net->sctp.ctl_sock);