Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2819159rwi; Fri, 28 Oct 2022 11:38:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7OqsLC0RON7dMDD93YELh5ncmwRtBDcsdaFF2Qh+oyh+ONcUl8o4sl8snODQJMrperu6G1 X-Received: by 2002:a17:90b:3e86:b0:20d:ab3e:bc50 with SMTP id rj6-20020a17090b3e8600b0020dab3ebc50mr630139pjb.53.1666982296900; Fri, 28 Oct 2022 11:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666982296; cv=none; d=google.com; s=arc-20160816; b=A5P+PbF+d7X8E3zchL+3DiIUeN3OoslxRwkJz0QHHp0gA+saZUQjnI6SYFhG1JKG8i MscvGUAIpfl8u2NNmVdS4uh77wCT9USSWEfSK5LXkuMzywJtgEIvIWewv6AJBGnMs1lH ofjXSFf4XMSeAHBBKs//ipDetiBwme1m7DR9R6c4Ii6TpW8aNzswS0grzxrfjl/W3b9t 8gIHvgdaZJuMeBocli4gAWWznOAuu1WrXWDBtlVZ5o/m1R7FBgRtRGK5vq7AKmVznFHY fCqO4bGc4Iy6IgntDmHX0Rf0Cfs8wEiHcmKauTpuW8+dKMg/ARVSfn3puBfQhdnBND/y rDwg== 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=sq+4+K8W7qz9CqdPYKGdGPJUiIj89nYCMsj4hrq+PXE=; b=vAMljuxS1qqs4gS78/E6xTgVMVvX0whtCBAa4hPG8RUa03unDa+/jSSZQdU2zIZvBp mT+UE0uq4YXgsyGdYPpUD0JVoi2oA8iTimilxIIBVlXYAR4g24QEk67J7NBOQbBtept7 lqOpQ5VVDCnEsBC7YoyN/F9W+7Je1lZ3RyC/NRmGVm8etMKSCRmFXxWYPuxoTV13NZBv KzGngthEk6ppPuV9HQdgElyg583xzI7oULcqK+gPCPTHLt4Vbs6Af5wwruBcEBWtoB57 VDCOZzuIRf2DZ5IN6ybtpK9C3ZuT2bbo/fatLtYZMX9BhVsKbnEb/ZnOcqL0+DMd+v/J 2s+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Qk8LjvSn; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020a170902db1000b00186ba521dc5si6945237plx.468.2022.10.28.11.38.05; Fri, 28 Oct 2022 11:38:16 -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=@chromium.org header.s=google header.b=Qk8LjvSn; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230204AbiJ1Rpa (ORCPT + 99 others); Fri, 28 Oct 2022 13:45:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230179AbiJ1Rp1 (ORCPT ); Fri, 28 Oct 2022 13:45:27 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AD3E4F3BC for ; Fri, 28 Oct 2022 10:45:24 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id u6so5433914plq.12 for ; Fri, 28 Oct 2022 10:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; 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=sq+4+K8W7qz9CqdPYKGdGPJUiIj89nYCMsj4hrq+PXE=; b=Qk8LjvSnKQ+nIz7iqqSWHFadvUV7NzJ6KPQ1r3p/lUiuWBKuG4/YdTl8U2LDkwWWQX ZTdEZPBQv33zkr7IS54F9tB+LCHpxqUrERaqe7kqttssTQmiUT8DJ26n3dEcMAIJPPmw 2uAFLRTwFf+091cseHU88g11bR5cZGAOVEfyg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=sq+4+K8W7qz9CqdPYKGdGPJUiIj89nYCMsj4hrq+PXE=; b=SMAUf3dOkGJ4XPSIZ/MRLX1hzxHoPNwdjpxbqwxBgUyUNWaxO4WykMNXhbLjm3rvdq AZs+ffxH/g9q01YDvcaOtJOUO/Clc/FU67lfwF03kaRYY8epn/qAz+2i943F7j+Hu/Hp akZAhTx/DeiFn97E/7xfPpnzNdiJ4CTelVWVniUEldyUR42QbgB0k5iHWndDS7Rny5qd wRc866Z5lrYBoBaE/ImQLF0Tz5FNv+naWZW3uEV5YISSb+8SBD98fMlHmvrN6MUCINty FDV0ySLgV66d2oSBQDAF+u4AHT5blPHusRYrJK5gozGl/NEkDz3+ss+ZpsfdFPKSXlZB PW7w== X-Gm-Message-State: ACrzQf3vlHMvjgwQWqsC3MVJ+3pLrtD8b+y8K7I3piYyqrroc8tqNJ/R TS5QznBoqmicfTkUCaW9laroVA== X-Received: by 2002:a17:90a:cf82:b0:20b:3525:81ec with SMTP id i2-20020a17090acf8200b0020b352581ecmr452552pju.42.1666979123537; Fri, 28 Oct 2022 10:45:23 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id u8-20020a17090341c800b001866a019010sm3368538ple.97.2022.10.28.10.45.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 10:45:22 -0700 (PDT) Date: Fri, 28 Oct 2022 10:45:21 -0700 From: Kees Cook To: Joey Gouly Cc: Catalin Marinas , Andrew Morton , Lennart Poettering , Zbigniew =?utf-8?Q?J=C4=99drzejewski-Szmek?= , Alexander Viro , Szabolcs Nagy , Mark Brown , Jeremy Linton , Topi Miettinen , linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-abi-devel@lists.sourceforge.net, nd@arm.com, shuah@kernel.org Subject: Re: [PATCH v1 2/2] kselftest: vm: add tests for memory-deny-write-execute Message-ID: <202210281043.DFC05DEF@keescook> References: <20221026150457.36957-1-joey.gouly@arm.com> <20221026150457.36957-3-joey.gouly@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221026150457.36957-3-joey.gouly@arm.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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, Oct 26, 2022 at 04:04:57PM +0100, Joey Gouly wrote: > +#include "../kselftest.h" I recommend using kselftest_harness.h instead; it provides much of the infrastructure that is open-coded here. But yes, testing is good; thank you! :) -- Kees Cook