From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0CCCC433EF for ; Fri, 13 May 2022 15:36:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348935AbiEMPgc (ORCPT ); Fri, 13 May 2022 11:36:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382203AbiEMPgT (ORCPT ); Fri, 13 May 2022 11:36:19 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A9DB101C4; Fri, 13 May 2022 08:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Oog80k7GQxM52zTZPMnIGwh2UY76oIYMbMWJ+awWYIA=; b=Bz/zNMH2Ro4SlXFK2FRLN1RZD6 APubsATHMDIJ6r0BnhE0ATsv69tLUxefVIzFUjB4dpXKigZXGu4ckLmjI1grPABCWIP+FK3LBFBjR AtMYkwulP5fWXZ2ztb3htxldk/7MliWN+6A6jYZSwAgnINQB8AvVKHGY/ZZOSr0g/1TX7J4m1eqkJ zLQ7EGsMXbGde5+lSrK/8eLcKpClBIswaMYkhulvMkWDfHSAPp8V3OE26ExU78iNUdWiDgm4ZuTLF nj2KOvzhDPEyhJ5VJLFarc830bGDqrk3KWjmQPzOYxgTKCReCaQ0le17SiebKmQno+EMsgttzOVjf Cn+9GtZg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1npXKr-00GixM-Ep; Fri, 13 May 2022 15:36:09 +0000 Date: Fri, 13 May 2022 08:36:09 -0700 From: Luis Chamberlain To: David Gow Cc: Brendan Higgins , Andy Shevchenko , Jonathan Corbet , Andrew Morton , Kees Cook , Shuah Khan , Greg KH , "Guilherme G . Piccoli" , Sebastian Reichel , John Ogness , Joe Fradley , Daniel Latypov , kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jani Nikula , Lucas De Marchi , Aaron Tomlin , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: [PATCH v3 2/3] kunit: Taint the kernel when KUnit tests are run Message-ID: References: <20220429043913.626647-1-davidgow@google.com> <20220513083212.3537869-2-davidgow@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220513083212.3537869-2-davidgow@google.com> Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Fri, May 13, 2022 at 04:32:12PM +0800, David Gow wrote: > Make KUnit trigger the new TAINT_TEST taint when any KUnit test is run. > Due to KUnit tests not being intended to run on production systems, and > potentially causing problems (or security issues like leaking kernel > addresses), the kernel's state should not be considered safe for > production use after KUnit tests are run. > > Signed-off-by: David Gow Acked-by: Luis Chamberlain Luis