Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2180135pxm; Fri, 4 Mar 2022 10:51:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/DHF7UFEKUtj/rugWjPBDbm01X8ikwq014D49xMSq4cm+eDkh6oaA69C/YMjLR0Fky34v X-Received: by 2002:a05:6a00:218a:b0:4ec:c810:67ec with SMTP id h10-20020a056a00218a00b004ecc81067ecmr44764051pfi.51.1646419862927; Fri, 04 Mar 2022 10:51:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646419862; cv=none; d=google.com; s=arc-20160816; b=XVHdIzLE4TWRwB4OdUzt3EKeMbpYyMaj6AK+XmX58ZoG9+nyJ2V1EndkPpCEoQgiRh bOm2Cw5yQKKc3JJ0urHF2LcWgYH0x7Yk+7Nmkfb0cuQ2mn6EZG6pbt4dSJNBnNvSnDin 6sEECKvzwYTNEdEyxT+MllHZaiZoNNPy23/oiQcnSoPaPDkH5EBa2SXUjQO6/+HIFZ2l XTUTraZZ4V9n13NvjVo33hxQXksZ0BG6uXvL3+F6oBGWGaflz9dDFAwXpN16tqU7RxOk LlX9akcW/n8AdV6KGX8676kbae4EvE6dINIs6gUPVvfDdFSlLj5mNq5CPa/RvL0oAgwL o+Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=q9X7yA54NDCOOrufAIRKT5X39FAeP5XbAdZ74+5DDjs=; b=ZqHFbLmG5iA3ylEm/Jjew+nrNRkbRCmjrXYqQMa1oYm31+9N0X4T4zaJY1Svbz2YAD 09Gke0vCiS/PodlcOypjXo1LYMzh5jMEhilWbQmhQX2iZrf86Sc482NdKrxbg2H64LVz jhRhsZFTyVxXmzFBosvg1sxKmySJqbHxMc+uAJZBrnD1lKCjBi60SdJKo57V3qmY+TCo kgXzca1EqH0c/ikipkVTbQpc4AccIFFcXZjw8ICANCTPL0XttObYzkol592/sjYP0cjM 8zKFHZQ2iiXRyuXBvBq3ibREFdDK4bltHQnCXOwNIzs1NpbdtmmI7djvT+DMnQ5QGsiI Az+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OKyDe0C9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t10-20020a170902e84a00b0014f5be1d041si5434117plg.401.2022.03.04.10.51.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 10:51:02 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OKyDe0C9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E3093E0AF8; Fri, 4 Mar 2022 10:47:49 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241754AbiCDSdt (ORCPT + 99 others); Fri, 4 Mar 2022 13:33:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241709AbiCDSdk (ORCPT ); Fri, 4 Mar 2022 13:33:40 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3CC5157239; Fri, 4 Mar 2022 10:32:46 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 420C061661; Fri, 4 Mar 2022 18:32:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B82BDC340E9; Fri, 4 Mar 2022 18:32:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646418765; bh=Vu4fL4KE530EAVkO1moX8T+C8QaTr+SV8CFC4jhiG24=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OKyDe0C9noUTIXE09lh4DwDhngdpLhcawCoQ3TQr+JTv6ZRPK55n/BnxyjuO8XA4H SG3WVlgjPdSXf3Vrl46ebyHI6HTmKORztjkkNy0JSIIMjLM86XZZD2raaHbyFLHiza tyxVx6CYcsKolpW7P8XJKAhyMHI8qd/JSf1xt+gs= Date: Fri, 4 Mar 2022 19:32:26 +0100 From: Greg KH To: Benjamin Tissoires Cc: Jiri Kosina , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Shuah Khan , Dave Marchevsky , Joe Stringer , Tero Kristo , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH bpf-next v2 07/28] bpf/hid: add a new attach type to change the report descriptor Message-ID: References: <20220304172852.274126-1-benjamin.tissoires@redhat.com> <20220304172852.274126-8-benjamin.tissoires@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220304172852.274126-8-benjamin.tissoires@redhat.com> X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_RED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 04, 2022 at 06:28:31PM +0100, Benjamin Tissoires wrote: > The report descriptor is the dictionary of the HID protocol specific > to the given device. > Changing it is a common habit in the HID world, and making that feature > accessible from eBPF allows to fix devices without having to install a > new kernel. > > However, the report descriptor is supposed to be static on a device. > To be able to change it, we need to reconnect the device at the HID > level. > So whenever the report descriptor program type is attached or detached, > we call on a hook on HID to notify it that there is something to be > done. > > Signed-off-by: Benjamin Tissoires Reviewed-by: Greg Kroah-Hartman