Netdev List
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Quan Sun <2022090917019@std.uestc.edu.cn>
Cc: netdev@vger.kernel.org, maxime.chevallier@bootlin.com,
	andrew@lunn.ch, kuba@kernel.org, edumazet@google.com,
	pabeni@redhat.com
Subject: Re: [PATCH net v2] net: ethtool: fix NULL pointer dereference in phy_reply_size
Date: Fri, 08 May 2026 22:40:07 +0000	[thread overview]
Message-ID: <177828000780.878212.13962692522047721706.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20260507131738.1173835-1-2022090917019@std.uestc.edu.cn>

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu,  7 May 2026 21:17:38 +0800 you wrote:
> In phy_prepare_data(), several strings such as 'name', 'drvname',
> 'upstream_sfp_name', and 'downstream_sfp_name' are allocated using
> kstrdup(). However, these allocations were not checked  for failure.
> 
> If kstrdup() fails for 'name', it returns NULL while the function
> continues. This leads to a kernel NULL pointer dereference and panic
> later in phy_reply_size() when it unconditionally calls strlen() on
> the NULL pointer.
> 
> [...]

Here is the summary with links:
  - [net,v2] net: ethtool: fix NULL pointer dereference in phy_reply_size
    https://git.kernel.org/netdev/net/c/4908f1395fb1

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



      parent reply	other threads:[~2026-05-08 22:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-07 13:17 [PATCH net v2] net: ethtool: fix NULL pointer dereference in phy_reply_size Quan Sun
2026-05-07 15:39 ` Maxime Chevallier
2026-05-08 22:31   ` Jakub Kicinski
2026-05-08 22:40 ` patchwork-bot+netdevbpf [this message]

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=177828000780.878212.13962692522047721706.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=2022090917019@std.uestc.edu.cn \
    --cc=andrew@lunn.ch \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=maxime.chevallier@bootlin.com \
    --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