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=1796215806; b=cYT+bmonwXkWX8c+hBB2+tazLFjAYLYON0KNnUrfbEOvGNnWni0XVwhe8tPIU53xdJrp q/sZgEjhgNgcbrq6Y8Z1sCtU+sljOUPffJy0KygnFIXF02NhUEMQTAIbqOeeP0LzdItaf GqUu4XrNQy6enqLt8nFuQvlWN3JUroMaBm5cSdqbSzvytbs88DqGeWraml2Hxe1+e2x8L FnD5MqV8XNUSjiHW8h/oxCJXPjq+dpwknYxHUqhWuqwH2OrE9waLa5Ib9WLegbjbey8PI BQ0Ucihrqb9jXKtlc/Ntrsw/OiE+akIKaAJFuBe1dwSRjFVc8S1LbCX0Gz63eYO2oig== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796215806; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=kkWz8pu9Z3oCmiP41qEAZzOEQI9il+5uhh5XP52DOvM=; b=mLnjMrwjhVEUu1ITzot7Hx9lBI5fKKt29gjt99RGEN1NuidyLw0OGkaGSNTT7cZ+Ua31 uARABYVxdVBUdoCWm4O4ObnMgODUPPJTmPSRP1DHd/tPkPuMFLkWGaPPe3qstJW8gxR8V 7MdzcTqRwvGCrEc24okNsmFNzGOblTAK/hY3kEyJYM1WBfXsbQRalWkNGHr4EMN3t6anC Enn07d8Qk02aE3j/nhSQWwWx4KxANjNRt4+ruEfN3aw8sfUvxRaR4QJhP8vlM+fE3OXP+ 7UMN08AJE1QQAKkvRZeUApk6/gTokeoubpXK1QN2Etf+1iffIibTTEjYw1rCN/IjnuA== 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="ZV/4XvgL"; 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 D17F0606A31A for ; Wed, 2 Dec 2026 12:50:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZV/4XvgL Received: by smtp.kernel.org (Postfix) with ESMTPSA id 065961F00899; Wed, 2 Dec 2026 12:50:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796215806; bh=kkWz8pu9Z3oCmiP41qEAZzOEQI9il+5uhh5XP52DOvM=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=ZV/4XvgLwi28l4ITIDREE8SGjzLdsbNXfZ1YEyNFld9CvT37Mj90xhMxglBUQp0Ss uxbf9sPTs94gf40qbvd4ptBZ8CIhESRwWJXBwSd4g45K/D28cuXGTIzVDpwoqsF/bm P/zYrsevZmCOcAUG4If4LL8u+2wwp+9rUrjL9XLpofpqNXtAp5nJjJdCVJfndHyb5V j6F/hxXDJ215TU/Tp3OcK/THZ1FNUyK7b9Q92scy13/GCeoJHD97PMMiKKlsnUr18t d8zCdb/emOGCQhnyyELLVhhVneVINz+JhAFKScAIFjCBpqlI8x7TOM6oDbFAoEbJnV yVm49qhlA17xw== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id EB7F53808235; Wed, 2 Dec 2026 12:50:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" X-Mailing-List: netdev@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 v2] inet: release newly acquired port on inet_csk_listen_start() hash error From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179621580475.1437261.6794972796310945363.git-patchwork-notify@kernel.org> Date: Wed, 02 Dec 2026 12:50:04 +0000 References: <20261124180600.71138-1-dmnk@google.com> In-Reply-To: <20261124180600.71138-1-dmnk@google.com> To: Dominik Maier Cc: edumazet@kernel.org, ncardwell@google.com, kuniyu@google.com, kuba@kernel.org, joannelkoong@gmail.com, netdev@vger.kernel.org, dmnk+artist@google.com Hello: This patch was applied to netdev/net.git (main) by Paolo Abeni : On Tue, 24 Nov 2026 18:06:00 +0000 you wrote: > When inet_csk_listen_start() is called on a socket that has not been > explicitly bound, sk->sk_prot->get_port() allocates an ephemeral port > and links the socket into bhash and bhash2 without setting > SOCK_BINDPORT_LOCK. If sk->sk_prot->hash() then fails (for example, when > a prior failed connect() left icsk->unhashed_state set to TCP_SYN_SENT > so inet_hash() returns -EINVAL), inet_csk_listen_start() resets sk_state > to TCP_CLOSE and returns the error without releasing the newly acquired > port. > > [...] Here is the summary with links: - [net,v2] inet: release newly acquired port on inet_csk_listen_start() hash error https://git.kernel.org/netdev/net/c/7c13d5d5afb4 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html