Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2195921pxm; Fri, 4 Mar 2022 11:08:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHMb6meoSVDPDLdmx6Cdmw/SKdnhXQTdWKaUZhHOvcKHmRASIYvF5fmlyq5Go9HnzNdFWp X-Received: by 2002:a17:90b:1c8c:b0:1b8:5adb:fd84 with SMTP id oo12-20020a17090b1c8c00b001b85adbfd84mr12252460pjb.238.1646420902221; Fri, 04 Mar 2022 11:08:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646420902; cv=none; d=google.com; s=arc-20160816; b=K32D9EgX4MPYiooZV365A6fObCd83HPGHU8OnQUf+iyvHplMXbKKbLBYu1RCQbFXq3 f2l0ydxe31n26wCAD0/baLNy2oxiMdIee6LxJgOi3RiBlmWB5xkGQsn4tUcVLw7thNYb H5ox0gmiKj0bjoUzL2G3Jo+24wNaqSvC2n3QnJ/dUnxDdNJvVLS3x9PESMX9JF3bDM7j VTUE2LJ5+XYRTOxtaIp0FHe4+zf9OXqM+GThGqWu+4/eWI2e4Q+6cMlOkR/Yk4bx5SEi VqSuBgLIOX0ks4dj552fbUS9TuUDAQKQvBEjppqbO3wOkBEVLkLjY1wWkdeK2MtjdXhH vmnw== 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=yBi4s46THRru8UYBin4R5CRicgd9pOlxy0va81Hm5UA=; b=JwcqknidkAC9NxyyuZxTx/P1UO5qjFMT3n1wtPGvbpS8tdgUka9VwfXy4rUW7/fq8A aXtSDpx0lzqFlftyfg1+AXrB2OecSCUPDGAnaMAktHTtXgPteqRFpkCcYnT3Q5+59SKm mypFJjeeMusqWSqhU+JxbC+Se40U/rSfudPMevwOd4Uvc37nfq73YvYLRD44aGu+OFfY 9YuHeK3FL3MatxXRn221Uw3ttsYYLIhsrh9gXfureEShX4j0MX7JKgaHyYOps9wOxG65 dAMgv2FTR2KOpxuJqM6AWuDCkqq+/i+WdhB4u6UIdeC8PQKdcZ67ibsE+f9RVpo9yPwn wPLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iGYaznCv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e8-20020a056a001a8800b004e1d864ca0bsi5529667pfv.346.2022.03.04.11.08.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 11:08:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iGYaznCv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 9D3E2B18A2; Fri, 4 Mar 2022 11:03:08 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241727AbiCDSe2 (ORCPT + 99 others); Fri, 4 Mar 2022 13:34:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241763AbiCDSeO (ORCPT ); Fri, 4 Mar 2022 13:34: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 937A615B984; Fri, 4 Mar 2022 10:33:16 -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 E5895CE2BF5; Fri, 4 Mar 2022 18:33:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2105DC340E9; Fri, 4 Mar 2022 18:33:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646418793; bh=oh6K4828NJ6PlOTyn19BY42pcI859VwVqoiEDViV8sk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iGYaznCvrI8jRQ5Jq1PYUkieDADP5PCSyEIFL8cOxB/E5+f7Dwf0Ely8tAVwmNKcM kf2F6PDzy0mjmcP5BevT+ROUFxp0tHfhpL3ELs1Fdx5QMYSB/1qjpPA7deEGZmF1sN Sral4FiYICTM+F8EyiATbcbFSvOk1JNY+td968wI= Date: Fri, 4 Mar 2022 19:32:55 +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 08/28] HID: allow to change the report descriptor from an eBPF program Message-ID: References: <20220304172852.274126-1-benjamin.tissoires@redhat.com> <20220304172852.274126-9-benjamin.tissoires@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220304172852.274126-9-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:32PM +0100, Benjamin Tissoires wrote: > Make use of BPF_HID_ATTACH_RDESC_FIXUP so we can trigger an rdesc fixup > in the bpf world. > > Whenever the program gets attached/detached, the device is reconnected > meaning that userspace will see it disappearing and reappearing with > the new report descriptor. > > Signed-off-by: Benjamin Tissoires > Reviewed-by: Greg Kroah-Hartman