Netdev List
 help / color / mirror / Atom feed
From: FUJITA Tomonori <tomo@flapping.org>
To: andrew@lunn.ch
Cc: tomo@flapping.org, andrew+netdev@lunn.ch, davem@davemloft.net,
	edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
	hfdevel@gmx.net, johan@kernel.org, netdev@vger.kernel.org,
	fujita.tomonori@gmail.com
Subject: Re: [PATCH net] net: tn40xx: terminate the PHY software node property array
Date: Thu, 26 Nov 2026 07:21:58 +0900 (JST)	[thread overview]
Message-ID: <20261126.072158.1259538136818633027.tomo@flapping.org> (raw)
In-Reply-To: <871628b2-f8c3-4181-885e-ac42c8a3b40d@lunn.ch>

On Wed, 25 Nov 2026 17:57:59 +0100
Andrew Lunn <andrew@lunn.ch> wrote:

> On Tue, Nov 24, 2026 at 04:26:46PM +0900, FUJITA Tomonori wrote:
>> From: FUJITA Tomonori <fujita.tomonori@gmail.com>
>> 
>> The PHY software node uses phy_props[] as its property array. The array
>> has three entries and no empty entry at the end. Property lookups walk
>> the array until they find an entry with a NULL name, so they read past
>> the end of phy_props[].

[...]

> The same problem was fixed in the txgbe driver in April.
> 
> If you have time, could you look over all ethernet drivers and see if
> there are any more drivers with this problem. I don't think there are,
> it is pretty unusual to do this, but i don't know every driver...

Among the ethernet drivers, only txgbe and tn40xx use swnode. I think
that there are no more drivers with this problem.

>> Fixes: 25b6a6d29d40 ("net: tn40xx: create swnode for mdio and aqr105 phy and add to mdiobus")
>> Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
> 
> Reviewed-by: Andrew Lunn <andrew@lunn.ch>

Thanks!

  reply	other threads:[~2026-11-25 22:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  7:26 [PATCH net] net: tn40xx: terminate the PHY software node property array FUJITA Tomonori
2026-11-25 16:57 ` Andrew Lunn
2026-11-25 22:21   ` FUJITA Tomonori [this message]
2026-11-30  3:50 ` patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261126.072158.1259538136818633027.tomo@flapping.org \
    --to=tomo@flapping.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=fujita.tomonori@gmail.com \
    --cc=hfdevel@gmx.net \
    --cc=johan@kernel.org \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox