From: Johan Hovold <johan@kernel.org>
To: Oliver Neukum <oneukum@suse.com>
Cc: linux-usb@vger.kernel.org, johan@kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] cypress_m8: add sanity checking
Date: Thu, 17 Mar 2016 10:46:19 -0400 [thread overview]
Message-ID: <20160317144619.GA2018@localhost> (raw)
In-Reply-To: <1458209251-15366-1-git-send-email-oneukum@suse.com>
On Thu, Mar 17, 2016 at 11:07:31AM +0100, Oliver Neukum wrote:
> An attack using missing endpoints exists.
> CVE-2016-3137
>
> Signed-off-by: Oliver Neukum <ONeukum@suse.com>
> CC: stable@vger.kernel.org
> ---
> drivers/usb/serial/cypress_m8.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c
> index 01bf533..8eeff72 100644
> --- a/drivers/usb/serial/cypress_m8.c
> +++ b/drivers/usb/serial/cypress_m8.c
> @@ -447,6 +447,12 @@ static int cypress_generic_port_probe(struct usb_serial_port *port)
> struct usb_serial *serial = port->serial;
> struct cypress_private *priv;
>
> + if (!port->interrupt_out_urb || !port->interrupt_in_urb) {
> + dev_err(&port->dev,
> + "cypress_m8 is missing a required endpoint");
Trailing '\n' missing.
No need to include the driver name here, it will be added by dev_err.
Also please include a patch revision in the summary when resending (and
a changelog below the cut-off line).
Thanks,
Johan
next prev parent reply other threads:[~2016-03-17 14:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-17 10:07 [PATCH] cypress_m8: add sanity checking Oliver Neukum
2016-03-17 14:46 ` Johan Hovold [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-03-16 14:19 Oliver Neukum
2016-03-16 15:08 ` Johan Hovold
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=20160317144619.GA2018@localhost \
--to=johan@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=oneukum@suse.com \
--cc=stable@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.