Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp106903rdb; Mon, 22 Jan 2024 13:35:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IGUwOv3twl729XxQCHJMwyZ5BmUK+250fSQRHhOjtvR3cp8QjfVDR2nJrwkrvf4ifPSoX+F X-Received: by 2002:a05:651c:c86:b0:2ce:ff62:7101 with SMTP id bz6-20020a05651c0c8600b002ceff627101mr481339ljb.118.1705959318687; Mon, 22 Jan 2024 13:35:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705959318; cv=pass; d=google.com; s=arc-20160816; b=LeSlnUNhUxL3waoLmsd4+q8r6uBjj9XBRB4OKSxunpPjs5AIX224YyYhBlPN6ANtPn BEWDcPST7izS6JKAKX5rUxS7F0Z9OOAzqhP4H2eOR2vrM4YkbH/u2mJBnaqQAWW0MEUh g8/FGSiOteNNeO2mHy1AYCZCXI9t/HGk1tJJBGO52pTliuTouDYzIpx3X3Lxj5NOfTj0 o0Ux7DTdIOMYw1NB07X0XlEvl7/eKnyU/HGH9CW8UNzoEVUldFPsILarKKHIkodfcU6t ksnMrztchks+kZPAKArMwRil4pzshf9d69m2btvB1uObYRYRFIa+Ke5MOexj2eCwh/S1 lVDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=p2tdYfbNQoyjzZj7eaSxYMIkM7B/ZoCmtQ4lSJqnD8c=; fh=6HaMp1BXXlqfynzWRb/8+Vz9FIWVBwzNGwm6rReVpng=; b=V/I+3KDGsvaDnvMqffygx+Z3YCx+Vrj0lMUGUTs9AnZFzXDgz1WyPw8sGP5gR5nIAN tZRo3r4evXq5TVmercOKNFBUOXZQS4FyVuaciQ8/twddfIZEXSgfxAFMBU44H9TBk5EE AOW4ez5ALz+urd/I5J2K+Pd/OPzWO5oOSS4ZYUH87pkX5NFGSX9PKXE0pXPQQevYBdAI ol18CoT5AB7yKvXOjM/Hmab0b56XCjebVN6dHVp4hK6Xx8EM9f+PJw7EYVYdkjbErztE fnVhm6XCqlyy+NvT0illdN5DJDBfzIbYVZQ8DfKjabUsc3VxaQQ1QvlxOTbWXsu9eTXB Q6oA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GdZ4fLHf; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-34198-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34198-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p15-20020a056402500f00b0055853b9809dsi11276237eda.13.2024.01.22.13.35.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 13:35:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34198-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GdZ4fLHf; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-34198-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34198-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 701D71F29E95 for ; Mon, 22 Jan 2024 21:35:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1377495C3; Mon, 22 Jan 2024 21:32:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="GdZ4fLHf" Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 757B248CF9 for ; Mon, 22 Jan 2024 21:32:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705959146; cv=none; b=fa3Vd90dEv4o4zMFJdAlmRAoKiefvf1NPPDjgUJdQHfx5RR7MGBDKHZsLlp+E2UNqOEu/oWYneGwP588Q5jXTF5KoUrnJBMZv6g00+inQezuVXUDHyJOczYpfHNv8iWWIyMCU/SyigE14DS+4egJbGiMwePKeZe2wzNamhH5PRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705959146; c=relaxed/simple; bh=ib9SRx6LkRZhW0h8GTNvFlw5bOTy+G6SkrbOyw6mexU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BwilNWhejDblwMvqUOxqAobjKWsjfinYEVo9JQhmuboLJjfMxFUo7GDJ+hlAcihnSD2ktx2j7QeBK8scsuOZaie4hh2XUIPV5ng8B1oIL2JMW3e+oW+ML+kCM5cVA/8vDYG2k7tLerpEoUG4c9Sfu7lbMtf+eOiNNUb/WXPotH8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=GdZ4fLHf; arc=none smtp.client-ip=209.85.216.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-29041136f73so1728413a91.0 for ; Mon, 22 Jan 2024 13:32:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1705959144; x=1706563944; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=p2tdYfbNQoyjzZj7eaSxYMIkM7B/ZoCmtQ4lSJqnD8c=; b=GdZ4fLHfjIom7nqWKjCRem6qs5dBl8yxh7nvAplvtoAU8cMoELzqYo5fnfP131teKo /GVvvDQJaxx8ykGOX78iefYktyyHHW5U3fSQRSWMBGUf3sH2qrQp1jHhHtYw//1K+v83 HDxwe6Urf9/1Plbftu00LiETFusyR5Gw9z7u8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705959144; x=1706563944; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=p2tdYfbNQoyjzZj7eaSxYMIkM7B/ZoCmtQ4lSJqnD8c=; b=arnBzoUsOftxXVZLyAUpiB24GTKWq2Ryw5upsKED0HR2zqXoBmjMNBoHoz18OimLPi K2mpmW69w5IDRPy0adzKefx9fAIhVuexbG5FVjcK/YL2MTYLFGdk2l1JAFQ4OlmN606y kBzYjDhMHYibHlsTzvQySKAaAS5bnGLitqvRgOH6KZl5t57lE0ItIOZ3ErVVfCQW4Vrr BeydkTWAuzdeURPbKE43Xwh7egInFb9iIIppPDCxruzHPV9roXT32WDIm3+cpQ1AETAJ 9vQkltpgEU04STCulDqUtep9KVPOr/x2wCDJU+rFRUb66B4QL2k47EeQWwEfy3sKuHog RZFA== X-Gm-Message-State: AOJu0YwbC9XHonSMzrRnd3BqroPDOEfMkpeeIxMX6W6gTws0J10cnbjo M4DyeyjWeNHlLRelI0+xGEyxLoL4BHA/hEQ9ryOOKr/qTtRtx/W5F/QjxU+oRA== X-Received: by 2002:a17:90a:a793:b0:28f:f4fb:f791 with SMTP id f19-20020a17090aa79300b0028ff4fbf791mr1787141pjq.94.1705959143945; Mon, 22 Jan 2024 13:32:23 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id rs7-20020a17090b2b8700b0028d70a8d854sm10131048pjb.54.2024.01.22.13.32.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 13:32:23 -0800 (PST) Date: Mon, 22 Jan 2024 13:32:22 -0800 From: Kees Cook To: Mark Brown Cc: Andy Lutomirski , Will Drewry , Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: Re: [PATCH v2 2/2] kselftest/seccomp: Report each expectation we assert as a KTAP test Message-ID: <202401221331.2EE8F668@keescook> References: <20240122-b4-kselftest-seccomp-benchmark-ktap-v2-0-aed137eaea41@kernel.org> <20240122-b4-kselftest-seccomp-benchmark-ktap-v2-2-aed137eaea41@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240122-b4-kselftest-seccomp-benchmark-ktap-v2-2-aed137eaea41@kernel.org> On Mon, Jan 22, 2024 at 04:04:16PM +0000, Mark Brown wrote: > The seccomp benchmark test makes a number of checks on the performance it > measures and logs them to the output but does so in a custom format which > none of the automated test runners understand meaning that the chances that > anyone is paying attention are slim. Let's additionally log each result in > KTAP format so that automated systems parsing the test output will see each > comparison as a test case. The original logs are left in place since they > provide the actual numbers for analysis. > > As part of this rework the flow for the main program so that when we skip > tests we still log all the tests we skip, this is because the standard KTAP > headers and footers include counts of the number of expected and run tests. > > Tested-by: Anders Roxell with the S-o-b added, Acked-by: Kees Cook -- Kees Cook