Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752041AbdIMOuG (ORCPT ); Wed, 13 Sep 2017 10:50:06 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36217 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751581AbdIMOty (ORCPT ); Wed, 13 Sep 2017 10:49:54 -0400 X-Google-Smtp-Source: AOwi7QD8N8h6YFE4hNbOHMC3jMig5l2kuFLW6P7wTNs5zLzupoq8OmV/F40UWoyPIe49ZuApelH//w== Date: Wed, 13 Sep 2017 07:49:50 -0700 From: Dmitry Torokhov To: Jiri Kosina Cc: Benjamin Tissoires , Guenter Roeck , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] HID: i2c-hid: allocate hid buffers for real worst case Message-ID: <20170913144950.GA1122@dtor-ws> References: <20170908175527.GA19720@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 839 Lines: 28 On Wed, Sep 13, 2017 at 07:02:05AM -0700, Jiri Kosina wrote: > On Fri, 8 Sep 2017, Dmitry Torokhov wrote: > > > From: Adrian Salido > > > > 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 > > Signed-off-by: Dmitry Torokhov > > 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