🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #14959

Re: [PATCH net v2] net: ethtool: phy: warn about a phydev with no link topology

#14959
From: Linkui Xiao
Date: Thu, 12 Nov 2026 08:09
39 lines
10143 bytes
Hi,

On 2026/11/12 16:02, netdev-bot+sinfo@kernel.org wrote:
> Hi!
> 
> This is an automated message. This series looks like a fix, but its
> commit messages seem to be missing some information:
> 
>   - How the issue was discovered, e.g. hit in production, hit during
>     development, syzbot report, manual code inspection, LLM or static
>     analysis tool scan.
> 
> Please do not repost the series just to address the above. Instead,
> reply to this email with the missing information, so that reviewers
> can take it into account. If the series needs another revision for
> other reasons, please include the information in the commit messages
> then.
> 
> The evaluation is done by an LLM so it may be wrong, if you think
> that is the case please reply and explain.
Thanks for the reminder. The issue was found during an audit of
net/ethtool/ assisted by an LLM (Codex). The audit went through every
place that dereferences dev->link_topo, and phy_prepare_data() stood out
as the only one that does not cope with a missing topology. Following
that back led to the IBM EMAC driver assigning ndev->phydev by hand on
its fixed-link path, bypassing phy_attach_direct().

I verified the Fixes: commit (9dd2ad5e92b9) and both call paths (doit
and dump) by reading the code. The issue was not hit in production: no
in-tree DTS pairs "ibm,emac" with "fixed-link", so it is latent in
mainline and only out-of-tree users such as the Netgear WNDAP620 would
hit it.

As you suggested, I am not reposting the series for this. If a v3 is
needed for other reasons, I will fold this into the commit messages.

