Article View: linux.kernel.netdev
Article #4058Re: [PATCH net] tcp: tcp_metrics: use the socket netns, not the dst device netns
From: Eric Dumazet
Date: Fri, 16 Oct 2026 16:08
Date: Fri, 16 Oct 2026 16:08
20 lines
6962 bytes
6962 bytes
Le ven. 16 oct. 2026 ร 17:56, Neal Cardwell <ncardwell@google.com> a รฉcrit : > Reviewed-by: Neal Cardwell <ncardwell@google.com> > Tested-by: Neal Cardwell <ncardwell@google.com> > > Thanks, Eric! > > I got an LLM to write and run a repro that verifies the bug and > validates the fix. The script and its outputs are attached. In the > control case, both kernels put the entry in netns A. In the three > trigger cases, the base kernel puts the entry in init_net and the > patched kernel puts it in netns A. Nice, thanks a lot Neal. > > > neal
Technical Details
Message-ID:
<CAL4WiiprJUw5AW-bMMz96=SMrAz1h+rGJjw5aG=2KFQhx3RT_g@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347446-linux-kernel-netdev=dewy.ruReferences:
<20261016084802.2725187-1-edumazet@kernel.org> <CADVnQynq30ROV3jndQevAWWpk-1iWn+dizW6zwTaO1gdpOZMyw@mail.gmail.com>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-347446-linux-kernel-netdev=dewy.ru
From: edumazet@kernel.org (Eric Dumazet)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] tcp: tcp_metrics: use the socket netns, not the dst
device netns
Date: Fri, 16 Oct 2026 18:08:27 +0200
Organization: Usenet Network
Message-ID: <CAL4WiiprJUw5AW-bMMz96=SMrAz1h+rGJjw5aG=2KFQhx3RT_g@mail.gmail.com>
References: <20261016084802.2725187-1-edumazet@kernel.org> <CADVnQynq30ROV3jndQevAWWpk-1iWn+dizW6zwTaO1gdpOZMyw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="2811821"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:MMk5stV/m8bQga9SMsrJbRzrDWY= sha256:e9L4aO1paXxDaRxhF1Wu+1ufSFYTwzadYDsb9jfD8uA=
sha1:xrXB4gslPXJ5mkL5Fk1jGYY1UEA= sha256:JEcnWx1EVDu/Zb+6Ixq9HXzKrhxlTzkqkPAOKrzBYaU=
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 4F6C6110583; Fri, 16 Oct 2026 19:18:16 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.74
X-Spam-Status: No, score=-3.74 tagged_above=-9999 required=6.31
tests=[DKIMWL_WL_HIGH=-0.24, 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 Jhp4_GDxTveK;
Fri, 16 Oct 2026 19:18:13 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-347446-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 B411411057F; Fri, 16 Oct 2026 19:18:05 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by sto.lore.kernel.org (Postfix) with ESMTP id E7DF36191AB; Fri, 16 Oct 2026 16:09:55 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BF3A4E3EE6;
Fri, 16 Oct 2026 16:08:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VN6plTRx"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DF3B4E3ECF
for <netdev@vger.kernel.org>; Fri, 16 Oct 2026 16:08:39 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1792166920; cv=none; b=e5r+oiipC+7Cg3N85S2qKcJlIHj0OYB68aOTs1WO9Y7z5iovdaEOJmcgjV1Utcq3HIPbLq5rsY/tgxrYl7AO0iyB8EAbliHEq7WPgsXhbGhq7YXyvMNPOL272KH3LyvMtaBLVrV31pu7bOYm2tHG79r0xeAvT+bRPhTzObdunfQ=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1792166920; c=relaxed/simple;
bh=kXhP1OwYjv8R26m2rEknmw6BEFPz4ktTEFaQcRoV4Yw=;
h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:
To:Cc:Content-Type; b=OdcpG3U/dfyMP40/jzTH9j+QC1vliYuz0CtaLEOr5+TaX+cY4BkfRy9yjvj4LorHB7c4Mzm2cIbOYZQDv1O5hIm/p9eGup1wSLlBDAa/6GgJnmjROAZHXJta/fqnd+pYcfmMnzhXhgntfh+ub/0YZwnoeaFJ0YrYxWeWopLvUBI=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VN6plTRx; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14A081F000C9
for <netdev@vger.kernel.org>; Fri, 16 Oct 2026 16:08:39 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1792166919;
bh=kXhP1OwYjv8R26m2rEknmw6BEFPz4ktTEFaQcRoV4Yw=;
h=References:In-Reply-To:From:Date:Subject:To:Cc;
b=VN6plTRxybrjuXOoHCsNU7srtGyxVg8ixtdDuuN4WvVGL8J9U1QycdaFncVJD74AC
2tiQIhJ0S1jm3dcYvDRbW3b5zX7UQze5gQsmkmSswRzfYs95c+wAnsl/rLN6C9YhM6
cnjj9ZK0AVzWbfmJwXwT2+LUq9RAt25wyGs+EWLPgI2ZaYSUQ++1OEp5x/bOAWMCE7
QW+9xMHMjnjl7oDfqwCjbkaVIUGTx5RWHh5eoBsE7+XNE/OJGQyU8YJRucjhKXFdx8
NwRgqpOcmIzVg6hAJj5O54uDSDATYAiACeC57/LJuGFkOCxlvkAe0NluQuu94KrQt0
ZiSUxoYqdxEMg==
X-Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-6df7f544919so70358eaf.1
for <netdev@vger.kernel.org>; Fri, 16 Oct 2026 09:08:39 -0700 (PDT)
X-Forwarded-Encrypted: i=1; AKwUvBzV8PJU2pG1KOanrNjBPwXdmBrvttFY8pdgpGTgB6xGQykACY9pa7Z/Hu0M0ehQMyrKYxtp83U=@vger.kernel.org
X-Gm-Message-State: AFq9FYLM85VRjdnPidwb5SBWFVTmWME76oOWM1wNkP0sMzMzeaCY1Syn
Q6OIjsNfCZEIBFCCrwVpO5fKhfx8Rz1vWDq/dHo/E318gcjBgDF3LvpRtMWpQ4YS+CMxYbFrVNV
TOHISZucSMDcYMuf8XFOwT6Wu1a6wskY=
X-Received: by 2002:a05:6820:150b:b0:6e0:fd89:f011 with SMTP id
006d021491bc7-6ef0fda9de3mr17758771eaf.65.1792166918426; Fri, 16 Oct 2026
09:08:38 -0700 (PDT)
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <CADVnQynq30ROV3jndQevAWWpk-1iWn+dizW6zwTaO1gdpOZMyw@mail.gmail.com>
X-Gmail-Original-Message-ID: <CAL4WiiprJUw5AW-bMMz96=SMrAz1h+rGJjw5aG=2KFQhx3RT_g@mail.gmail.com>
X-Gm-Features: AclHuK_az6SKAb1DEXpGoQsgRsuEFeCYJ2qT5Qli9D_xYl-NBAC2aDQW2KxZysk
X-Cc: "David S . Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>, Kuniyuki Iwashima <kuniyu@google.com>, Simon Horman <horms@kernel.org>,
netdev@vger.kernel.org, Qiliang Yuan <odys.yuan@gmail.com>