Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4907560rwb; Wed, 17 Aug 2022 07:59:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR6aPWINFu6bGefSL8xoFSY82CejlXSKx3IPOA2iA8eq4PboFPui4Fwu1ZEmMjWLskvu+R91 X-Received: by 2002:a17:906:8c7:b0:730:c1a9:e187 with SMTP id o7-20020a17090608c700b00730c1a9e187mr17276314eje.55.1660748387641; Wed, 17 Aug 2022 07:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660748387; cv=none; d=google.com; s=arc-20160816; b=AirzvzluJeZnNL8OuHOJ6RNTpProbNMg9mdFO0hzSaIM2UZk3TWFXUnyfZmsbaXl6c 2lLHOxOkr9w1XN0/Tr/Kzq5TIzjgD4CAyqoWZBfEqn3EXPflxHBaLf5+3CuyCDbV9E3Q 5kzIXdpwBXSuf5YsTneP6lhFrCQvy3thUNTH30twoyF2d3J5XXREY1dTxEvPjZiPmb3K R/+7TO4XWGc59KvdKC3ZhwiFECbbrKtBHw4knUE9yLNqhQ5WiCw1O4UxqEs4ffsOckO/ /H4jjtCVgZpDW62grASgV3XjQsVQLK/MKKbbOtgPUryQVXM+vNjXgWwcDHXQOCtJPlW9 sO2w== 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=UmpUzoU1dN8mZDag55l6YtITvjsVCfKXWsjPTmYkhi0=; b=XvveQAXjcpo3fTwxLyixLryGbXswQWAG5TDbFwYjJWmNq6Vp75Jg7ku8EMaEo6BIt9 dSy8eTTabnH+dbaKp5pF+8n7XO0eZ1kWJiJLiDU2eosQvpPMS43FYZtpdaCeDwEsqJrq tFAJpORUqTNvzTr3GyowzuX3ZXzDV8plrp7wPdV2UJ41p+eg7Rae0Yvv0UfFAiSYVkOw soMww3sUJt51azyGL1MO89DZMZTd1ACyqsty8ACbwQwKV0GWOxZY8YqVy/+T2WgtBm7R 4Wx9gEKhP5mJe6kJ6jeqXDrB3hFf/zQbX+GTC/lbjERFWAavGafIp/BiPlnswqTvQILb 7bzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t2h4leWk; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a05640205ca00b0043c436a8d48si2463579edx.582.2022.08.17.07.59.21; Wed, 17 Aug 2022 07:59:47 -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=@kernel.org header.s=k20201202 header.b=t2h4leWk; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239643AbiHQOxf (ORCPT + 99 others); Wed, 17 Aug 2022 10:53:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236390AbiHQOxe (ORCPT ); Wed, 17 Aug 2022 10:53:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FC3B402C8; Wed, 17 Aug 2022 07:53:31 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id E33486142E; Wed, 17 Aug 2022 14:53:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF458C433C1; Wed, 17 Aug 2022 14:53:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660748010; bh=Pa5i8IC5TrT2DHQTMupGT4J67/zODUCPCOA2f64JMvQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t2h4leWkcnaYK4uW9V8k69ic9pVYJy6XNjyxbZb1AKoanqf9Q/4Yk4a7mBoVGN2Xj ZB69fHM8iYGoZcwPtvZrScXkKDjiaKK023eo3b3f/JhsYCjXN8ErHuG++uoAQE+CiD kyvKTgU0oO3lwxFFDz/C+JHs+7dryidAHuUQOSG5EoJ87eRwBpPRVRbEyGtosB00j4 AH1rWtDIqZ6MxquUu2fjcPHs3NJIEJGVQ0Ah3wfeouFrR88tOWrn6+ODGpiB37OwcR G6tqhKiX1/Czb2fO6XEL+JzFYN1RIKSzglH9c88ic8OmyoASX7K5uz7uyara+e9iuN cWciwXOAiojIw== Date: Wed, 17 Aug 2022 17:53:26 +0300 From: Jarkko Sakkinen To: Reinette Chatre Cc: "Dhanraj, Vijay" , Dave Hansen , "linux-sgx@vger.kernel.org" , Shuah Khan , "open list:KERNEL SELFTEST FRAMEWORK" , open list Subject: Re: [PATCH 2/2] selftests/sgx: Add SGX selftest augment_via_eaccept_long Message-ID: References: <20220815233900.11225-1-jarkko@kernel.org> <20220815233900.11225-2-jarkko@kernel.org> <6b304bb4-01cc-c88a-7299-19217a7a692b@intel.com> <24bd8e42-ff4e-0090-d9e1-cd81e4807f21@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Wed, Aug 17, 2022 at 05:44:31PM +0300, Jarkko Sakkinen wrote: > On Tue, Aug 16, 2022 at 09:35:27PM -0700, Reinette Chatre wrote: > > >>> This portion below was also copied from previous test and by only > > >>> testing a write to the first page of the range the purpose is not > > >>> clear. Could you please elaborate if the intention is to only test > > >>> accessibility of the first page and why that is sufficient? > > >> > > >> It is sufficient because the test reproduces the bug. It would have to be > > >> rather elaborated why you would possibly want to do more than that. > > > > That is fair. An accurate comment (currently an inaccurate copy&paste) would > > help to explain this part of the test. > > I would simply add something like: > > /* > * Define memory pool size big enough to trigger the reclaimer in the EAUG > * path of the page reclaimer. > */ > > Suggestions/edits obviously welcome for the comment. I wonder if we could put .bt files somewhere to make them available. In root causing this bug bpftrace scripting was the key so it would nice to have them available along with kselftest. I could imagine that we end up also in future to bugs allocation so it would have the script when you clone the kernel tree, and possibly more scripts in future. E.g. add bt/alloc-error.bt under tools/testing/selftests/sgx. BR, Jarkko