Re: [PATCH net v2] usbnet: limit max_mtu based on device's hard_mtu
From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-01-21 03:10:10
Also in:
linux-usb, lkml
From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-01-21 03:10:10
Also in:
linux-usb, lkml
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski [off-list ref]: On Mon, 19 Jan 2026 08:55:18 +0100 you wrote:
The usbnet driver initializes net->max_mtu to ETH_MAX_MTU before calling the device's bind() callback. When the bind() callback sets dev->hard_mtu based the device's actual capability (from CDC Ethernet's wMaxSegmentSize descriptor), max_mtu is never updated to reflect this hardware limitation). This allows userspace (DHCP or IPv6 RA) to configure MTU larger than the device can handle, leading to silent packet drops when the backend sends packet exceeding the device's buffer size. [...]
Here is the summary with links:
- [net,v2] usbnet: limit max_mtu based on device's hard_mtu
https://git.kernel.org/netdev/net/c/c7159e960f14
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html