Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5105280rwb; Mon, 21 Nov 2022 16:55:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf4bsi8SxpGCtQTaWGXRtk+I288Jhzjnpy9SA/zXhT6Y3tKO9aIkMYNP7Does0JWkuU6jyn3 X-Received: by 2002:a17:902:f707:b0:176:b0ce:3472 with SMTP id h7-20020a170902f70700b00176b0ce3472mr14036380plo.169.1669078543226; Mon, 21 Nov 2022 16:55:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669078543; cv=none; d=google.com; s=arc-20160816; b=FBcVR52RQSidH6caEkD24l+cxRjaDYOB1qwehZoqAngIhIbp7j4PaaBgWP7ZQwjmdR mw9trheekn4iJVUgehHNJYWikbZxpaGlThTs1m4BX9Fa7wrl+0rw9lZ02TsVFbb1HZ9j 7rITvjy5iVxSK75otE5RD82u8otjP6FxG/dlMOGAaZuczWK9/rij8ksk0t4Pd1BJdr5o CnIM5rQ7+ttYXnNNnYRQIH1Vgwwvgydy6Q7+CeN54Ujsf21nz01KELVqwJH6DLGItFGp qBJiRCHrdREfxus85nIe1k0fkVSwKKXDX6mOsaNVG3DfP/iDI93a2XJIDrWrfvNZgLF/ HGtg== 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=/fvQiKeyCa44J0TsmcxVT5xoI9+VXdn/lwVen+eNyVE=; b=XywWbPapBBRtRFGq0iHJftyZ9OBSCvUwFKUzOx1TFzdBSoNhnIWQsBy7QOB9D4Mrpv 7NjQVnTXDe2Z9LehnySDdoRlarZo1rGybUZWmvVHzs6dPwHsMwWV23IqY+Midfw3FTp5 rHLILIxMaUAns/le78qJhL7SK6GJAFHXIEantsXCSQ1FunVmvE4mMGyv6s4510HXR7UY I7iGQ+vklZnyF9MfbbyOgde6sVFHW5KtM9jmgb2WOr+lhd+5OsReY7E2zDrIkXT1Owkx W7+5nfW1OcIFD3CykGGgs2snBh1cnXXXa0zkZm7mdSZV/Rrxt2gd+d5LaLx0Wmp715+W /7bw== 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 125-20020a630483000000b004706a2c7d5fsi12437545pge.254.2022.11.21.16.55.32; Mon, 21 Nov 2022 16:55:43 -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 S229723AbiKVAkc (ORCPT + 91 others); Mon, 21 Nov 2022 19:40:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbiKVAk2 (ORCPT ); Mon, 21 Nov 2022 19:40:28 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D73342721 for ; Mon, 21 Nov 2022 16:40:27 -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 910ADB818BF for ; Tue, 22 Nov 2022 00:40:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6F72C433C1; Tue, 22 Nov 2022 00:40:23 +0000 (UTC) Date: Mon, 21 Nov 2022 19:40:22 -0500 From: Steven Rostedt To: Alexei Starovoitov Cc: Borislav Petkov , LKML , Linus Torvalds , Masami Hiramatsu , Andrew Morton , Peter Zijlstra , Kees Cook , Josh Poimboeuf , KP Singh , Chris Mason , Mark Rutland , Florent Revest , Greg Kroah-Hartman , Christoph Hellwig Subject: Re: [PATCH] error-injection: Add prompt for function error injection Message-ID: <20221121194022.683e22c7@gandalf.local.home> In-Reply-To: <20221121192423.1ab25c4d@gandalf.local.home> References: <20221121104403.1545f9b5@gandalf.local.home> <20221121192423.1ab25c4d@gandalf.local.home> 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 Mon, 21 Nov 2022 19:24:23 -0500 Steven Rostedt wrote: > On Mon, 21 Nov 2022 15:36:08 -0800 > Alexei Starovoitov wrote: > > > The commit log is bogus and the lack of understanding what > > bpf and error injection hooks are used for expressed > > in this thread is quite sad. > > Disabling error injection makes the system _less_ secure. > > Please specify. > > As Masami replied, you are abusing this feature for some arcane way to do > security. It's "error injection" how does enabling this improve security??? > If you want to add BPF programs to determine who or what can access various functions, then please work with the security folks and hook into their infrastructure. Please do not make some home grown operations on top of an interface that was not created for this purpose. That can only lead to unexpected consequences. -- Steve