Thread (5 messages) 5 messages, 3 authors, 21d ago

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

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help