Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp935186imw; Fri, 8 Jul 2022 14:47:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v1sWd7NBdpQXI6BOCTjoa4ygpGjfy39mz24FcFB2tY83JD9En4CCggANym9yKT76LmtIvz X-Received: by 2002:a63:81c1:0:b0:412:b0dd:d95a with SMTP id t184-20020a6381c1000000b00412b0ddd95amr4850335pgd.164.1657316823100; Fri, 08 Jul 2022 14:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657316823; cv=none; d=google.com; s=arc-20160816; b=aoMK9fJWBTsSoR79gKPb5E3BKMaKm8u6Cac0CxbXROBTwYSPcEVVEHrus+1GwYqYyi 0e9X9+Tqt+oQUBKvQ8/7zCPJKEYsRIPx9pBSdliZ23GRLLKkLrlTT/lUAsqMZ2SVWZVo Hl+TdRbNS+Ad78PgF8ChUEutX9gKe3d+Z6Bc7rEYW6/aqTF7zEuVIcB06iLIknSlbUK4 aaVYc67DVmw0fVA8WOMt9lKKVLWStR+OYgyC+W3RhpURhGWDw/kDZ2pwVJzI2nkSh+wN pQYIRrAPlwNgJ2eiLyzjS48DngJpWbf43YzCMzJTmiRW2jWDYMaAePW0vJ/PY6dTDMPh wUAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=K2R5p2Dupobo52J5LKvzicluXJB27VeNuo+pciX7wtY=; b=OLxwI6sUdtdHHq1SxVxiffojCrk7MFE5FetcUN5sNuyxuJZ/jPN5aIJOfPR4tlRCmz jsFZTqfrU4eTeMz1+GzWefaWoR5bfsF1Gvn7h5Egfo+bC58B5c4N+iDZJ/5rABbgrvye LM7He3Wdpow+B+GD5ysp2NhwKaBaQ6d+hfpQ/AlJYdRmFxUndJzxpk2QSv0L/M7dQuOC C69UVwckdO2hOQb+ENNiCZI866fcaYbJapvkfWP3FUziHinBPs4XdhDLdtS6XVDIv42z YhnMAnav18uGMlCx4C5ts6uOXIg7Gild6tKqGo4PSuO0sv3e3iW7EGfXx4PjvjAkXGyz CduA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=R+jSOCf6; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 5-20020a630005000000b004117951a3c9si30503738pga.537.2022.07.08.14.46.50; Fri, 08 Jul 2022 14:47:03 -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=@linuxfoundation.org header.s=google header.b=R+jSOCf6; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231845AbiGHVWq (ORCPT + 99 others); Fri, 8 Jul 2022 17:22:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238260AbiGHVWo (ORCPT ); Fri, 8 Jul 2022 17:22:44 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2659A238D for ; Fri, 8 Jul 2022 14:22:41 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id v185so125339ioe.11 for ; Fri, 08 Jul 2022 14:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=K2R5p2Dupobo52J5LKvzicluXJB27VeNuo+pciX7wtY=; b=R+jSOCf66H2Wpu3B4G2Nl4FC1cwmfghiGnaxPLpsZ+5fTMrp7f89L13mZrLMMT38ak fG17da3ItIJOW4nIG+91e/JumTH65V7EPsPLaLJA0xHKWuCFM6wJO+fmmncjoFIpNAik PBGFQDsu0/+DLpPbs4ft5LYoPYQeH5I8UBf5Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=K2R5p2Dupobo52J5LKvzicluXJB27VeNuo+pciX7wtY=; b=ICJWJ/Zo7ZAjZmz3F4L1yLBOI9B4Yuf6QcwVqVxE3CPZCzASnIv7Brq5Fzx5p9VCD5 IbZeK8bRj59OWeikFc3MBJ0nOaCiy2oaf5RDpT4qkp4SRIS7dTZj2iGZupP/0Kd5CBkH kAxBl/OqEIZT5wPsyQAC+OnIDnjcIBhT8AcKxJZskdw2N4wpVBUcFQ5E06ldLovliV1w sI8A4Ml5ZZzxrLz6Gkba9NEJIzeZOySYfX4kn4cu43PZ9dbZhgUB06Uu6KtG6KA87uBk xnDdJKT+RLnAtGnYtR4OpcrZk9KR7MwJ2rPUEHSbV97AlIleV4i0JLJst1Mq+bF1N02E lDTQ== X-Gm-Message-State: AJIora/gZKHWM7XD4gsAtL4/5aorz0QPspsJRYblvpatv5Hw+PZoI39N EaATcOVsl0vEMFvbznn8RNiSNw== X-Received: by 2002:a5e:c016:0:b0:675:398:4713 with SMTP id u22-20020a5ec016000000b0067503984713mr3076239iol.149.1657315361067; Fri, 08 Jul 2022 14:22:41 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id q4-20020a5d87c4000000b0066961821575sm19918898ios.34.2022.07.08.14.22.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Jul 2022 14:22:40 -0700 (PDT) Subject: Re: [PATCH v6 3/4] kunit: Taint the kernel when KUnit tests are run To: Daniel Latypov Cc: David Gow , Andrew Morton , Brendan Higgins , "Guilherme G . Piccoli" , Sebastian Reichel , John Ogness , Joe Fradley , Luis Chamberlain , Nathan Chancellor , kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, Andy Shevchenko , 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 , Jonathan Corbet , linux-kbuild@vger.kernel.org, Greg KH , Masahiro Yamada , Kees Cook , Shuah Khan References: <20220708044847.531566-1-davidgow@google.com> <20220708044847.531566-3-davidgow@google.com> From: Shuah Khan Message-ID: Date: Fri, 8 Jul 2022 15:22:39 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 7/8/22 3:00 PM, Daniel Latypov wrote: > On Fri, Jul 8, 2022 at 1:22 PM Shuah Khan wrote: >> >> On 7/7/22 10:48 PM, 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. >>> >>> This both marks KUnit modules as test modules using MODULE_INFO() and >>> manually taints the kernel when tests are run (which catches builtin >>> tests). >>> >>> Acked-by: Luis Chamberlain >>> Tested-by: Daniel Latypov >>> Reviewed-by: Brendan Higgins >>> Signed-off-by: David Gow >>> --- >>> >>> No changes since v5: >>> https://lore.kernel.org/linux-kselftest/20220702040959.3232874-3-davidgow@google.com/ >>> >>> No changes since v4: >>> https://lore.kernel.org/linux-kselftest/20220701084744.3002019-3-davidgow@google.com/ >>> >> >> David, Brendan, Andrew, >> >> Just confirming the status of these patches. I applied v4 1/3 and v4 3/4 >> to linux-kselftest kunit for 5.20-rc1. >> I am seeing v5 and v6 now. Andrew applied v5 looks like. Would you like >> me to drop the two I applied? Do we have to refresh with v6? > > Just noting here that there'll be a merge conflict between this patch > (3/4) and some other patches lined up to go through the kunit tree: > https://patchwork.kernel.org/project/linux-kselftest/patch/20220625050838.1618469-2-davidgow@google.com/ > > Not sure how we want to handle that. > I can go drop the two patches and have Andrew carry the series through mm tree. thanks, -- Shuah