Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp444018ybg; Mon, 1 Jun 2020 05:41:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuz0ReX3eJUPw/PlSvVCRfx9GkwZ4O+RaEo0u9kWCBiHAWaU6aAY7wRh8N37kLUexkP3Po X-Received: by 2002:a50:b0c3:: with SMTP id j61mr3259684edd.349.1591015268172; Mon, 01 Jun 2020 05:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591015268; cv=none; d=google.com; s=arc-20160816; b=FzMb4eP7HNq1o/BSnmpAEK0/fjhv3KiUXvJRyw2PzbbtKEVkWS1pokVjUaE5sWclGM Vb1WGRflkUp+Hv58tKj1G+XzxfH7uP2a1Ge1cTjbduvsghZGrTE7nQmQUaE4HxYsYGRp O+XsSb/vCgaaDYZ6lu0KyoZcN2lnO0uOoMM/bIduzYR1viotV6B6ZyvquN2whZCbnVQH i2Gpjdel5JlHn++mbPwQyGZtB8Sh4+2J3odOBaiNZfm+Rf48p5JdKnZ0PxSu84GTcyXS FgL7zVg8j0j6kW+o2CLHPdOURlPh5qyBftgU9w8WwvCNT7r7JedbassfADep2qL1CTtX QsUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=kttqVH6cCmTyH+UMIRlDpIAJPI7g8QzbpYkzEQc/Iw8=; b=oHSFGEfEzqtWT7SYVfmmTIXUChBrDrPYtvLEaBzQokNVzB4yoL6OtgMBEg8+pie6v0 uRdal5YWNpI3j5ywL/q5VYAl6+nIK9dqMCSEd5NOkT+K6BS5G9LnEOgHTIJCY8nIjKtG x6MT1T2lcvM2qdsRpJ49SUrjZICQ32XBJ7Swx5D/fUNFOAe5z07sLeoSAsKz+0QHnDtE mIhBINRJDKduDE6rJpeyoeWdbh7FWC7UjJ6vMYIrql768xwHIvfGOtd5/wIHQwp6ly76 lg4td+Zn37zJOizUbYAELXFfwCMTGobF/+t2F8xf+kR41wC8ZbCOiUUgyEqp6XOTTIIq UDoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l14si5915078edv.272.2020.06.01.05.40.45; Mon, 01 Jun 2020 05:41:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726176AbgFAMhG (ORCPT + 99 others); Mon, 1 Jun 2020 08:37:06 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:45960 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726073AbgFAMhF (ORCPT ); Mon, 1 Jun 2020 08:37:05 -0400 Received: from 201-95-154-249.dsl.telesp.net.br ([201.95.154.249] helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jfjgd-0003mJ-In; Mon, 01 Jun 2020 12:37:04 +0000 From: Thadeu Lima de Souza Cascardo To: linux-kselftest@vger.kernel.org Cc: Thadeu Lima de Souza Cascardo , Kees Cook , Shuah Khan , linux-kernel@vger.kernel.org, Andy Lutomirski , Will Drewry Subject: [PATCH v2] selftests/seccomp: use 90s as timeout Date: Mon, 1 Jun 2020 09:36:56 -0300 Message-Id: <20200601123656.1184098-1-cascardo@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As seccomp_benchmark tries to calibrate how many samples will take more than 5 seconds to execute, it may end up picking up a number of samples that take 10 (but up to 12) seconds. As the calibration will take double that time, it takes around 20 seconds. Then, it executes the whole thing again, and then once more, with some added overhead. So, the thing might take more than 40 seconds, which is too close to the 45s timeout. That is very dependent on the system where it's executed, so may not be observed always, but it has been observed on x86 VMs. Using a 90s timeout seems safe enough. Signed-off-by: Thadeu Lima de Souza Cascardo --- tools/testing/selftests/seccomp/settings | 1 + 1 file changed, 1 insertion(+) create mode 100644 tools/testing/selftests/seccomp/settings diff --git a/tools/testing/selftests/seccomp/settings b/tools/testing/selftests/seccomp/settings new file mode 100644 index 000000000000..ba4d85f74cd6 --- /dev/null +++ b/tools/testing/selftests/seccomp/settings @@ -0,0 +1 @@ +timeout=90 -- 2.25.1