Thanks,
Linkui
Technical Details
Message-ID: <19495076-dd9d-4e39-900f-30d47aabf8df@126.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.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-361582-linux-kernel-netdev=dewy.ru
References: <20261112075517.3904496-1-xiaolinkui@126.com> <179447052068.2168702.1832622139543878794@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.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-361582-linux-kernel-netdev=dewy.ru
From: xiaolinkui@126.com (Linkui Xiao)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] net: ethtool: phy: warn about a phydev with no link topology
Date: Thu, 12 Nov 2026 16:09:45 +0800
Organization: Usenet Network
Message-ID: <19495076-dd9d-4e39-900f-30d47aabf8df@126.com>
References: <20261112075517.3904496-1-xiaolinkui@126.com> <179447052068.2168702.1832622139543878794@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network; logging-data="1043459"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:R42quXF5mVoAasMiDOiRNn33ZWM= sha256:/moZGVe8Tk0fW9hk2qhcaK+AOqGjz1/nvZqlPcN7C8Q= sha1:lr75SeM6lsR0HSsHr+j1SNeMFBo= sha256:ZUpV514pORghidvL0cCDnGc9Vdqu4VuQ/HFK8m3noUw=
Content-Language: en-US
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 EAF70114153; Thu, 12 Nov 2026 11:40:55 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 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, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, 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-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=126.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 bT3F6hQW_cwt; Thu, 12 Nov 2026 11:40:52 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-361582-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=126.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 7A20D114151; Thu, 12 Nov 2026 11:40:43 +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 62D30E5EC9; Thu, 12 Nov 2026 08:12:12 +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=1794471102; b=Xb/syy3hy7/ddMUPk0BKT44D1gIEAttB/MhECUbUteBKj5n+8I0tZtq/hwf7GQsvlMOF L0cyjTSF9lwBO7zJMFp9Y9ARhswm/B8RaowG2ckVB1ulk/qZGsRpbH1wLEsK2pfZIO9YF yCadkNJ8BBapGuEYYDwYFa1jodxK/hMhRqixoDywqo97+KIxT7tIZXyX/Ts2LX1NUg9oM 4/29+2wjsZk5Cm6nRclntfDy4ndb0k6bCDnCI/KRVdDGIHStHeFifXq3BdlIr4wKVFmoX sws+h4XMYXczxfavMPEupd9nKU60g0c2WvE7pm+7x9BrLOOQAh4cehm2+AOdQDDNafA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794471102; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Message-ID:Date: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-CM-TRANSID: X-Coremail-Antispam:X-CM-SenderInfo; bh=1edyD5N1J8EN3b69dNiB9A5qFAQtafbY1ICw7qjdkS0=; b=Z5IHe7XEtDeNw13SE+cuDSqNEJaXOszXs4xeB80tZuiHnAFPSEIHybbfWCsU1q6F0hdz yLA1DIGjqrPjtynKh+jmaNFWs3/5/4qXl0OyoREEgQAL666YU1u7+E+cRpfSEU7fo5e7Z kKu/JBT31AZ4JDnfJTpvBjNlG0YOo+3yB5IA6OtpyWWE9Lv1j8TJfwnIIcHbTSrsTvqlY z5a8pRHOKBqLBZVrQYhdmDhRVhf+lEQO+WjRT+cLKKYyHnoJVgEBd4DqKdFlWBrIlluEm SWetzQxLXf7vrt3H1SnggZYroaoBs5nCWiQJUacwjNlnerY8ObxJbJueg1CcnCHFp/w==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=126.com header.i=@126.com header.a=rsa-sha256 header.s=s110527 header.b="D/f90ToT"; dmarc=pass header.from=126.com; spf=pass smtp.mailfrom=126.com; 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 D2E8C606A8B7; Thu, 12 Nov 2026 08:11:42 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.a=rsa-sha256 header.s=s110527 header.b=D/f90ToT
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=117.135.210.7
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794471102; b=OB7Yx4r8EITDb5zW5/O5u3c1Eqw5ALGfxLGsyMz9j0nmKTBG+gbZbIFI7T9r0EZjlgii qNXTFtwVxyfVC9S6x06FF/1nRbCuSqBAnWJEqGWJ5ZDN+3H1THO4tPz8djCZLOG+1uI7A hXUB6wHvwLW/BetT5xaYwqSUGPOUtfW6nBNQFwoe5KoOth5oZGtsKJDkysipclkRBsGDy awinoMlsV98v47k90FoqwiScSS0H4COmIebwZ8pKLxvt85cfkztBFLLv7CioaM3Nbqxoh GNrkMXUrYtsaazZF9L9783ZWcE7NjTW5IhzBDDmjya2MFDeQFVsRu4qWB+UE9+eDzMA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794471102; h=DMARC-Filter:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-CM-TRANSID: X-Coremail-Antispam:X-CM-SenderInfo; bh=1edyD5N1J8EN3b69dNiB9A5qFAQtafbY1ICw7qjdkS0=; b=KsN+nsgSeT3E3Jsx9IE23iSfh7Hs4KnkuYqQM8am2W9Oz6wigVHpZdpYeJCCVnvuOg2s Drjouwcfbn0r+6w6m4Cf8kwry7ET5kR1dJTq3ihR7es6tP+X89Dbp6nFqv4xaNQs4Cl/o QpQN5WGCmFztWZlhx1+AuoWPypGCIIEopMCnmpbYww9fjy+1arevj7tBxfDo+t9Z2tHNs VNm8EG19BMq9JKLp7qSqRpkse63//2oPJ1wv1sOvdLnpnsC5PmyeNbv8Mdx0PkOFQmFtn jc30w6UauRJkKrCZZHZWRM3qr6lhXiuzEtNJNd6fZSyPn4Ar3/KXj3Eu1BTQ3woLASw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=126.com; spf=pass smtp.mailfrom=126.com; dkim=pass header.d=126.com header.i=@126.com header.a=rsa-sha256 header.s=s110527 header.b="D/f90ToT"; arc=none smtp.remote-ip=117.135.210.7
X-Received: from m16.mail.126.com (m16.mail.126.com [117.135.210.7]) (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 0D8B2606A339; Thu, 12 Nov 2026 08:11:37 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0D8B2606A339
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=126.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=Message-ID:Date:MIME-Version:Subject:To:From: Content-Type; bh=1edyD5N1J8EN3b69dNiB9A5qFAQtafbY1ICw7qjdkS0=; b=D/f90ToT2XVcnqcAcmE4YR526ESKRs1jkhOxCxK5XiB9FTs/GSBnPo42WODGfK yQbNdHs0dKYKKcMK91GmmYS3VuK+h1wN7E8oLJ1aIh1N0m4CokO0Zyw/2sDFoJM+ arGm671TGGrTWrBJMDJ0RFV8ChmgQVof+zJWD2moLdSlk=
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-User-Agent: Mozilla Thunderbird
X-Cc: maxime.chevallier@bootlin.com, andrew@lunn.ch, kuba@kernel.org, davem@davemloft.net, edumazet@kernel.org, pabeni@redhat.com, horms@kernel.org, devnexen@gmail.com, sdf@fomichev.me, 2022090917019@std.uestc.edu.cn, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Linkui Xiao <xiaolinkui@kylinos.cn>
X-In-Reply-To: <179447052068.2168702.1832622139543878794@kernel.org>
X-CM-TRANSID: _____wD3N6hJdPVqvWnTDA--.16124S2
X-Coremail-Antispam: 1Uf129KBjvJXoW7tr43WFWrur17Wr1fXrWUurg_yoW8Wry8pF Wjga95AF98Jr1xtF1kZw40v3W0yrnxGayUWr1YgrW5Z3Z8K3W8KF4aqr45J398Gr9av3W0 qrWUt3W5ZFyqvaDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07Uuv38UUUUU=
X-CM-SenderInfo: p0ld0z5lqn3xa6rslhhfrp/xtbBqQtHHmr1dEumEAAA3t