🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25562

Re: [PATCH net] sctp: keep the port of a bound socket when adding an address fails

#25562
From: patchwork-bot+netdevbpf
Date: Wed, 02 Dec 2026 02:40
27 lines
9016 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:

On Wed, 25 Nov 2026 22:49:00 +0900 you wrote:
> Since commit 29b99f54a8e6 ("sctp: destroy bucket if failed to bind
> addr"), sctp_do_bind() releases the port when sctp_add_bind_addr()
> fails. sctp_bindx_add() also calls it for each extra address of a
> socket that is already bound, and possibly listening. There
> sctp_get_port_local() takes no new reference, but the failure path
> still calls sctp_put_port(), which unhashes the port and clears
> bind_hash and inet_num while the socket keeps its other addresses and
> stays listening. listen(0) then writes through the NULL bind_hash, and
> accept() of a pending association oopses in sctp_clone_sock():
> 
> [...]

Here is the summary with links:
  - [net] sctp: keep the port of a bound socket when adding an address fails
    https://git.kernel.org/netdev/net/c/a0c304e6db0f

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179617920749.1132066.14998761826667647322.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!feed-us-ny.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375489-linux-kernel-netdev=dewy.ru
References: <179560159232.2963157.3418291084812904092@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!feed-us-ny.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375489-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] sctp: keep the port of a bound socket when adding an
 address fails
