Article View: linux.kernel.netdev
Article #25786Re: [PATCH net v2] inet: release newly acquired port on inet_csk_listen_start() hash error
From: patchwork-bot+netdevbpf
Date: Wed, 02 Dec 2026 12:50
Date: Wed, 02 Dec 2026 12:50
26 lines
8850 bytes
8850 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
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
Technical Details
Message-ID:
<179621580475.1437261.6794972796310945363.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375785-linux-kernel-netdev=dewy.ruReferences:
<20261124180600.71138-1-dmnk@google.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375785-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2] inet: release newly acquired port on inet_csk_listen_start() hash error Date: Wed, 02 Dec 2026 12:50:04 +0000 Organization: Usenet Network Message-ID: <179621580475.1437261.6794972796310945363.git-patchwork-notify@kernel.org> References: <20261124180600.71138-1-dmnk@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1972731"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:zwGZmHi1+PI2XZg/VBOPk4xnBSE= sha256:YAmv/FnFGRA71tM5D9Cm3r+DgARKe0vHdKGW9V3LfyE= sha1:uM+Nwa8eATCu4TGFDajpKhIvgZU= sha256:TtawFwFA0y62Hb0DzT95weYcl2g1Vbb8fpjqQcfvck0= 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 4420C11763A; Wed, 2 Dec 2026 15:50:32 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[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 H5dzHhlWeLpf; Wed, 2 Dec 2026 15:50:20 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-375785-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 7064B117614; Wed, 2 Dec 2026 15:50:09 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id DE6F8601749; Wed, 2 Dec 2026 12:50:08 +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=1796215807; b=f2mIxupRsyw51IP5h583HbHWtXtTQSxdwG6BvjMR62DJmnlkCRn1eAUW+ju8sHlMWLMT /Po9ECDFw2rVDohX6JyD8B0wnCUHTO76Z1HVPa2AcoyBIX63QFZR1VgXUUS9FTFZs1vVZ wQ8DkbQ4zyYpeMmL6LLrhIiXTnry5dQleGYJAn8pmJo3kbGXjCRFofFZLJ9WoSP6r7JT9 5O08IUimyFwO8MIvyIfATEf7GJMb9QDrYYp4X5ScOi2J/60I2XESlyLHt1tv9Y3eqacLN E9Cv+tLSRYWlJv588p3I0wOzxz8R6AGwKvH/ICMJzktGfuXnWHKx7S3kxollfsYxHuA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796215807; 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=kkWz8pu9Z3oCmiP41qEAZzOEQI9il+5uhh5XP52DOvM=; b=lSME/v9as/jmcb3c/XbVnqIcWhczXG0tikX1WAgH+KTWE3tOqqVa49yOY4jicBgffGN7 86uqk8qXUYvlVW6x4iI9RViwWy4R5grNo7umeZUaSQdPaQ5YWuNaPTG8anPPk1lORnoZB js+4pIsFQITAYMAanX3q9cLVbNVB2PCKQWb9hXWw7tA5FVtWB8AR0Js8n5irJrqEnzQ7f 8t+Pfmk2AAECL4kZq4Spd6PjsPLArM8zFt0/Fa0VDAU0Qmj637+yMEQJr9Qct7/ZiRmw9 2RpXoW3GQTuYpOQm4zYTq9aPmwEiTmSUtjvMBmjsiRZpiLmuAaT1eOZnyZEdKjWvPnA== 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="ZV/4XvgL"; 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 B62BD606A32E; Wed, 2 Dec 2026 12:50:07 +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=ZV/4XvgL 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=1796215806; b=cYT+bmonwXkWX8c+hBB2+tazLFjAYLYON0KNnUrfbEOvGNnWni0XVwhe8tPIU53xdJrp q/sZgEjhgNgcbrq6Y8Z1sCtU+sljOUPffJy0KygnFIXF02NhUEMQTAIbqOeeP0LzdItaf GqUu4XrNQy6enqLt8nFuQvlWN3JUroMaBm5cSdqbSzvytbs88DqGeWraml2Hxe1+e2x8L FnD5MqV8XNUSjiHW8h/oxCJXPjq+dpwknYxHUqhWuqwH2OrE9waLa5Ib9WLegbjbey8PI BQ0Ucihrqb9jXKtlc/Ntrsw/OiE+akIKaAJFuBe1dwSRjFVc8S1LbCX0Gz63eYO2oig== X-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== 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="ZV/4XvgL"; 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 D17F0606A31A for <netdev@vger.kernel.org>; Wed, 2 Dec 2026 12:50:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 065961F00899; Wed, 2 Dec 2026 12:50:06 +0000 (UTC) X-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== 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 EB7F53808235; Wed, 2 Dec 2026 12:50:05 +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: <20261124180600.71138-1-dmnk@google.com> X-Cc: edumazet@kernel.org, ncardwell@google.com, kuniyu@google.com, kuba@kernel.org, joannelkoong@gmail.com, netdev@vger.kernel.org, dmnk+artist@google.com