Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1289739rwb; Thu, 8 Dec 2022 08:50:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf6q49V+jbL6ZBpTDdLPA7r06kRr2Ad9ozczS9uEiheOdHYxdjaumGMhk+cIE/+if69Z9DYq X-Received: by 2002:a17:906:9f09:b0:7bc:db1b:206f with SMTP id fy9-20020a1709069f0900b007bcdb1b206fmr15673961ejc.719.1670518205903; Thu, 08 Dec 2022 08:50:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670518205; cv=none; d=google.com; s=arc-20160816; b=dUHqHhOmtDT/XScGmHVjE3w+BQIGyn56z4ZyRtU5qAd3UmRUeZ/gthce8aUEJjWrxt ygEcCRWTcp7g6EGoVWlyhfbEGEV3r2G38REfRxkL0SEgg+RBzb3roix21CkikVV0o16f 1th/WSDTDTH9tlfHIS8S/UVHLwkuwDpeh/ougRiVTKUHHRhNOLiKhDl42hOEBxqFXzmB DHKVmd6o26QcrT9ifpjWZvrraOIE5JdvUXjazHJXfPcpZ1Zi1+NOdXYhq1ynT2R53TKK nL6qt+hK5/4OwWCgKOciWxG2HxDGK+26qJoxbbglVES/IDJrZUT3arSo8McpSb4KfqQG GqLA== 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=k4tmfXAitcgkSlUsd80rpXrMdUZPjLhK1NcCQ+49+g8=; b=TATWB+ago5A9xfd+Z3EJO4sfMwL8yEddvUEUC78+kXzqVqr2zOq4xBitFW2zz4LaPS fkHgd9nGcw1J7aiy9JRI7O5fMneAnrVkcD+ioItkM1eG6RtjvurpemRyw8CQsnDux3B0 j5IgTQskRa8RL+kVNJEOJtKQHMuu6JdSXHFb8dRoYDuGxCTJS0Bs3Lgd/Yn838QZb98f nWSa13Uv5BZVGaQGYFAuZdC1Crd0tnfeJ9HGmVIioU7mHq43Q/OA8cTLxPj8ftY8+h0Z nXpByGr1SKI6cqYUpjx2EPvuEcPXM0S0kJPZeOdktTsLoSp0cXQaU0xBcTERKgyByTEg ccDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IfAhwPly; 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 r9-20020a05640251c900b00469634340b4si7781213edd.285.2022.12.08.08.49.48; Thu, 08 Dec 2022 08:50:05 -0800 (PST) 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=IfAhwPly; 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 S229737AbiLHQam (ORCPT + 72 others); Thu, 8 Dec 2022 11:30:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230217AbiLHQac (ORCPT ); Thu, 8 Dec 2022 11:30:32 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AD8B70B9B for ; Thu, 8 Dec 2022 08:30:30 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id w4-20020a17090ac98400b002186f5d7a4cso5216176pjt.0 for ; Thu, 08 Dec 2022 08:30:30 -0800 (PST) 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=k4tmfXAitcgkSlUsd80rpXrMdUZPjLhK1NcCQ+49+g8=; b=IfAhwPlyRtM85i8rguQOmP7CnTCezl5zNw1zvLw2K9t/3snzqJ13XzN33EuGXVmdL7 kuGJCxBQ0DAIKjAwY35ZND7i0UIklkDsfJ1LCwZaoQB3sJw5qQRG9YGF/gn42W4DMLem DkKozVqyjHBsuR1CAhF3Xu981CEhsvXZWHGPQ= 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=k4tmfXAitcgkSlUsd80rpXrMdUZPjLhK1NcCQ+49+g8=; b=4IJ/B2kslp0CsTJEkmLAv/qS2v2gc94BvukbEZAB8p1qqcL6Su0sg8L+814phnJyji 378DeU6LaGJgHfMijc3G5bQZp0O2X9POXk7em3EgeRWET2cKuzcjSbSapdHORSDNwKKz 8tTGcrxUZMeFzu4QLensQk4KpkBA0ChaaRtE5Bboc3H6YinbtqubIxmdaFAUfMStZNYu Bgiw2QMbYKtrKDU0GsWtJ4me8WT88hi9B3iXhwGNQ5bmCxm0rIWHKptQ/0dcZXVhq4YZ gLb75Xnj7tAxGqjNeT8sZduFNwXgnSeybiqz4OmQm5dqmpsZ2mmDaGlJ4WQKulylLYHj IsZQ== X-Gm-Message-State: ANoB5pmpkoeqi2L9rKcMn19jKj/opI5xMBB98q9uZ8bKuqWRmfhHQSKU N8suN4MX8BPlt7VaZz8iigGneg== X-Received: by 2002:a17:902:a505:b0:189:e149:a1a6 with SMTP id s5-20020a170902a50500b00189e149a1a6mr14708502plq.58.1670517029595; Thu, 08 Dec 2022 08:30:29 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id h15-20020a170902680f00b00186cd4a8aedsm16697608plk.252.2022.12.08.08.30.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 08:30:29 -0800 (PST) Date: Thu, 8 Dec 2022 08:30:28 -0800 From: Kees Cook To: jeffxu@chromium.org Cc: skhan@linuxfoundation.org, akpm@linux-foundation.org, dmitry.torokhov@gmail.com, dverkamp@chromium.org, hughd@google.com, jeffxu@google.com, jorgelo@chromium.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, jannh@google.com, linux-hardening@vger.kernel.org Subject: Re: [PATCH v6 5/6] selftests/memfd: add tests for MFD_NOEXEC_SEAL MFD_EXEC Message-ID: <202212080830.EB9070F758@keescook> References: <20221207154939.2532830-1-jeffxu@google.com> <20221207154939.2532830-6-jeffxu@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221207154939.2532830-6-jeffxu@google.com> X-Spam-Status: No, score=-2.1 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=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 Wed, Dec 07, 2022 at 03:49:38PM +0000, jeffxu@chromium.org wrote: > From: Jeff Xu > > Tests to verify MFD_NOEXEC, MFD_EXEC and vm.memfd_noexec sysctl. > > Co-developed-by: Daniel Verkamp > Signed-off-by: Daniel Verkamp Reviewed-by: Kees Cook -- Kees Cook