Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp854133rwb; Thu, 1 Dec 2022 09:09:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf5a/9gR/dSdjhQ+TYuXg0aj3UFkzrPFIpMAl2W5ho/EmqT267w0+wVbQb4woArNHrZWUeqO X-Received: by 2002:a17:906:b28f:b0:7ad:a942:4d6b with SMTP id q15-20020a170906b28f00b007ada9424d6bmr55786871ejz.379.1669914565579; Thu, 01 Dec 2022 09:09:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669914565; cv=none; d=google.com; s=arc-20160816; b=hQ5dxk85Wd0FrJcto9JiwXotxW88fRI6da8ZFA/IYmb978YVZaWKW9vb30L9u75Hi1 qXBLD5+qgAq4fJ+DaCQpKdRHMAubv6LV6XejiNJ3pGWZtTJV4uYPZ2fpyRL4ko3QeGcT RbVJFxuXM/uaSz+TR66iE1wBiJyacL42WZHy/Batf4baVBwU6vIypEffglM6If11wPmK qgUuwJuHrPCffGwDtxX6INnApSN+g+Mem0R4BIxSE1nlij8oCeUFj2Udge2wiObh6/gj MyCNYONpGREIhb5+DO+Qtl7Az1XEYQbXP3nFqX6akw6WN2Xn7j/07tK27hI4m41BouE1 5aTA== 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=xfXu45xdfTyVLVkfj9ZZQsbbr7ecm2c21plsrP1SZFA=; b=zDculyDh0q6DbnZBUV+6O1rdYMyusD97sjHf28ZiH3giPBV3d7PRncz3ddn+BZnY0d 2RjG/B/vA0Zb3HNarWc9Li1uVzfO4ZT2VoIfuE4GzWtLRBAlkxgCD3fIYsOja7cQRG4c Vq2JFa+LQJ/SVTQvvVAmUXCEMSvk/4EJLGoK8Xo9wrdzeNpukD5aX/IOhzYsWHxC2jEw PHhVkGhMfev/Q0aqHD3iIvYNnu1QAjqjMjl0w+VMfBdmadO2oE+c1u8IF5CCIGNZrX4k 9eEaLOmh9WTh8wtymHeS1x+JGiqa+NlK6AsehmKIvbtDIlXRpprp2s3mD1APALGdcGn4 23tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=En2kIJ9m; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g23-20020a170906349700b007aee7ca1184si3296085ejb.602.2022.12.01.09.08.55; Thu, 01 Dec 2022 09:09:25 -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=@chromium.org header.s=google header.b=En2kIJ9m; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229763AbiLAQxI (ORCPT + 82 others); Thu, 1 Dec 2022 11:53:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229793AbiLAQxF (ORCPT ); Thu, 1 Dec 2022 11:53:05 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82A0289310 for ; Thu, 1 Dec 2022 08:53:04 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id 3-20020a17090a098300b00219041dcbe9so2638918pjo.3 for ; Thu, 01 Dec 2022 08:53:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=xfXu45xdfTyVLVkfj9ZZQsbbr7ecm2c21plsrP1SZFA=; b=En2kIJ9mdNILFPY+fiqHUP8koejjvpiaXqpsgU1tFRsaUtYAXsBxPrGuDeB1ZgOEzn 63QllEyYhZWrTMMzhjfdVXGqPj+RYhgnY07raNt1VGnjk3RNBiCpli+1qteGrPJgvzdd 38eb4KvxHzw79QQ3LXkfXZRseZd6pGafDV2No= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xfXu45xdfTyVLVkfj9ZZQsbbr7ecm2c21plsrP1SZFA=; b=xxtjicnMrqAS6AKnQ/S6Ramipk4q9gxOY+qsmkZ1iRpoQA2DieRJVGjrsf7lry7P+S ys2g0Om7Ikzx3aK46mGloft0XKD1WxBmDBvkKNsYNCUQiE0AvV2o/BlVJJpgYii2NHrX ScdSjTKKrp6eZslBoPIFDhznpNpFbW4LVFX5N1THCQKD5X4HYviTWXVFe4ShseZhGOKd s3IYGrx0kU/qBdnlqCq/24H6Yf5uqzGS7XdBK3iv4opitHJmVtXhNBOHFMlaCc1t1314 l6BFLa1j3B/KxJas9bN5iw74ZH78i1OYCJPtLkPrB+L6Q3c3UY/cmqqJuw6AbNMY3WxX U5Ow== X-Gm-Message-State: ANoB5pkMR4xaOdqQVg90SZkYxkEQP4026VenkQ2ua0w0gLyNA32SkVej uFVYhtzYZXvYTsyg3nxs2+tPUA== X-Received: by 2002:a17:903:491:b0:185:46a5:1c73 with SMTP id jj17-20020a170903049100b0018546a51c73mr51085424plb.157.1669913584065; Thu, 01 Dec 2022 08:53:04 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id u11-20020a17090341cb00b001896af10ca7sm3902020ple.134.2022.12.01.08.53.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 08:53:03 -0800 (PST) Date: Thu, 1 Dec 2022 08:53:02 -0800 From: Kees Cook To: Steven Rostedt Cc: "Masami Hiramatsu (Google)" , LKML , Borislav Petkov , Alexei Starovoitov , Linus Torvalds , Andrew Morton , Peter Zijlstra , Josh Poimboeuf , KP Singh , Mark Rutland , Florent Revest , Greg Kroah-Hartman , Christoph Hellwig , Chris Mason Subject: Re: [RFC PATCH] panic: Add new taint flag for fault injection Message-ID: <202212010852.6D4B542@keescook> References: <20221201234121.8925fdf83115747ac4ac116a@kernel.org> <166991263326.311919.16890937584677289681.stgit@devnote3> <202212010838.B0B109DA@keescook> <20221201114848.13a87aca@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221201114848.13a87aca@gandalf.local.home> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Thu, Dec 01, 2022 at 11:48:48AM -0500, Steven Rostedt wrote: > On Thu, 1 Dec 2022 08:39:28 -0800 > Kees Cook wrote: > > > On Fri, Dec 02, 2022 at 01:37:13AM +0900, Masami Hiramatsu (Google) wrote: > > > From: Masami Hiramatsu (Google) > > > > > > Since the function error injection framework in the fault injection > > > subsystem can change the function code flow forcibly, it may cause > > > unexpected behavior (but that is the purpose of this feature). > > > To identify this in the kernel oops message, add a new taint flag > > > for this, and set it if it is (and similar things in BPF) used. > > > > Why is hooking through BPF considered to be "fault injection" here? > > > > Have you not been reading this thread? I skimmed it -- trying to catch up from turkey week. If this was already covered, then please ignore me. It just wasn't obvious from the commit log why it was included. -- Kees Cook