From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Hansen Subject: Re: mm, x86, powerpc: pkey semantics for key-0 ? Date: Thu, 8 Mar 2018 11:30:29 -0800 Message-ID: <1bfaa8c0-cd9c-b590-9930-e9584dfb928d@intel.com> References: <1519257138-23797-1-git-send-email-linuxram@us.ibm.com> <1519257138-23797-4-git-send-email-linuxram@us.ibm.com> <2a7737cf-a5ba-c814-fdc7-45b5cdd47376@intel.com> <20180308182517.GO1060@ram.oc3035372033.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180308182517.GO1060@ram.oc3035372033.ibm.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Ram Pai Cc: mpe@ellerman.id.au, mingo@redhat.com, akpm@linux-foundation.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, x86@kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, benh@kernel.crashing.org, paulus@samba.org, khandual@linux.vnet.ibm.com, aneesh.kumar@linux.vnet.ibm.com, bsingharora@gmail.com, hbabu@us.ibm.com, mhocko@kernel.org, bauerman@linux.vnet.ibm.com, ebiederm@xmission.com, corbet@lwn.net, arnd@arndb.de, fweimer@redhat.com, msuchanek@suse.com, Ulrich.Weigand@de.ibm.com List-Id: linux-arch.vger.kernel.org On 03/08/2018 10:25 AM, Ram Pai wrote: > Is there a reason why the default key; key-0, is not allowed to be > explicitly associated with pages using pkey_mprotect()? No, it's a bug if it is not permitted. I have a vague recollection of knowing about this and having a patch. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com ([192.55.52.88]:37109 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932076AbeCHTac (ORCPT ); Thu, 8 Mar 2018 14:30:32 -0500 Subject: Re: mm, x86, powerpc: pkey semantics for key-0 ? References: <1519257138-23797-1-git-send-email-linuxram@us.ibm.com> <1519257138-23797-4-git-send-email-linuxram@us.ibm.com> <2a7737cf-a5ba-c814-fdc7-45b5cdd47376@intel.com> <20180308182517.GO1060@ram.oc3035372033.ibm.com> From: Dave Hansen Message-ID: <1bfaa8c0-cd9c-b590-9930-e9584dfb928d@intel.com> Date: Thu, 8 Mar 2018 11:30:29 -0800 MIME-Version: 1.0 In-Reply-To: <20180308182517.GO1060@ram.oc3035372033.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: Ram Pai Cc: mpe@ellerman.id.au, mingo@redhat.com, akpm@linux-foundation.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, x86@kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, benh@kernel.crashing.org, paulus@samba.org, khandual@linux.vnet.ibm.com, aneesh.kumar@linux.vnet.ibm.com, bsingharora@gmail.com, hbabu@us.ibm.com, mhocko@kernel.org, bauerman@linux.vnet.ibm.com, ebiederm@xmission.com, corbet@lwn.net, arnd@arndb.de, fweimer@redhat.com, msuchanek@suse.com, Ulrich.Weigand@de.ibm.com Message-ID: <20180308193029.vmcqLFM3JpCENIrKbxOxNgPpHaJLRtdoKYFVyDoY0LU@z> On 03/08/2018 10:25 AM, Ram Pai wrote: > Is there a reason why the default key; key-0, is not allowed to be > explicitly associated with pages using pkey_mprotect()? No, it's a bug if it is not permitted. I have a vague recollection of knowing about this and having a patch.