Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: cdc_mbim: reject IP packets on DSS VLANs

DSS VLANs are pseudo network interfaces representing arbitrary
data streams, and specifically not IP. Preventing spurious IP
packets can sometimes be a hassle. The kernel will for example
send an IPv6 Router Solicit when the interface is brought up
unless the user has been careful enough to disable IPv6 first.
Such packets forwared to a MBIM DSS session will look like
spurious noise to the device, and can cause it to log an error
or even malfunction.

Drop all IP packets on the designated DSS VLANs to prevent such
unwanted spurious transmissions.

Cc: Greg Suarez <gsuarez@smithmicro.com>
Reported-by: Arnaud Desmier <adesmier@sequans.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Bjørn Mork and committed by
David S. Miller
6e1b3095 146a08d2

+2
+2
drivers/net/usb/cdc_mbim.c
··· 237 237 c[3] = tci; 238 238 break; 239 239 case 0x0100: /* VLAN ID 256 - 511 */ 240 + if (is_ip) 241 + goto error; 240 242 sign = cpu_to_le32(USB_CDC_MBIM_NDP16_DSS_SIGN); 241 243 c = (u8 *)&sign; 242 244 c[3] = tci;