Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2933594imw; Wed, 6 Jul 2022 14:22:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ukIxt8oo0lZLt1/VNLQWu4+eHQv3v5oE0KH/b33pEWVLk5FmmPmd0aElA8H+EmkMeYyV0R X-Received: by 2002:a17:906:ce:b0:715:705e:52fb with SMTP id 14-20020a17090600ce00b00715705e52fbmr41094275eji.303.1657142547651; Wed, 06 Jul 2022 14:22:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657142547; cv=none; d=google.com; s=arc-20160816; b=TQFGfBlPpjA+FPb0cKPiXsnWyfA2kntzKPgZQL7gck+7L7oWfTWO1G3fHLSfe3zCwz d+cF1ihrVFktyRXhZPZPGoAqKR5HM9iaBqmP2C7wNy3oz/vOFtWDYxvJyQ216O3HdiOg YX//PxLwR/b2iuRChLpTEeXQqZ6yrOJeWPnjGtcRvOObNa6gTlzEd8SH7sOPCGSh2SXp gDaJ3chshDVW/FV87BMwqCWLqinC+/YRjNDNVCK9jVqpWiQGOu4If/1VN6cwNAbklbjh ISr8aRPpj8oz5crZYhcUuAfsS9XYkuVKBYPR1JOTSDKzZwX6ie9BIHps2lppO1NbN9/G AgZA== 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=Z3UotlFtUTvslGYUw8cZAVdfuGjI1A/SzFtykXKyRDs=; b=vZ2i89+ALsJbb/R5bw8+vDmRz8rUNeQzXdcy9cfPiBhdYRmhdKJ9aH12NP7skUk5nU JCK86SNtt9B9BtYEOTAOejImDkY6T7cg+cTKXBFwsWt0g0RxEvbjQYKBzU2Xlyuj+aPV /AK1nkyWOgOGJTpJoVMYXKeaWqwzFt2gLuZHlFTSz7a0Bq/1+UtvlH4Hk5shgwXGlYhk YvhYZejHUo0r0c1/WSg8K4xS/Cszp5BC6Jz1ZuVE+mVsmQdHqaT4X5uYzlWbbMol7zVb f0FGMwX5wGAXCv+wN3DmK5wmYx6/FfDqmJwumcmxhBjawPg8/QryfrklCT8LnISHrTDv htIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=XXmST8Ij; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt12-20020a1709072d8c00b00722df7631c5si5572763ejc.749.2022.07.06.14.22.01; Wed, 06 Jul 2022 14:22:27 -0700 (PDT) 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=@google.com header.s=20210112 header.b=XXmST8Ij; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233557AbiGFUoo (ORCPT + 99 others); Wed, 6 Jul 2022 16:44:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233920AbiGFUol (ORCPT ); Wed, 6 Jul 2022 16:44:41 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05CFB286F6 for ; Wed, 6 Jul 2022 13:44:40 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id h23so29009426ejj.12 for ; Wed, 06 Jul 2022 13:44:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Z3UotlFtUTvslGYUw8cZAVdfuGjI1A/SzFtykXKyRDs=; b=XXmST8IjmjKhpKR+8so2eTQlXVr5n4bcdbvCrQR6SsYDKxke/r6gGxBTEs3PzBfUyh Gho/qFWBPkNnlvgZsPIcaSiRBSvnUQTjMZclY/lpnE7hoaQUck8+EJDww8z8kDOjxiZv eSqdsmEU3zuFO1PAoxfQxKRN4J49RhPgLvgW6F4soy2RKNVzFJpojZ4RhC6KF8lF1Aqb HieFtfEJjL/4yCDZtFqlIIqR4T0tEOOb21VGvz9PmnH62LTQe+tbS9DiHvJmIRMm8YKm rZ6+8sGp6O3LS6QnsZ0HFLsbdn7cd1jNUe1eGqbgmsT6YH/QfloSLjfYo8pYvcO5vRzK E/Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Z3UotlFtUTvslGYUw8cZAVdfuGjI1A/SzFtykXKyRDs=; b=O8G4/zL/9XUMZqwbgdpieSgRWpRIiiGl/vMea3BPNHNmfA4jmwEFxYdYLk8va6wT9j gO8nvR4Ze86C/WOyKhwSVfJvGrQN9wFIwMZWrUciN12hy5SsbQYu8RZibEDMoDQBbDk5 A9BcEDMszMmdZFkqXEuGFcZiLPfuQrM7eNITLeFaeu17M01KjtAuwlscoij98z/kBwGQ wE5mhQ4u6naf2UP5HVPbWX1ySyPVOjN9d1+4SL8zpPTOMTZIZS2bbQOF3adFVCSEfwuP Q/V8NtgUqZlWiycXud1Fem2oFbrahjAmOjfQt4Lgr2bLfh6q8nZziTOk+6M28v9cK36D I7RA== X-Gm-Message-State: AJIora9GtBMFWqHhNkKB1mvizraet9A3Ot8x+zkUumtGk3D8jDrcuL6M 9EZ8aHn4OiehK6auKnBHl5eAuyIWTbiWajb99AnBkg== X-Received: by 2002:a17:907:3f81:b0:6ff:1a3d:9092 with SMTP id hr1-20020a1709073f8100b006ff1a3d9092mr41210405ejc.319.1657140278463; Wed, 06 Jul 2022 13:44:38 -0700 (PDT) MIME-Version: 1.0 References: <20220702040959.3232874-1-davidgow@google.com> <20220702040959.3232874-2-davidgow@google.com> In-Reply-To: <20220702040959.3232874-2-davidgow@google.com> From: Brendan Higgins Date: Wed, 6 Jul 2022 16:44:27 -0400 Message-ID: Subject: Re: [PATCH v5 2/4] module: panic: Taint the kernel when selftest modules load To: David Gow Cc: Andy Shevchenko , Jonathan Corbet , Andrew Morton , Kees Cook , Shuah Khan , Greg KH , Luis Chamberlain , Masahiro Yamada , "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, Michal Marek , Nick Desaulniers , linux-kbuild@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 Sat, Jul 2, 2022 at 12:10 AM 'David Gow' via KUnit Development wrote: > > Taint the kernel with TAINT_TEST whenever a test module loads, by adding > a new "TEST" module property, and setting it for all modules in the > tools/testing directory. This property can also be set manually, for > tests which live outside the tools/testing directory with: > MODULE_INFO(test, "Y"); > > Reviewed-by: Luis Chamberlain > Signed-off-by: David Gow Acked-by: Brendan Higgins