Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1427582rwb; Thu, 1 Dec 2022 17:40:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Fjiryxa5+53lLBy9ak2pM7Cf/rMbhucqGfAeQJKo+VxN11oyIy+CxFyexUXrtNq9e+rqR X-Received: by 2002:a05:6402:d6a:b0:467:6dbf:e3e8 with SMTP id ec42-20020a0564020d6a00b004676dbfe3e8mr23821775edb.291.1669945242783; Thu, 01 Dec 2022 17:40:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669945242; cv=none; d=google.com; s=arc-20160816; b=HxuMoDo5nCdRdrubF7Y24JYE/8CdGa4aMqmYw6LKaf2m0klhCbntjlh7BZloyfPQio YlcQ+gX+3qAUVaJutlaj6Sw9uborMMfK5u3ABNBDTjp5LGfjAYoO6Zjym15DE3oN2EZA 38KIYNibSiMvKw1PI+GRmSYLCCn+E//04+iFoc03qmQ1/H6wcH6WPOlXF/d/wxBa5+bC ex0mA15X8S4tsti9ODD5EuZzbCtKDAuSrDLvgSnIDHTdcrLI8nq77PIgnyC9R8whsVM8 GpUUuQk7iGz9bJlX3WiMynrd4V64DFx/iE8CPNhNpQbHpyMK0/TfwnNz1mpz9DI2PoFf o0lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ppydc67sxbhkBUShlFYnXkwzOb+e7DCeIgg6EvDqqfg=; b=pwqxLQoJ9S1csr/wply7Xx3NUe8yj1xgc6kCpHoRlo2NSAQq75vIn/Y9xG3AD8ibjr TIfOcbOiGQzcXH1PhEjx1sQWu6RLTygdTHmx0HBBQU3SUh+FiBzwTl/Fk/H/3dAO/OBK freITIYAhcD2oW4YLuHVAOumHynZlCS5NlDFzswugNqONkMMSQe4qMgZ0mqci3APVPz/ S98TOeTD2ZXi/+2/FHL1DTNUvZoXwYE6DkoMHl+Utst1PAr419gfHkrjS4Lc5aWrRvQJ n1vA71o2aWR5hBdt2FZOiiM9b+PYLPj0DFczGjzir2E4FU5MWV7dqlBsYCFRPzlI8lof 7KxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=JbXbM2OJ; 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 sg12-20020a170907a40c00b007918f58458bsi5326516ejc.441.2022.12.01.17.40.23; Thu, 01 Dec 2022 17:40:42 -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=@linux-foundation.org header.s=google header.b=JbXbM2OJ; 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 S232234AbiLBBD0 (ORCPT + 81 others); Thu, 1 Dec 2022 20:03:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231989AbiLBBDY (ORCPT ); Thu, 1 Dec 2022 20:03:24 -0500 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3870CCB206 for ; Thu, 1 Dec 2022 17:03:23 -0800 (PST) Received: by mail-qt1-x82b.google.com with SMTP id fz10so3300168qtb.3 for ; Thu, 01 Dec 2022 17:03:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ppydc67sxbhkBUShlFYnXkwzOb+e7DCeIgg6EvDqqfg=; b=JbXbM2OJjyAsvZSI103rp+BLBxMpWTKMLaYAITyWwjiSE6k8e8Y9EqgAc474Doh9zw DH6WFO+KA9DkKLjToBZTzsFiSg/2T3UoqahuD33ZgFfFj1oY3wteHTbn7VZ3pBtvq75o co+/GPUxZMIDHfaKg0hbPwHVTeAE0ioxolY5A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ppydc67sxbhkBUShlFYnXkwzOb+e7DCeIgg6EvDqqfg=; b=kyGmq+S6xIzfNo2a00EGErF1RJArLseym36DzGynMo4U/rh1sUC8AvbP7+lgCke6Pr 2tAzUsUgrB7UP1f7p0h6qXpidZEo7JoH16BOCsSmT4LZFzqYM42fDHikooFSyAMiPlZ3 wuURIKqyWPoyei6TUyD0FH/oMresiT8eDP+wOuA/Vcy2TSip088G97u1YLZatlhtLeG+ x1KXoAHyMMeFFaO7tWNY0ORm/cLKjnHNMEWPH7BBQFsZdJWoBvBPFdk8/NJJZwX47m3F LticjohbK/m2YtjJq4RgcyaXCXoW/JnPlnOOTB7zL9d78eVdgk7EHr6kMRuwQMCWX8Jd iI4g== X-Gm-Message-State: ANoB5plc2Z3Hx2Vc/O2mXHQKJKI/XkCxkK0t7PXyUNICoJWG6Wk9ZQbo xRDU0okvgtTsuxOLUdSSZbC+qC37+PF/Jg== X-Received: by 2002:ac8:6055:0:b0:3a5:4106:64e with SMTP id k21-20020ac86055000000b003a54106064emr46887486qtm.321.1669943002111; Thu, 01 Dec 2022 17:03:22 -0800 (PST) Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com. [209.85.160.172]) by smtp.gmail.com with ESMTPSA id i11-20020ac8764b000000b003a611cb2a95sm3329403qtr.9.2022.12.01.17.03.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Dec 2022 17:03:21 -0800 (PST) Received: by mail-qt1-f172.google.com with SMTP id fz10so3300132qtb.3 for ; Thu, 01 Dec 2022 17:03:21 -0800 (PST) X-Received: by 2002:ac8:688:0:b0:3a5:122:fb79 with SMTP id f8-20020ac80688000000b003a50122fb79mr53237218qth.452.1669942666724; Thu, 01 Dec 2022 16:57:46 -0800 (PST) MIME-Version: 1.0 References: <20221121104403.1545f9b5@gandalf.local.home> <3fa8ec60-dd96-c41f-ea46-8856bf855949@meta.com> <20221122132905.12a8d5ad@gandalf.local.home> <20221130143719.07e36277d1471b83e9a1b627@linux-foundation.org> In-Reply-To: From: Linus Torvalds Date: Thu, 1 Dec 2022 16:57:30 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] error-injection: Add prompt for function error injection To: Jiri Kosina Cc: Alexei Starovoitov , Andrew Morton , Chris Mason , Steven Rostedt , Borislav Petkov , LKML , Masami Hiramatsu , Peter Zijlstra , Kees Cook , Josh Poimboeuf , KP Singh , Mark Rutland , Florent Revest , Greg Kroah-Hartman , Christoph Hellwig , Benjamin Tissoires Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Thu, Dec 1, 2022 at 4:46 PM Jiri Kosina 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. It's not so different from user-mode drivers, after all, which we also have. A kind of half-way state where we have a kernel driver, but one that may need custom site-specific (or machine-specific) tweaks. So I don't want to come across as being against having bpf used for tuning some HID issue (and I can imagine it making sense in other places that have machine-specific tweaks - I'm thinking of all the thermal probe or pincontrol mess where sometimes you have GPIO's or motherboard thermal sensors etc that are literally "user connected it to X"). But the notion that we'd use some error injection framework for it, and that you'd mix those concepts up - *that* I really think is just horrendous. Because even if you end up using some common infrastructure code, we really should separate things out much better. Linus