Re: [PATCH v4] net: ethtool: do not call get_regs() for zero-length dumps

From: patchwork-bot+netdevbpf

Date: Tue Dec 01 2026 - 23:20:25 EST


Hello:

This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@xxxxxxxxxx>:

On Fri, 27 Nov 2026 15:23:48 +0800 you wrote:
> ethtool_get_regs() passes the user-supplied regs.len to the driver
> unchanged, including zero. A zero-length dump has nothing to fill in,
> but the driver callback still runs and may use that length for its own
> I/O. A zero-length transfer cannot move any data, and some transports
> report a warning for it, which becomes a denial of service when
> panic_on_warn is set.
>
> [...]

Here is the summary with links:
- [v4] net: ethtool: do not call get_regs() for zero-length dumps
https://git.kernel.org/netdev/net/c/0d39bf812678

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