Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1731649
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Dmitry Torokhov <dmitry.torokhov@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] HID: i2c-hid: allocate hid buffers for real worst case |
| Date | Wed, 13 Sep 2017 17:00:02 +0200 |
| Message-ID | <uphiW-e2-1@gated-at.bofh.it> (permalink) |
| References | <unvJo-1M9-15@gated-at.bofh.it> <upgwy-8oG-15@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=y5cTu1Qzv35aO81iS3OgxqLNMo3R0uKdgQZVgv+j5IY=; b=S4NLZCN12SFMVp8lQYOR4WLtNZkuf91zBoRnzeMMXP8rdw5CqH5R6C6jZd8lrcjnu+ P8Icpj1wEdz6MNt+3Fk1dNn4zp64Y+/AwA4EHWdrmz7C7bJVPdBf68OszBlbnGo1iMji FZ6pa9cE8q/Oi+84O0VBfbPapgHXSRIOGLko4v81wcL/U8n1U1PW82m07R4ZFiPawyQD xEYTTR7ZGWVdhX8qQ2YtpX3wmFGYolOCV0h3J3A51y3BazK902OkLKNyUCEpV3RDnwf8 fS+czm1tmnprvFI133jBFSkmIU/5Z6LRM7SAbqpD8vUu+ho87Faezij4GdqUY5xh7f5D 8wPg== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=y5cTu1Qzv35aO81iS3OgxqLNMo3R0uKdgQZVgv+j5IY=; b=B/VQdBgg7PfgxE0smVILcXh4fdmJcdKp1Du4DtPzq8vAigM5E5pnNsBvBLzOc07s0I e3TXtGvr4qNtqgK3choAtQA0MdpMV/3CTOmnkgj0TXST93tAxfe4cepw4jEhgU0arpzo QbcYv0CW4gYqGJ3Y84dKSJBN/Df/W//Hmx6haT7upWcnc9i1vWOk2VQTCKKe/tooxqp0 IT8rpp6sSUdZFO4WR7xkpnJS+0flwB+ysYZwbndA2oFF51/u2o7LI63udGURExt1SE27 YxlqWw0jADFYhrZxsykthfRvAIFN7lgWsmWnIB61+t4d65IZUvLeYA+tKqlWOnOiKgU2 CYqQ== |
| X-Gm-Message-State | AHPjjUi45MbNGy03+thVmQMgSRVvaudiRZ83SStDigYnkUZgChRHFy5G sR7WBrTVEJ3VyA== |
| X-Google-SMTP-Source | AOwi7QD8N8h6YFE4hNbOHMC3jMig5l2kuFLW6P7wTNs5zLzupoq8OmV/F40UWoyPIe49ZuApelH//w== |
| X-Received | by 10.84.238.16 with SMTP id u16mr4600255plk.217.1505314193639; Wed, 13 Sep 2017 07:49:53 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 28 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Benjamin Tissoires <benjamin.tissoires@redhat.com>, Guenter Roeck <groeck@chromium.org>, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org |
| X-Original-Date | Wed, 13 Sep 2017 07:49:50 -0700 |
| X-Original-Message-ID | <20170913144950.GA1122@dtor-ws> |
| X-Original-References | <20170908175527.GA19720@dtor-ws> <nycvar.YFH.7.76.1709130701170.4703@jbgna.fhfr.qr> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1731649 |
Show key headers only | View raw
On Wed, Sep 13, 2017 at 07:02:05AM -0700, Jiri Kosina wrote: > On Fri, 8 Sep 2017, Dmitry Torokhov wrote: > > > From: Adrian Salido <salidoa@google.com> > > > > The buffer allocation is not currently accounting for an extra byte for > > the report id. This can cause an out of bounds access in function > > i2c_hid_set_or_send_report() with reportID > 15. > > > > Signed-off-by: Guenter Roeck <groeck@chromium.org> > > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> > > Missing signoff from the patch author? Oops, I must have cut it off on accident while removing ChromeOS specific tags, the original commit is here: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/475212 > > Also, I think this should have Cc: stable, right? I usually let maintainers decide, but yes. Thanks. -- Dmitry
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] HID: i2c-hid: allocate hid buffers for real worst case Jiri Kosina <jikos@kernel.org> - 2017-09-13 16:10 +0200
Re: [PATCH] HID: i2c-hid: allocate hid buffers for real worst case Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-09-13 17:00 +0200
Re: [PATCH] HID: i2c-hid: allocate hid buffers for real worst case Jiri Kosina <jikos@kernel.org> - 2017-09-13 17:00 +0200
Re: [PATCH] HID: i2c-hid: allocate hid buffers for real worst case Benson Leung <bleung@google.com> - 2017-09-13 17:10 +0200
csiph-web