Article View: linux.kernel.netdev
Article #22992Re: [PATCH wpan] ieee802154: look up the wpan_phy dump ifindex in the caller's netns
From: Stefan Schmidt
Date: Thu, 26 Nov 2026 09:15
Date: Thu, 26 Nov 2026 09:15
22 lines
8342 bytes
8342 bytes
Hello Maoyi Xie.
On Tue, 20 Oct 2026 14:51:25 +0800, Maoyi Xie wrote:
> nl802154_dump_wpan_phy_parse() looks up NL802154_ATTR_IFINDEX in
> init_net, while the dump only returns phys in the caller's netns. For a
> caller outside init_net, the result depends on what the ifindex is in
> init_net. If no device there has it, the dump returns -ENODEV, even
> when the ifindex is one of the caller's own 802.15.4 interfaces. If an
> 802.15.4 interface there has it, the dump is empty. If any other device
> there has it, the filter is ignored and the dump returns every phy in
> the caller's netns.
>
> [...]
Applied to wpan/wpan.git, thanks!
[1/1] ieee802154: look up the wpan_phy dump ifindex in the caller's netns
https://git.kernel.org/wpan/wpan/c/680451326592
regards,
Stefan Schmidt
Technical Details
Message-ID:
<179568454485.1932185.9237357328729820521.b4-ty@datenfreihafen.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371989-linux-kernel-netdev=dewy.ruReferences:
<20261020065125.896530-1-maoyixie.tju@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371989-linux-kernel-netdev=dewy.ru From: stefan@datenfreihafen.org (Stefan Schmidt) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH wpan] ieee802154: look up the wpan_phy dump ifindex in the caller's netns Date: Thu, 26 Nov 2026 10:15:50 +0100 Organization: Usenet Network Message-ID: <179568454485.1932185.9237357328729820521.b4-ty@datenfreihafen.org> References: <20261020065125.896530-1-maoyixie.tju@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="424764"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:CNOrS8p1l2klq8iB88AW5DwrYpM= sha256:uFIBWnXpmBfo26Q/l5Xji/ZQv3n+1G3KCQySXqFG+H4= sha1:cGIVLzLIJ+fTXjJKcYqA5uaEOlE= sha256:tc6NEbzwnRAkgo9IZZkwPsxBE1FXb7y8ObzaAl02T24= 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 C942A125EBC; Thu, 26 Nov 2026 12:16:10 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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-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 RDvD-K72zi1t; Thu, 26 Nov 2026 12:16:07 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-371989-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=datenfreihafen.org X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 839A7125EB7; Thu, 26 Nov 2026 12:16:02 +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 C62BB6057A2; Thu, 26 Nov 2026 09:16:01 +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=1795684559; b=ib2XHPvqeLpp44v8TJaPGJpZdsxVhv2qJIsAFyNLA89ieYi5XBt+F+ORmOcFUgdolyjY N4FkVl3uPjelXFB52r2kXKKdI+CZD2cNG1q1zqQpADhayPGG/1A0NfHynxqHuQX+rNrKL vHTjsT1ymfYp7/7EDSryMc1OzXHYuA20PgbHB0xbkKCHulsPkS3Kld6jC3xqH/he0/3ro YTqFdF8Kn+0Xw+z6lo+ZPNu566oVaJop5iWw9WKUx0KT1FwBux1z41iipSXQ3Vyg5hBXd fwmL8ORvIO8j4rbOjEjOo5AtSIHTDXgyMHk/BiSicEszFdz46I2SjY9PQbb657Kl6sg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795684559; h=X-Original-To:Received:DMARC-Filter:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=7jSrQRRcBQPkSXCULGpxKEJk5ZBmaZCQEDccZmwwGdY=; b=t0sEaysE6mBBDxF2uF86KpCOXbcu5NLfDA0YU9IjzWcXyYeC3He7zzU4qXMKAxuNS78p vVSGnzkfB+htRi8meJ3735Gm0H0IrhwR6sWtgg4zeoyWeqiT+A84obB/W9GGJLXGMYG4O IGXSoRqxRor1kzxa4QnyJNSzkHLuWwKlJkmXgpvNIcd5WbT+oaxnrCdRuO3N77ci2Mrt1 HX9F7Sm1iXUH1np29IauM682g+jJ6ws5/EZ7WEC2GuJ3tXKZcKjtsjf2SYd6VmV84GgeD Uug2ggtQFdmQA+j6VYRNY5IyTahif0/O16TIPuowk9MvW3LZw1sDtLs6LWRXZDKuvEg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=datenfreihafen.org; spf=pass smtp.mailfrom=datenfreihafen.org; 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 81943606A33B; Thu, 26 Nov 2026 09:15:59 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=78.47.171.185 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795684558; b=twHaO9Pmx8732NcGVNQMGRhKFJqo4FEeTZdJPRJ8mOsXYV5FstD2k6x3L1TKiBrNKnvQ RjLXv1yAl2sXkLi9oaF13a+Ropirxt2g/Yzr0ciHdVYaX8PQwyYJ9jiaC8V9u0qdJUJ76 +/4SawJuYzZHra4mQBwE6ZNX6kP0iW8K5nvj/UaNlTXVyWawToRc/T+fJfcScOWsDzG6j H7bh8Rmm+XhRKktodZ1hJABkiumxvClZP3F6CGhZzdI4rGuquiru9Kf8nbBHNECPbtr6z 17WzT/Ap26AR1UiBXaD4oE0igEOb1JoeU47WgYjsRE/vUb4AJ1RXwIRzbjmiMJxdrtQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795684558; h=DMARC-Filter:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=7jSrQRRcBQPkSXCULGpxKEJk5ZBmaZCQEDccZmwwGdY=; b=E71nNTaHwaa+D7nnPzWJqFeCSDo58we+12kMH3Ck/KJX4T0XWlF5N1Vq/AItEQmt2Oov sywGvPBluTFs5zUsORCi1ApwGKOalKT6Vc2DX7u6ekMZbmBirWrKBM8B+zYsCKuUv7X96 HXo4eUsd7tmi6zDidiAmVy+Lhp0pFAGOrffN+xwN+5Rs3xQHp9LLFYTucP0khABBBwx1/ zf7wJ5E5bGVAGeWWs1+jD4P2NwhiSnORWfK9yCz5WeGktq10MKUEA3JTslh6QzOCe6E84 KX2XhiXp+ZfRvEPZKzH7z2dnKmUrJDQwwQzXfmnmu1z2OmXLHhq3W8Xe0Wj/ZwHMlmg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=datenfreihafen.org; spf=pass smtp.mailfrom=datenfreihafen.org; arc=none smtp.remote-ip=78.47.171.185 X-Received: from proxima.lasnet.de (proxima.lasnet.de [78.47.171.185]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76F56606A32C; Thu, 26 Nov 2026 09:15:58 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 76F56606A32C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=datenfreihafen.org X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=datenfreihafen.org X-Received: from work.datenfreihafen.local (unknown [46.253.254.165]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: stefan@sostec.de) by proxima.lasnet.de (Postfix) with ESMTPSA id 76E1BC02DA; Thu, 26 Nov 2026 10:15:56 +0100 (CET) X-Cc: Stefan Schmidt <stefan@datenfreihafen.org>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Marcel Holtmann <marcel@holtmann.org>, Chandru Gopi <chandru.gopi.dev@gmail.com>, linux-wpan@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: git-send-email 2.56.1 X-In-Reply-To: <20261020065125.896530-1-maoyixie.tju@gmail.com> 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