Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1324005rwd; Tue, 16 May 2023 15:38:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/3gsmH4PRiAOooGoSvmCrgJZ0Re7fNUzb3LN/ynOiITa0MInz+fTBy1VjFaQv/XwwtNDT X-Received: by 2002:a17:90b:46cd:b0:250:6119:6c1f with SMTP id jx13-20020a17090b46cd00b0025061196c1fmr32673426pjb.19.1684276694669; Tue, 16 May 2023 15:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684276694; cv=none; d=google.com; s=arc-20160816; b=PIB7vrbYrv2kod/UKv5b2dHqUVLQzgQ1U0hAMk88qIVJqGlClEM6Q4S0GmdRE8m25m RYaqJ03iFl5oJAWnICA+H01v48EaJrBuY+Jn+B6yEvFnD1Pi4eixtaKVXiFk2G6xYzoN FZSEZpptOG3gHnYEIUNx1N0lKTCzXlEr052DM2qVsxWRrXIAhviaA1rrXM1+K1Bhn60P JhXmqIPbuH7HoPQOzStK2YQizRg215CWmqpFaFpddfzMrmKQsWzq8ceoHipdr3BHQqH8 O3Xxh2sLHgoi/ZdmcITsUB/qh26w2LhmGVuFascbrMvF70xdKDQticDt5cB/mFkIPKDF Lb7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=VJlRw0cVqZbnlLBS7pOMQzrAmvHSD2FA3uV2tmyOarg=; b=r1KE91K1xdryFxVPBTbI8PQAGf/UnDJ0DztdgRlUGtkbwdMr4WmSqfyW3oHVguPA29 UP3Qr1znxvpV5CYsWaEnQy4xsVpBxtAowFYjpp2+u+gDg7zreW/DPAs92Jd2kuC0Ep6w Iv02v0ioueWbt6djKQjehUS0FRPe1HMXfEIiTF+ROyA05gSZ2/IDRSKN5aIzK3LVx3ZF 0Go+TZPsWIXtd+DY5/jnVyP7psQoVwXkWmq1TafzvtermMOgtGB4iD/UloRznndQ0Z7g nfN2ZamyOhO90CNuqwK/RH/ldvGeEz6WPwp/el5Cr+ljpiQfVsWY11lgObUSyhq+PLDq LHsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EGv1iCEW; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z19-20020a63e113000000b00530878c182fsi12615499pgh.289.2023.05.16.15.38.00; Tue, 16 May 2023 15:38:14 -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=@intel.com header.s=Intel header.b=EGv1iCEW; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229638AbjEPWaz (ORCPT + 99 others); Tue, 16 May 2023 18:30:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjEPWaw (ORCPT ); Tue, 16 May 2023 18:30:52 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64C115FC2; Tue, 16 May 2023 15:30:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684276251; x=1715812251; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=VJlRw0cVqZbnlLBS7pOMQzrAmvHSD2FA3uV2tmyOarg=; b=EGv1iCEWPpOvVmE+mWWEGj195JHeSihmkISqN7kGMp2t5fE2+hAnZ33B Kk+plVe4bcuDT+EnkY1JOebCKJAYH0m3FNuj5XcuEVtI8Doh0wU3GHRx9 OI8J+/e73JQrwUK5fBnnV3dBIvw9uw1poPE534SKb7iwgouN4oQdSge9T SYhI9E321nPhwVbj/+m3kQACosW5J8IEzGYvOlGXJzOrDG2+/2jYa8XMK GrQQV9vaJEbtdunersvTIqLHQXr3k5Hhw6zm5ByEkG16JtPjLgkAq+j/4 +ZLHBd+GSzV24cdm8y7VON/Hkw/C3dKmsfKarB+PAv3XdHe+YXjj7M2Vi Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10712"; a="340986803" X-IronPort-AV: E=Sophos;i="5.99,280,1677571200"; d="scan'208";a="340986803" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2023 15:30:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10712"; a="695636016" X-IronPort-AV: E=Sophos;i="5.99,280,1677571200"; d="scan'208";a="695636016" Received: from mtpanu-mobl1.amr.corp.intel.com (HELO [10.212.203.6]) ([10.212.203.6]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2023 15:30:50 -0700 Message-ID: <1656e926-f277-710e-71ad-1ff2fe77886b@intel.com> Date: Tue, 16 May 2023 15:30:50 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 0/6] Memory Mapping (VMA) protection using PKU - set 1 Content-Language: en-US To: Jeff Xu , Kees Cook Cc: jeffxu@chromium.org, luto@kernel.org, jorgelo@chromium.org, groeck@chromium.org, jannh@google.com, sroettger@google.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-hardening@vger.kernel.org References: <20230515130553.2311248-1-jeffxu@chromium.org> <202305161307.4A16BB6A47@keescook> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,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 5/16/23 15:17, Jeff Xu wrote: >>> This set of patch covers mprotect/munmap, I plan to work on other >>> syscalls after this. >> Which ones are on your list currently? >> > mprotect/mprotect_pkey/munmap > mmap/mremap > madvice,brk,sbrk What about pkey_free()? Without that, someone can presumably free the pkey and then reallocate it without PKEY_ENFORCE_API.