Date: Wed, 02 Dec 2026 02:40:07 +0000
Organization: Usenet Network
Message-ID: <179617920749.1132066.14998761826667647322.git-patchwork-notify@kernel.org>
References: <179560159232.2963157.3418291084812904092@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1870206"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:WPdX1Htwa48zxFd5sb0k5p7xgTs= sha256:HacF2ywKbsEfHLnF9vzHDiegtPwib3b8k1Biw6XzGh4=
	sha1:qZGXunKsCmBp5hmI6sNwdHI05gk= sha256:Hoi/08kK6y4GaR+g0pSxMBkwh0KV/+OfFadZ7ldAEqs=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 5D08A1174BB; Wed,  2 Dec 2026 05:41:16 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Mv4yZw6IUMIS;
	Wed,  2 Dec 2026 05:41:13 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-375489-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 7FAE9117250; Wed,  2 Dec 2026 05:41:04 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id CF3D92695E; Wed,  2 Dec 2026 02:40:58 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796179210;
	b=oIDKQAwOFXnDJobwTHItf5SXZOSo6wqFdOhUKuwT4WIAA6WjpbmmMDFNM29B9KfWt//8
	 vwHO0jYprbafGoyRfDL5TTEZYmI5fOUtGBiWJ0VRQbnX3zyKY3HkYY6Sg37yUNETpqGEe
	 6axxuEBP+Ahm8LyLxk04aUkddkNOYItS8WR7mvl34gkbhIMDq9nhLXkEIh/Y+UYEKaHcU
	 cU5y5xZ8NpfuC7liNeDv0ptEw7LsVpeyf5uvTDuhuuLzjXqeab1fpJdTfazRx6Z9UmD83
	 BqkuQGdejkjRHW/d2W7Vbn855L8yCqcdFgyEv8nRf/AMmIPG+iluJE2EoR73T1cl+AA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796179210;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=/zxdXKlsdVd5FsLYc+Q+znJbbeoEipwDNHDetsvTil8=;
	b=zisCad3d7tO+5TKW39SrwOPHwpX7nUovoHI+eOP9tILpxMKaqdZ94t+NXtPFMaivfMOY
	 /G98bbdXWgdcBphQf7aYI25ag4W5akmY0J2k2YTrI+0/85v5abIAUzNHtlOhp4s1wS1N2
	 JttSyUITm/zw2CqtfKNwwfM2JaHoxAc1RxjYkYHl9HOC0L7ZUXEMUeC7/8/egNjFeBACi
	 Mlc6dR4nhvUdUDLRmwq3D2HmgZB2x5AEIq26/8xS3qLGLm80CxrlbF8F025V5hPeCGvaz
	 XAW9FLwMZpVdyC/Vf/wLYTpCOmZiYjksCCjJGzX4dDeG1VHPVEy2XvmlL45gOfNV6ig==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gR45Fdpn;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 8083E606A33E;
	Wed,  2 Dec 2026 02:40:10 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gR45Fdpn
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796179209;
	b=R/r+BLbY6vcpglwnDjtOLy/ttj3kF+um/OuOk7IKngxd35PJrPnlzapJ2ttmkHgJI38/
	 Aj49O9k8QhE6qmlDzBYrOL8qiFBG0X50Nhg6GzxuXwGdN6oVEwDkiCi2Hx8g2ACpI3zmP
	 25K5kDo1FoR+rEAuDeX94rnOTH3vyAAlyUqyZC8iY2FC9fqtZfGb2Mv5zzQRlHC5lWAzx
	 G2a7unLPo1QAtscj7GaFE8lDr6onXbmVUAptKiXhozT0xpZeB/R1tqzVQuy8d+tO8TZGj
	 uU5BnT/JrkcVGnJGpnlni2HKvEsNcRHfkKmkr4bZIX43+k51V5sH0M2IIBG0IL4s5qQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796179209;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=/zxdXKlsdVd5FsLYc+Q+znJbbeoEipwDNHDetsvTil8=;
	b=CeC/hVHl12UZIGJvBnYVS39F5VVM9XeR/5/0CyTt0Z07kkY0+em5xdMRxXHyBNusOnWg
	 rWPnBQQdEF6mggLmRRLmVfaX1Gjp07kU7x46HuMNQwhh7Jf13ziJ23yFvkd4sIU7sDmZr
	 YoI4D3jHs1UrTxtGIhsrbiAJKPjzZhIN562VlGL6+r9Rh6UImR5At2ARGqmVZCOZk73dM
	 HiOiMfAnSGyNbpq8dUUz34Qkqpp1K4Cv+otWTQrS1Wsrnzb02GUMD/qdiV9cn6lahYREe
	 KAZS1FT07XsyEvycAYNHlvqTT016eqqowWFqAU6mWruYViVWTjKr4OznDUHu7rIKFPQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gR45Fdpn;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2025606A322;
	Wed,  2 Dec 2026 02:40:09 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03C191F027A0;
	Wed,  2 Dec 2026 02:40:09 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796179209;
	bh=/zxdXKlsdVd5FsLYc+Q+znJbbeoEipwDNHDetsvTil8=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=gR45FdpnKl3AhD1/9ZfQhQZBdrJbJFnQAKNp5VW3zO7/MfNp/UQ7aunhHG2BZXcrD
	 f+Owci/LccgrbcE5NDYjaaMFBMvcMVTzCjCB23kmytpD5DZlU8ag9LXYUMxFG2nGgs
	 X6yxSgQbP8XipXzDvUSMpA1dvUsgx1dUSf7NQSPrYZWbLKp+1sWNSvcznjiB6NhhcG
	 itMB754RfOvIZ6wwsdH46cuzmQea870OoRu9Z5auEU4aYTqIwOsDgqpfqszJwJ4N4+
	 yD2Y7XTaE800p/HDW1Ed1i7IiitvNDDdO4axarIvNVc8EORT0y+P3RxL/FWcdYONit
	 3pCD65ZdMdJxA==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id EB8C7380821E;
	Wed,  2 Dec 2026 02:40:08 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <179560159232.2963157.3418291084812904092@gmail.com>
X-Cc: marcelo.leitner@gmail.com, lucien.xin@gmail.com, davem@davemloft.net,
 edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, willemb@google.com,
 horms@kernel.org, nhorman@tuxdriver.com, maowenan@huawei.com,
 linux-sctp@vger.kernel.org, netdev@vger.kernel.org