Article View: linux.kernel.netdev
Article #5303Re: [PATCH net-next v7 03/13] net: mana: keep per-queue statistics in the port context
From: Wei Hu
Date: Tue, 20 Oct 2026 04:30
Date: Tue, 20 Oct 2026 04:30
22 lines
9116 bytes
9116 bytes
Hi, > In mana_remove(), unregister_netdevice() unlists the device but does not > synchronously wait for existing RCU grace periods to finish. I will leave this ordering unchanged in v8. The premise does not match the unregister path in the target tree. unregister_netdevice() uses the NULL-head path, which performs unregister work immediately. Before returning, that path unlists the device and calls synchronize_net(), removes its sysfs exposure, and performs another network grace period. mana_free_queue_stats() runs after that call. Some final netdev processing is deferred to netdev_run_todo(), but the grace periods relevant to the identified proc/sysfs readers are not all deferred until rtnl_unlock(). The same ordering is present in the v6 counterpart and both upstream bases. The reported reader/free interleaving therefore does not establish a UAF requiring a statistics-lifetime change. Thanks, Wei
Technical Details
Message-ID:
<qset-v7-sashiko-03-v8-plan.20261018.weh@linux.microsoft.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-349034-linux-kernel-netdev=dewy.ruReferences:
<cover.1791710735.git.weh@linux.microsoft.com> <b27034466c0db8228409db5473e747db7c3177c5.1791710735.git.weh@linux.microsoft.com> <sashiko-outbox-175603@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-349034-linux-kernel-netdev=dewy.ru From: weh@linux.microsoft.com (Wei Hu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v7 03/13] net: mana: keep per-queue statistics in the port context Date: Tue, 20 Oct 2026 04:30:39 +0000 Organization: Usenet Network Message-ID: <qset-v7-sashiko-03-v8-plan.20261018.weh@linux.microsoft.com> References: <cover.1791710735.git.weh@linux.microsoft.com> <b27034466c0db8228409db5473e747db7c3177c5.1791710735.git.weh@linux.microsoft.com> <sashiko-outbox-175603@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3781945"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:/KnoRlMfOU771W79B+aCGITWwPU= sha256:o9OvBLpk0Yb6j4rxxGM+4o5rmuFVxcSepkmz4bDYIlI= sha1:hGl5CF57uaXaaAMUmFhMKwV4w3o= sha256:iUZZREj/6iXf0tDQyxijayiKNB9e+2yFNFjbtgEN66Q= 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 8E040110BFB; Tue, 20 Oct 2026 07:32:40 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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 (1024-bit key) header.d=linux.microsoft.com 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 b7UjQN-WczWy; Tue, 20 Oct 2026 07:32:38 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-349034-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id D253A110B39; Tue, 20 Oct 2026 07:32:29 +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 99F5948EBD; Tue, 20 Oct 2026 04:30:57 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1792470655; b=VeiRzKKtYizkGTibUSjNN1agWyMaAhoXCh05YS9AdqO4q/Xp4gl6qGy/OvC/IqALGHYL rLXmZYmPcvhwovcchmmh9Utcyq7oVX5Hvdxd8LblFMK5IbxYxS+Q6DfXHoJrjRYeuHY7F kS1LpPiYhchxw1ASY0jTOqu84MqgHeoiuUmmMF9I79oTNhPawo6ug5vyCn1tRXqouSSMI p7QQNcjxAXg7rZwHNHJpOHdnuvStxAvjEsZUn3fCUJonsyU4PlDb0N5uo/fNd3xK86/YI bxraUaXOmSoLuGyR/w6pHIEyFbeEWIb8i782Zlyqfr4rQ1+Vvi2xuZD2MZ1VVFwpQOg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792470655; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Filter: DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:Content-Type:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Transfer-Encoding; bh=Zk31WB9hWO6u3WrXVB/NaCBT17Dt1bBOz+6YIxm/s7Q=; b=GLPNXgs5zqRdOic1a6tpSFS7GvbG4LNDq0NcHDQp7waoRqWK9OSntU/023Qew+So+vZ4 C14MaPiTxHszF+1b97561mGyot0wi/gmFGne0qhHNz3Nk+HZsrSSzsjo2NgvNbGaZQmgy OnGjf7bkclzoC5tQDtokYOCQubf0CaUmZG0U3mnOa/CTr4dmJpPvZceGT7sFKwUGD/6D/ z7LxiVGNX2ECMCrVAqo+kxNgFZBCPN8zJ3rBdXKv1xdZKCyWCP6ZFFxYzUG9osK/eOQeT zliYSoD6FFCHPj5q8FuoCqPKhtUcNX0XZweKER2pLVZPFaKOJYTVCoTe5mbEsZ3rlEg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=IgKhvKyx; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; arc=fail 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 AB796606A328; Tue, 20 Oct 2026 04:30:55 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=IgKhvKyx X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792470649; b=ecDM6WE4He8N3D8NK7Zsd6tOqOA2gQILPSJaCtWwQhggKPYrwYgkYmFrhGt6n7F+8hRa EJOzEg5pW1U7kiite0J1O+k+TPHBvMQhnGNdfApA3XXL2YmT4d6NXofF0L7m9TI/39oK0 xsLdBQs5bYixcDgfT08lCqIDnAwPj3uyTR61t3a+spkSGpKPVP/KOLlIUZqzJGgb444zD sCmkri0CyUhvLZBNMz9vj3ejRv5ZW7HFSS8apf5rlH9Dm2azfzic0izmUIBI5ReqIt07G x1iROypn9ou4lBJeEsRIbooT2CXGbVWAb606F2DssMuAkNhwFhPr5g6eksHU6BDRomQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792470649; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:Content-Type: MIME-Version:Content-Transfer-Encoding:X-Spam-Status: X-Spam-Checker-Version; bh=Zk31WB9hWO6u3WrXVB/NaCBT17Dt1bBOz+6YIxm/s7Q=; b=qNM0hmaUH3eDwlsdan77BVH/kZ+lgwrZmOyM9/sWrAlSict9Dlx90CxCI69Q8mm/BlCD mH0HYs41t0niJKwwpC4/we3C7YrosQm5lljidNft/E/st7vNg37Z+/jauSOCJmn/5kZHL JKvv7L6TQKScL0wy2ofz2t0bax2en/g/wzkbyUODlNsLXTadCCmhaxybTt8kycuN9V872 hWYP5kPzRcp2JVF2Wg00KVlVQhJ92b30pY8Uzo+nGSBUI98QY/gQ2fvizqUaA3rFIqHqU LNmKqRXw4lwiBudNgnv1xxMUYT/a+/9mVE2gj3T0MHvgYDe+IvGkVSptpN8Lh9Ozb8A== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=IgKhvKyx; arc=none smtp.remote-ip=13.77.154.182 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81502606A322; Tue, 20 Oct 2026 04:30:49 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 81502606A322 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com X-Received: from weh-cvm-dev-vm.y50bckvjo0hefgfnzfztsfttff.phxx.internal.cloudapp.net (unknown [20.169.55.37]) by linux.microsoft.com (Postfix) with ESMTPSA id DA91320B716C; Mon, 19 Oct 2026 21:30:41 -0700 (PDT) X-DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com DA91320B716C X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1792470642; bh=Zk31WB9hWO6u3WrXVB/NaCBT17Dt1bBOz+6YIxm/s7Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IgKhvKyxc5KLCUSw7mgVUncddKva54C4YGP7Dn6+XzJycpo2iJCJDezXQruS5pb15 7Y5DFZTbecNVQpUjn5KTn6OczPjo1nIVbWaKkV7CBfg6GxktMZY0CS0codeVcDLiJW +wqX2jPNAJf9DMcZEsYRUCNKhZV5xkWZtUhnf5MU= X-Cc: linux-rdma@vger.kernel.org, linux-hyperv@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org, weh@microsoft.com, kuba@kernel.org X-Mailer: git-send-email 2.43.0 X-In-Reply-To: <sashiko-outbox-175603@kernel.org> 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