Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1425296rwb; Thu, 1 Dec 2022 17:38:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf6/ojpC2nD++h0pC8wa/IvwxDNYuqy61aExbKrQ6EEHMnlTFUhh80l6SO7/tU6sX3B46L9e X-Received: by 2002:a17:90a:d18b:b0:219:6be1:7ff2 with SMTP id fu11-20020a17090ad18b00b002196be17ff2mr9719925pjb.79.1669945095313; Thu, 01 Dec 2022 17:38:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669945095; cv=none; d=google.com; s=arc-20160816; b=Emgpcjh2AOnVWBYSdGDcBShjfX+TOZpnhK+6IlTo/Bi64tAxnuJxaRbcxW+zCNlJ0w +HTi5mUJCwU4jJ68em5kmAEV2GiFQKSUWJ1o1WyRgS+Y+j6zPCUE7i/vGr1sBQ8sILm5 1xwnOoxmFJ9GNoF+09i32CgiYt4a5fiCA6khnpy9uk7CNtsgWlG9EZsBR7GjYA8MDx5z rsY+vC47hNT8IXcGCvDQg/6lp3LSkeLzbvdiYnPDsrwefAikcEtw3A/8ZlfCaPrAoBwA npEtZi6VrMrNg2wmHCFvDqWu96YlMVX0ObgF3zP7V4XbYs6r/4EkzhWjr5pTbu9qukUU YBAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=9Al0WRGk61D0/Hco8UGRTqWjQcGgI/tqc/4gSP9eIuM=; b=vRKQJtBN8QrknH2NpKSUOB+OVSwSVHr/FJVuJjGc7HqWPRk74k0xEuKs1utr22x0mr ZBSkkPGUR1zBnHzPsKYgJjxd7qJjWTzfX5qmAnHzchvCRKzoTmEgsjwU09Sj9Ca7crPr tttzgMO6KUsW0wo4vle7aTJ969vVH9JZ4L8vqnV42qcvkDABMx0hNX57P908qqlyjleb kRi9UuuDMvdIzA3ky9iYaqSyaKX0EEqECZl2sEL/m///HubXUFcZlWUWt0k6eIq231S+ /61Es3pUJwcnTTVLKmE6hsvqMacOZHyLIjL40phBt0xclnh/kQTlCzJ29KEu9Wngk4fZ QXOg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ik11-20020a170902ab0b00b00188b63f07a5si5423630plb.615.2022.12.01.17.38.05; Thu, 01 Dec 2022 17:38:15 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231142AbiLBBdG (ORCPT + 81 others); Thu, 1 Dec 2022 20:33:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230370AbiLBBdE (ORCPT ); Thu, 1 Dec 2022 20:33:04 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6AAEC3FC6 for ; Thu, 1 Dec 2022 17:33:03 -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 ams.source.kernel.org (Postfix) with ESMTPS id 2970EB81FBE for ; Fri, 2 Dec 2022 01:33:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E01B4C433D6; Fri, 2 Dec 2022 01:32:58 +0000 (UTC) Date: Thu, 1 Dec 2022 20:32:57 -0500 From: Steven Rostedt To: Jiri Kosina Cc: Linus Torvalds , Alexei Starovoitov , Andrew Morton , Chris Mason , Borislav Petkov , LKML , Masami Hiramatsu , Peter Zijlstra , Kees Cook , Josh Poimboeuf , KP Singh , Mark Rutland , Florent Revest , Greg Kroah-Hartman , Christoph Hellwig , Benjamin Tissoires Subject: Re: [PATCH] error-injection: Add prompt for function error injection Message-ID: <20221201203257.6fa19473@gandalf.local.home> In-Reply-To: References: <20221121104403.1545f9b5@gandalf.local.home> <3fa8ec60-dd96-c41f-ea46-8856bf855949@meta.com> <20221122132905.12a8d5ad@gandalf.local.home> <20221130143719.07e36277d1471b83e9a1b627@linux-foundation.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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, 2 Dec 2022 02:03:03 +0100 (CET) Jiri Kosina wrote: > On Thu, 1 Dec 2022, Linus Torvalds wrote: > > > > Anyway, I believe [1] that ERROR_INJECTION has been designed as a > > > debugging feature in the first place, and should stay so. After figuring > > > out now that HID-BPF actually has hard dependence on it, I fully agree [2] > > > that the series should be ditched for 6.2 and will work with Benjamin to > > > have it removed from current hid.git#for-next. > > > > I do think that it is interesting to have a "let's have a bpf > > insertion hook here", so I'm not against the _concept_ of HID doing > > that. > > Absolutely, me neither, quite the contrary -- I am quite happy to see > HID-BPF happening, because it'll actually make life easier for everybody: > for people with quirky hardware (trivial testing of fixes), for kernel > developers (trivial testing of fixes), and for distributions (trivial > distribution of fixes). Full disclosure, I'm not against a bpf_hook either. In fact, I think I even stated something to that effect, like adding a bpf_hook annotation to functions or whatever, so that people can plainly see that the function can have bpf attached to it. I just *hate* the ad hoc way of using infrastructure for other purposes than what they were designed for. -- Steve