Re: [PATCH net,stable] net: cdc_ether: fix divide by 0 on bad descriptors

2017-11-07 Thread David Miller
From: Bjørn Mork Date: Mon, 6 Nov 2017 15:37:22 +0100 > Setting dev->hard_mtu to 0 will cause a divide error in > usbnet_probe. Protect against devices with bogus CDC Ethernet > functional descriptors by ignoring a zero wMaxSegmentSize. > > Signed-off-by: Bjørn Mork

Re: [PATCH net,stable] net: cdc_ether: fix divide by 0 on bad descriptors

2017-11-06 Thread Oliver Neukum
Am Montag, den 06.11.2017, 15:37 +0100 schrieb Bjørn Mork : > Setting dev->hard_mtu to 0 will cause a divide error in > usbnet_probe. Protect against devices with bogus CDC Ethernet > functional descriptors by ignoring a zero wMaxSegmentSize. > > Signed-off-by: Bjørn Mork

[PATCH net,stable] net: cdc_ether: fix divide by 0 on bad descriptors

2017-11-06 Thread Bjørn Mork
Setting dev->hard_mtu to 0 will cause a divide error in usbnet_probe. Protect against devices with bogus CDC Ethernet functional descriptors by ignoring a zero wMaxSegmentSize. Signed-off-by: Bjørn Mork --- I believe the problem found by syzcaller in qmi_wwan also applies to