From: David Miller <davem@davemloft.net>
To: bjorn@mork.no
Cc: netdev@vger.kernel.org, linux-usb@vger.kernel.org,
oneukum@suse.com, dvyukov@google.com, kcc@google.com,
syzkaller@googlegroups.com
Subject: Re: [PATCH net,stable] net: qmi_wwan: fix divide by 0 on bad descriptors
Date: Wed, 08 Nov 2017 13:44:47 +0900 (KST) [thread overview]
Message-ID: <20171108.134447.1632260346431831673.davem@davemloft.net> (raw)
In-Reply-To: <20171106143218.2880-1-bjorn@mork.no>
From: Bjørn Mork <bjorn@mork.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@google.com>
> Signed-off-by: Bjørn Mork <bjorn@mork.no>
Applied and queued up for -stable.
prev parent reply other threads:[~2017-11-08 4:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-06 14:32 [PATCH net,stable] net: qmi_wwan: fix divide by 0 on bad descriptors Bjørn Mork
2017-11-08 4:44 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171108.134447.1632260346431831673.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=bjorn@mork.no \
--cc=dvyukov@google.com \
--cc=kcc@google.com \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oneukum@suse.com \
--cc=syzkaller@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).