Article View: linux.kernel.netdev
Article #23104Re: [PATCH net] udp: only quit inuse scan early on identical SO_REUSEPORT sockets
From: patchwork-bot+netdevbpf
Date: Thu, 26 Nov 2026 14:40
Date: Thu, 26 Nov 2026 14:40
33 lines
9154 bytes
9154 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Thu, 19 Nov 2026 20:21:42 +0100 you wrote:
> Commit df560056d960 ("udp: inuse checks can quit early for reuseport")
> optimized udp_lib_lport_inuse() and udp_lib_lport_inuse2() to return 0
> immediately upon encountering the first same-UID SO_REUSEPORT socket
> that matches under wildcard conflict rules.
>
> However, a socket that matches under wildcard rules (or shares only a
> relaxed subset of bind attributes) does not guarantee that the remaining
> sockets in hslot->head or hslot2->head are conflict-free for the new
> socket. Because IPv4 UDP sockets prepend to the head of the hash chain,
> an unprivileged local user can bind a non-conflicting SO_REUSEPORT
> socket (e.g., 127.0.0.2:PORT) ahead of another user's exclusive
> 127.0.0.1:PORT UDP listener, then bind 0.0.0.0:PORT (returning early on
> 127.0.0.2:PORT without reaching the exclusive listener), and finally
> bind 127.0.0.1:PORT at the head of hslot2->head to intercept cross-UID
> UDP datagrams.
>
> [...]
Here is the summary with links:
- [net] udp: only quit inuse scan early on identical SO_REUSEPORT sockets
https://git.kernel.org/netdev/net/c/d77700039d09
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179570400478.1866113.17394711120879763013.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372148-linux-kernel-netdev=dewy.ruReferences:
<20261119192142.2637952-1-dmnk@google.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372148-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] udp: only quit inuse scan early on identical SO_REUSEPORT sockets Date: Thu, 26 Nov 2026 14:40:04 +0000 Organization: Usenet Network Message-ID: <179570400478.1866113.17394711120879763013.git-patchwork-notify@kernel.org> References: <20261119192142.2637952-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="486964"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:A1MXZSJb4ISJYONJlbVjfWVW/jk= sha256:G1+SMWyFb2wltQWDwffW16s0XvxNWuzha5kQJisIbrc= sha1:U8up5xRbDQ18kYh7olObpDFFvTE= sha256:na7ZuqyRK/ZB9nz/9KlJDam8IWEUfJlHqfBCIl8puCI= 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 D8AE6125EE2; Thu, 26 Nov 2026 17:40:22 +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 qGqUJg6FILY0; Thu, 26 Nov 2026 17:40:19 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-372148-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id B58EC125EDF; Thu, 26 Nov 2026 17:40:09 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 951CA36394; Thu, 26 Nov 2026 14:40:07 +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=1795704007; b=uDrozYjgCroQRUBySgiZSkE4C8Tq+gLnhqJB2wDTdvpTmYgLC2HkQaQJ7/fUFtUeTiv4 LDmQWouw8E1yT6B1N4B+ehySjZ3EFURNIfhy+8df6Nkl1YHklsG/GUsDaG4XjA0ZedIKu DJPjPS41+L2z0nsTUoducoEonA/ed6lGnxLcJe/xnffTaKlFHsiQVU55eJs+hl9H0MxI7 OegIZR5Dglla9ZJiWFfz3xBiHV8x1BeCme43d7BhoRPWLqi7oDqniuOFBkeWivkNAFRUk NM2lq7jZ4tViD2nxlv8zD/TZnUdtNHHkTJ5cg3DiWPt++QSUqTlxUQPuU+xG7V0dEFg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795704007; 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=bLpMVTvmslHL+ssqcpZsOrXgszOR9judXGULCxVmx60=; b=TRtIwo3Jaol6luCOq3FqCiP/z/nzM53OMP1iJ7EQCL6yupwaU6c/sihWh8upZ2Ce/PlS BI0+FEYwZnOMug22VcnoE5IPGVOsElfaR1Ab34AbgKZjdsseMOv4hqokzY9hXLsVNBgk/ DlPTPVAxh+AmBxC9gd6h6xnBMI10uVUVGab1oNxdrxRVauS28yyApMQ9hSta0nAe5C1US naWcOkyzL6Qpdvx3H86hUqk8c4DPnKf4M+Y1+GmD1wkt7eKfjq6B3Znv0RAhYLSDx2mGn M39O8ABVQ7UrrJgm6db47aCd+fX8jWLV864DWw6klvnXnh61BTU3OAj5HCaDpw3qiFQ== 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=a06OJAhO; 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 0EFA4606A329; Thu, 26 Nov 2026 14:40: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=a06OJAhO 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=1795704006; b=YAKqsFSRx1q+6OfYksVO0BchS13Rduk9n5JbNkoo48pMq/KG0UCDcuOl1oOgnuTpwrw+ WHG1qeCkKczuNe/o4iFPeL6B7NsvOOGvegp9rR5Oc9zjCeFBbxJ+zt3wCqHNpJz+JQ2PF brHX9QteufGDTV9ec7ULxBrYAvTtk69ofk8w/BFfvmNavfx7lrjWQm//JEgI1Kd+FeGbd ghqZOgEFTzp12svnadxt4B+1iCP6eA9Qae8+V2Fgrvci6TKdZUk6RyLrcNup5Po2krobf agNbx+7dL+jI781mjfhjVrcsrLNyx6XyLchwNPbVmCJz6qDsjhMqqwLBH6yNVmWEWpQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795704006; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=bLpMVTvmslHL+ssqcpZsOrXgszOR9judXGULCxVmx60=; b=JoN6XTWePPJJp/j6eO8jrb/MA3Nfyp4DSgirGrHtoQg41eVUNMtRH740cwm6tySr4WIx sDnld0q+svgihWYKJeyKBIX4q5ebI9EgrUe3GOLPQ3i99flcjI4bO8uSEZmnoX4TuOW1N Y1BWVb5mL1bMdABw5yUIaeiXK1Isx0oBDWdY888ABCAyO6Q0xK+VEkrOlyUNeyKJNKQpI 8aPr336BMikMgUg9P+bQx9SX+kwF9hVikUkQskWdlB7ALg9X/ej4esMuOi0Y9tqEVmv2M WqVwU92sc3aSWuSmFwgqZZg+f18EYmctu+TSSYWxfR9YHS0c+V8F4ZIXQpaeNcEqeSg== 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=a06OJAhO; 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 2C268606A31E for <netdev@vger.kernel.org>; Thu, 26 Nov 2026 14:40:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06B591F000C4; Thu, 26 Nov 2026 14:40:06 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795704006; bh=bLpMVTvmslHL+ssqcpZsOrXgszOR9judXGULCxVmx60=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=a06OJAhOt2+6VAEmQr7KgVGT1PgPqNK8bahPv6oKHWdNhdsP+OnVZ1z+odRV0GpRW 3cWWnOHaS5Zo6hQK4eWhhkePGAYubRq4sn4gXSOryO0tOhyxKY1g5R/2nd9zEMhUoq 5kiPwdVD+b4jG5Y3MHhVBSXCmnqdrWYtbVZCu7HphH2zxjx/UN8uXGKAQGpAS8/dC0 7p4bf+ofGTH939ho0rnKwORLTZ583kMgFvsW9KYAP2iZsKVE51C2CcD7UkJgAUcx/P xYIfjaZYpL0SJfdm/RA2Pw3draZS1woK+TPC1oUWSPIsCxMBSLAtzWGo07u02oBUqR +9FvHjK69A+oQ== 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 F15C8380AA5E; Thu, 26 Nov 2026 14:40: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: <20261119192142.2637952-1-dmnk@google.com> X-Cc: willemdebruijn.kernel@gmail.com, edumazet@kernel.org, kuniyu@google.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, dmnk+artist@google.com