Re: [PATCH] net: usb: mcs7830: skip zero-length register dump reads
From: YuanZhe Liu
Date: Wed Nov 25 2026 - 02:32:35 EST
Hi,
The issue was found during testing of the driver's ethtool register dump
path, not in production or from a bug report. A bound MCS7830 interface
and CAP_NET_ADMIN are enough: requesting a zero-length register dump
(ETHTOOL_GREGS with regs.len = 0) reaches mcs7830_get_regs() and makes it
submit the zero-length vendor control-IN request that triggers the
warning. It reproduces every time the ioctl is issued with len = 0.
Thanks,
YuanZhe Liu