[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20171108.134447.1632260346431831673.davem@davemloft.net>
Date: Wed, 08 Nov 2017 13:44:47 +0900 (KST)
From: David Miller <davem@...emloft.net>
To: bjorn@...k.no
Cc: netdev@...r.kernel.org, linux-usb@...r.kernel.org,
oneukum@...e.com, dvyukov@...gle.com, kcc@...gle.com,
syzkaller@...glegroups.com
Subject: Re: [PATCH net,stable] net: qmi_wwan: fix divide by 0 on bad
descriptors
From: Bjørn Mork <bjorn@...k.no>
Date: Mon, 6 Nov 2017 15:32:18 +0100
> A CDC Ethernet functional descriptor with wMaxSegmentSize = 0 will
> cause a divide error in usbnet_probe:
>
> divide error: 0000 [#1] PREEMPT SMP KASAN
...
> Fix by simply ignoring the bogus descriptor, as it is optional
> for QMI devices anyway.
>
> Fixes: 423ce8caab7e ("net: usb: qmi_wwan: New driver for Huawei QMI based WWAN devices")
> Reported-by: Andrey Konovalov <andreyknvl@...gle.com>
> Signed-off-by: Bjørn Mork <bjorn@...k.no>
Applied and queued up for -stable.
Powered by blists - more mailing lists