From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03C191F027A0; Wed, 2 Dec 2026 02:40:09 +0000 (UTC) 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== 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) Content-Type: text/plain; charset="utf-8" X-Mailing-List: linux-sctp@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] sctp: keep the port of a bound socket when adding an address fails From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179617920749.1132066.14998761826667647322.git-patchwork-notify@kernel.org> Date: Wed, 02 Dec 2026 02:40:07 +0000 References: <179560159232.2963157.3418291084812904092@gmail.com> In-Reply-To: <179560159232.2963157.3418291084812904092@gmail.com> To: Kyuwon Cho 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 Hello: This patch was applied to netdev/net.git (main) by Willem de Bruijn : 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