Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp723749ybv; Fri, 7 Feb 2020 07:23:54 -0800 (PST) X-Google-Smtp-Source: APXvYqy9ae8OVtjitNoMJdKCPTvNqwbZ26IowzwUp3LodvRU71g4wXteDdk3v0cD9LDWbjOqMoCL X-Received: by 2002:aca:3f54:: with SMTP id m81mr2347231oia.73.1581089034689; Fri, 07 Feb 2020 07:23:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581089034; cv=none; d=google.com; s=arc-20160816; b=QZZY1LsBx+gAd9NupDuekhmGxO3g+yXrQsHn9Gqnbt4s8aL8WL6Dccwgi7ydToaj+7 2AeIIp9ZdCS5A8AWURZITA3ZgHRsI7nk/1sief5rUJ0SYgUD/T/dKpSh1g9cvjhx2vLI 6rhLj0scj3duo49pQMlXU+EvhqUl4dEfLdhCBnMCVpgUjxhs0SM/WndzwfxsaNIHS1Kx 20/sstWhHZv0rilasWo6/HxglUOYoj+tapQ8sIh+bcg8yO+vaCiqp1Oxex6vaSZaVBeC bCUGudC+hx2FFPembcrXRTe8O6q2MSq06OQGAYtIe6yVNE/6lAz1qxxE1ppF0Sx1ZIHw e7XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:in-reply-to:subject:cc:to:from:date; bh=xIKhRcfUIG2OGMC8Hj0iQPUBXjLEwpWYz2Ux584xYcQ=; b=owKwehwzSCTUg9Wt6ikle7dmoAgM5lDfXRnx3/vCq7I+EzLmtgLhQ7ZxDA1JoL2k2Y 27wXXqpHatr7IX7/BcZDj4hPnDMGpQqSU8crtDlTdvUCoFw4ZIYGRKH/MJMECmlXbgc0 m8cGMCRjq/H7pcR/i9yAhyaBJ/ynHZHeAV2W7VtAdS3azwUdIckQAXxZKiuPfiAUNWBX 3Ma1ip4vf/dl8FF7ycj0JIVpg29EmtAuVjj29AyJb5g+N0sJE4aj6sAFrqMwvSG8dU4l NnTvYlnZSu94uoEZrB6SHLyNuMGPntOykIWJVtDVCNqBEcaVhvFM94FNnw7RlpdWyLoB YSKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c130si3981231oib.182.2020.02.07.07.23.42; Fri, 07 Feb 2020 07:23:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727028AbgBGPWR (ORCPT + 99 others); Fri, 7 Feb 2020 10:22:17 -0500 Received: from netrider.rowland.org ([192.131.102.5]:56381 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726674AbgBGPWR (ORCPT ); Fri, 7 Feb 2020 10:22:17 -0500 Received: (qmail 4104 invoked by uid 500); 7 Feb 2020 10:22:16 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 7 Feb 2020 10:22:16 -0500 Date: Fri, 7 Feb 2020 10:22:16 -0500 (EST) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: "Enderborg, Peter" cc: Jiri Kosina , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: Re: [PATCH 5.4 17/78] HID: Fix slab-out-of-bounds read in hid_field_extract (Broken!) In-Reply-To: <96c523ea-799f-ad2f-f1c4-46ff6f9f6d6c@sony.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 7 Feb 2020, Enderborg, Peter wrote: > On 2/6/20 4:14 PM, Alan Stern wrote: > > I guess you have to unbind the device from the usbhid driver first in > > order for lsusb to get them. Can you do that? > > > > Alan Stern > > > Im not sure exatly what you need to unbind. But I assume this is what you want: > >  lsusb -v -d 0fd9:0060 Yes, that's it. Most of the reports have: >             Item(Global): Report Size, data= [ 0x08 ] 8 >             Item(Global): Report Count, data= [ 0x10 ] 16 which means they are 16 bytes long. But one report has: >             Item(Global): Report Size, data= [ 0x08 ] 8 >             Item(Global): Report Count, data= [ 0xfe 0x1f ] 8190 meaning it is 8190 bytes long (plus one byte for the report ID). Therefore setting the maximum buffer size to 8192 should allow this device to work properly, with no other changes needed. Alan Stern