Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E023C433FE for ; Thu, 2 Dec 2021 09:25:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356406AbhLBJ3Q (ORCPT ); Thu, 2 Dec 2021 04:29:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356409AbhLBJ3O (ORCPT ); Thu, 2 Dec 2021 04:29:14 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1716C06174A for ; Thu, 2 Dec 2021 01:25:52 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 19B74CE21E1 for ; Thu, 2 Dec 2021 09:25:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2C99C53FD0; Thu, 2 Dec 2021 09:25:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1638437149; bh=WmEVglCL4Zcfl9VAMN6D0zYs2IPgG9DRkCC53YuOKGI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=A/07kGm9Y9C2tk27/HgHaNr+E+La9UWkOaetfBLlKdXTL1CUn1xB9uoXdByyfx5B3 mntFF2tN6CZlOoKREryLNMbXM7BE3kCl7+Kc6/qyfsYi0MqKLVJQpt+41poK8fBbUR qU1G9aSxoFoWN3ttPUtPnwnNfii/M7FumBideHUw= Date: Thu, 2 Dec 2021 10:25:46 +0100 From: Greg Kroah-Hartman To: Benjamin Tissoires Cc: Jiri Kosina , "open list:HID CORE LAYER" , Michael Zaidman , Stefan Achatz , Maxime Coquelin , Alexandre Torgue Subject: Re: [PATCH v3 3/3] HID: check for valid USB device for many HID drivers Message-ID: References: <20211201183503.2373082-1-gregkh@linuxfoundation.org> <20211201183503.2373082-3-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org On Thu, Dec 02, 2021 at 10:08:07AM +0100, Benjamin Tissoires wrote: > On Wed, Dec 1, 2021 at 7:35 PM Greg Kroah-Hartman > wrote: > > > > Many HID drivers assume that the HID device assigned to them is a USB > > device as that was the only way HID devices used to be able to be > > created in Linux. However, with the additional ways that HID devices > > can be created for many different bus types, that is no longer true, so > > properly check that we have a USB device associated with the HID device > > before allowing a driver that makes this assumption to claim it. > > > > Cc: Jiri Kosina > > Cc: Benjamin Tissoires > > Cc: Michael Zaidman > > Cc: Stefan Achatz > > Cc: Maxime Coquelin > > Cc: Alexandre Torgue > > Cc: linux-input@vger.kernel.org > > Signed-off-by: Greg Kroah-Hartman > > --- > > v3: add check in hid-sony based on fix from Benjamin. > > Sigh. This morning I realized my fix was incomplete as the error path > of the GHL devices handling is not releasing the hidraw node. > I have a followup patch ready that I am about to send as soon as I get > the full tests run. > > Also, I guess we want this series to land in 5.16-rc4 or rc5 and mark > it as stable, no? > If so, I'll add the cc stable@vger.kernel.org marks so you don't need > to keep tabs on it. That would be great, thanks! > Besides that, I tested the wacom change on an I2C screen, and it is > still working as expected, so I think the wacom changes are safe. > The full series is > Tested-by: Benjamin Tissoires Wonderful. Note, I did just get some really odd 0-day error messages from this patch series: https://lore.kernel.org/r/202112021000.3GKuE8mS-lkp@intel.com https://lore.kernel.org/r/202112020808.AZ5usuXj-lkp@intel.com Which looks like a dependancy issue that might have always been there. I'll work on resolving that after lunch... thanks, greg k-h