Article View: linux.kernel.netdev
Article #5676Re: [PATCH net] tcp: tcp_metrics: use the socket netns, not the dst device netns
From: patchwork-bot+netdevbpf
Date: Tue, 20 Oct 2026 19:40
Date: Tue, 20 Oct 2026 19:40
30 lines
9032 bytes
9032 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 16 Oct 2026 10:48:02 +0200 you wrote:
> tcp_get_metrics(), __tcp_get_metrics_req() and tcpm_new() look up and
> create metrics entries in the netns of the cached dst device rather than
> in the netns of the socket.
>
> These usually match, but not after the device has been moved to another
> netns or unregistered: a socket can keep a stale dst in sk_dst_cache
> until it is checked again, and tcp_update_metrics() reads it with
> __sk_dst_get() without any dst_check(). Once dst_dev_put() has run, the
> dst device is blackhole_netdev and the entry is created in init_net.
> Before that, for instance for routes through nexthop objects whose
> cached dsts are released from a nested RCU callback, it is the netns the
> device has just been moved to.
>
> [...]
Here is the summary with links:
- [net] tcp: tcp_metrics: use the socket netns, not the dst device netns
https://git.kernel.org/netdev/net/c/504bdcb8c156
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179252521852.176933.17096404531205983034.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349519-linux-kernel-netdev=dewy.ruReferences:
<20261016084802.2725187-1-edumazet@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349519-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] tcp: tcp_metrics: use the socket netns, not the dst device netns Date: Tue, 20 Oct 2026 19:40:18 +0000 Organization: Usenet Network Message-ID: <179252521852.176933.17096404531205983034.git-patchwork-notify@kernel.org> References: <20261016084802.2725187-1-edumazet@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3939769"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:/yQNWen4Ugcvs0Nd3tnmiwj4nZs= sha256:UdurPlsrqx1e6Z3dxuCCL9WK4EikgZBXWvnyyUUOmMk= sha1:9YGf/rEvkSRsVaa87yodKOl/mgE= sha256:U7T0mvqSf7RB8gKdSmHWfTxQRV+6z6HQm38nm1NKNCQ= 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 A253A110E14; Tue, 20 Oct 2026 22:44:44 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.729 X-Spam-Status: No, score=-3.729 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.329, 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 h0Ik3y8Ywc5N; Tue, 20 Oct 2026 22:44:41 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-349519-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 A563B110E0F; Tue, 20 Oct 2026 22:44:30 +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 B8D9939759; Tue, 20 Oct 2026 19:40:21 +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=1792525221; b=mwjNFbdc0RZBcYz8i930FLoKLIhbxDGkf8j7gDL/9MtJFZBuTDys8YB2K5jKw9WT1w1V QJlQmJuofalqz/rTnsmKNjXB80QbP1MM5Yhpy4IxWFI8cdfiye4jLckWWj7XnfhuZrNNU m6d4vF1kFXh7zZqHP4pNBiuZ2Tl0MfZ2KpzZz+jGSYA8LqucbEC0DvbTztkaZslBJHCzj EOQJVzRq8SriRJJQF6D8zOYBipUsSXXRgy6iAHg07yWBrqZE0iH29dKSW8mZa8sel2XF6 teG7vCOjsJiowmi0/qoTItXMmhmJnQQUhMavDZFEkVSKYHmmm9ygfuQy4vGBbY+vTRg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792525221; 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=d5kFB5UieyWzDHi1vxyzRWFWGnl9UcUS9COrlep8IGQ=; b=SkrCzqP6qdHwei5evqr08vu64BLmm+knrIAuAONn7W16obISCOPhuM1rF49/rsB3sPw1 f3gFSFWPnoYOgEiqUvKfYjsVSwy9CFfQDvSH5+Ir/QqUQ95oa4Dc9rvJbTgVE465rB7O8 2QuvpdbWDDIqdrP9nn54qg7XvRxNnBR/CTDipW29lITlmSc05uustxsEaDcJpJQ9PiGB5 t5lXUlIfJ1T050o7Oah+0GyHgKiRfVUE00GiDjSez4su5CQ0fAPRQ5CBm88Ah2838kD0r EbnqjDXccZEJetxwSWhTC2ei2uiwvxK9Avzx8bLRTxTwmvOTNtypu1k4i0gBBRbpqtQ== 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=aUAY1hlH; 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 87E24606A322; Tue, 20 Oct 2026 19:40:21 +0000 (UTC) X-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=aUAY1hlH 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=1792525220; b=MpXaYIPdXZKCFSXhHu6SFwfL7ngVdQSayRfxJNCpP+xq/+urYhvNeCAdcuSnrrkspYnF eBfoeqkPAADwnrWz0jPcMJ0fH5C+EAgeCK7H/w2YUiNRsu/MUl0DwqYe9R9197NtDwnbQ ZjJpVN8zmOZJwCeO9hwoLgzybEgs1tDhNSuuffVELxbO+yb8E8TnyoNVRlXHti3yQT+V2 DKMUcPY/t759dkvyqUhBt23wxVkR5gKraAbzYgfufyVaj246AaVrKg3GsKIcvNfgq3jXs UTgoHfkaYgnFSJHa9QJYK9BpfIPF6QAY+V8Q+kPiASwfnc2dKEVWmbZKbSSDG34I50w== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792525220; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=d5kFB5UieyWzDHi1vxyzRWFWGnl9UcUS9COrlep8IGQ=; b=n0/ndARt/u6pIIafAvyr6TqRpaI0LtJnVzraxCofCq46MOeMSt2lEPkcj/nUxX6aHxUY QJz28PgxN6XcfKTrWm1XxQt5Q6hlUd/sQDPm+kCEMgeR7kdRT1XMlOk9hY8my2JTgdNoV vAl4dFsER56ZyNkd4JjiS8q+jHMKRlr+xEq7IzW4KzAOHOVWtMKqBrGjx6ROPm6o93ttF s5txi95uRCqEv9fqU6pcgCVqSotwl6E2LeZ6rPlBV654oI73FHvowtHoRLRwnZG3oeDzF ucD+X1A3AzZAbjG0JHdE5seW1M1Ws1NaUW48kNP4/uyYdsL4Ol4CLU9sHUlm7QaHT+g== 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=aUAY1hlH; 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 6CFEE606A326 for <netdev@vger.kernel.org>; Tue, 20 Oct 2026 19:40:20 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 067D21F000CE; Tue, 20 Oct 2026 19:40:20 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792525220; bh=d5kFB5UieyWzDHi1vxyzRWFWGnl9UcUS9COrlep8IGQ=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=aUAY1hlHx6MMdY35FWRLAP8fDYFTd4jYpM2X1h6AlKiufyU2sW5c+yx0tCypMpF7q ONoNaqtXafLRh9nzhDqNdyBOY+2OyZeNwL5UXrz6kDStEpXXxnNj88zxdCdsnOuSOt DWH171HVWrncBG5sO20FL8A/jWe3VoyB/N4DPlFeLSuwm88PYuuhzbjojFxcjqpJzN O1r5RYBarOJx+uZa1Gvz/v+6pwdPqatSSoKZ40nYsE+Zef+nHzW9FqZdqpgHixZlMY e1fuaHDdvQ7xN7qR2oLZcjS6lIVqNsu/Jlgz1QZVgcDfpxOHU/ohoS3wfxtxdXyC7S j9q2erf0ixl6w== 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 F179A3809A09; Tue, 20 Oct 2026 19:40:19 +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: <20261016084802.2725187-1-edumazet@kernel.org> X-Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, ncardwell@google.com, kuniyu@google.com, horms@kernel.org, netdev@vger.kernel.org, odys.yuan@gmail.com