Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3002910pxm; Mon, 28 Feb 2022 10:05:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7TUkrxvn0RMWJX5zUtr0uDOJaxrAJO8wNuuZ/q4qU6OqjFk8XsazUbsj9bUJtV+wBe+fH X-Received: by 2002:a17:906:9913:b0:6d6:dc48:5d49 with SMTP id zl19-20020a170906991300b006d6dc485d49mr1539070ejb.325.1646071526873; Mon, 28 Feb 2022 10:05:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646071526; cv=none; d=google.com; s=arc-20160816; b=YGv9f5+tcceq+XcZrQH8HOFN7ZZrKX+Rdpk4pwqGd9FMscpnyTs7oS4F0Y08ojLEJZ 3XG2WVkC/pIfvlsf7iniFhVW7dgQ2pUfVbyimCBkyp1cdFM+8eQur/r506IWWh75KgBi bSwbkpByvN16DcyNb3QSmRe4L/Oqv4O8CQRi/nb4+ZuBqHI/BsqrXAjc+T3rRsyIXRhS E3IjvsZ1DYPn6w79EZo0yGW5w0cSLNGHupFzz1t3DTMnXPEdzVoqXlY90rAbfkbtGC9i y6xzDpvNhNyEPkzF0utEjgng5uKN81gaPc8gCLsxG7JkLgFrNUGmwt4WiABnaTzHQ6UR oVXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=WdDPtZYV/V+IwBoY/+IcpNh2bpTU7k3eSbAKzkdG5oI=; b=twvIZwFmAcwjNv4p+gwS3i6rvA15EV+fI0B+ZJMAnpEvJvGnxfEuc0JLvrjGQIhT4H yglOGeyq3ZsK0zegNTfxA8aOsdZ4H1Do9I+AE6pSPaTYs4TovoSX2dnJTkjnH2da/Y3Q PyQeFvTMkOPfEWceBqgbqp0EwoRwR/qDgvJVEMjd66HJSoYX8Mzr9LkOgYn/n7jJwYqH Cdbi9N5WopxFM/D9XcsAuDHq9DrZv9oUXL69ewRZn2oGe3wbxJBduSRxVGdXIFn2dA+9 x6gXuXe9PqG3zKH0d5g1ZCqHEA8432fR8S3sxjiDMIdteRZbFlZMp34n5Lb8MKz2WT8d zrBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kZ7m26Ck; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a056402424a00b004138ef37518si5538162edb.208.2022.02.28.10.05.04; Mon, 28 Feb 2022 10:05:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kZ7m26Ck; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237951AbiB1Qei (ORCPT + 99 others); Mon, 28 Feb 2022 11:34:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237943AbiB1Qef (ORCPT ); Mon, 28 Feb 2022 11:34:35 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB3A146B24; Mon, 28 Feb 2022 08:33:56 -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 642596123C; Mon, 28 Feb 2022 16:33:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2BF2C340E7; Mon, 28 Feb 2022 16:33:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646066035; bh=5TnaHWBObWPu9LztXoyemUFcbfrnH0z+xI99F3n3R8g=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=kZ7m26CkOlcamcJdE9TffN0PMCAyW+ITFSrvbw+O5Isw9bz+NzyxDoTqwC2Vx70/l dI+voha1t1y0FCt5boFo/mFFvqOweUkVd64clVQVww3Dfl+irtWa2J8hfSj08w+tw4 SqkvSmHe6m++E1niteZAnImg6RU/XmxMKbFgfiOP1f4lE8HGkR2xzafac0ZuxYfzPu yISiQuBFePoqFsZnNMSf/zNmjhHoN7XMOYrqIXaa5YcDJfiQj3ZOfopuPhSRzCmPIj KawGoJ3iGh/jLrPQQHu/Mr3+j2Ik+onCBFgt5xR8kl68ALhhWpHzMK5b/LgEbHe0OF htDcjt9pjubFg== Date: Mon, 28 Feb 2022 17:33:49 +0100 (CET) From: Jiri Kosina To: Greg KH cc: Benjamin Tissoires , 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 , lkml , "open list:HID CORE LAYER" , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, Peter Hutterer Subject: Re: [PATCH bpf-next v1 0/6] Introduce eBPF support for HID devices In-Reply-To: Message-ID: References: <20220224110828.2168231-1-benjamin.tissoires@redhat.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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, 25 Feb 2022, Greg KH wrote: > > I mean that if you need a bpf program to be loaded from userspace at > > boot to make your keyboard functional, then you need to have the root > > partition mounted (or put the program in the initrd) so udev can load > > it. Now if your keyboard is supposed to give the password used to > > decrypt your root partition but you need a bpf program on that said > > partition to make it functional, you are screwed :) > > True, but that's why the HID boot protocol was designed for keyboards > and mice, so that they "always" work. Yeah, I know many devices ignore > it, oh well... That's a very mild statement :) *Most* of the recent modern HW doesn't support it as far as I can say. Thanks, -- Jiri Kosina SUSE Labs