From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Weimer Subject: Re: pkeys: Reserve PKEY_DISABLE_READ Date: Wed, 05 Dec 2018 14:00:59 +0100 Message-ID: <87zhtki0vo.fsf@oldenburg2.str.redhat.com> References: <20181108201231.GE5481@ram.oc3035372033.ibm.com> <87bm6z71yw.fsf@oldenburg.str.redhat.com> <20181109180947.GF5481@ram.oc3035372033.ibm.com> <87efbqqze4.fsf@oldenburg.str.redhat.com> <20181127102350.GA5795@ram.oc3035372033.ibm.com> <87zhtuhgx0.fsf@oldenburg.str.redhat.com> <58e263a6-9a93-46d6-c5f9-59973064d55e@intel.com> <87va4g5d3o.fsf@oldenburg.str.redhat.com> <20181203040249.GA11930@ram.oc3035372033.ibm.com> <87pnuibobh.fsf@oldenburg.str.redhat.com> <20181204062318.GC11930@ram.oc3035372033.ibm.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <20181204062318.GC11930@ram.oc3035372033.ibm.com> (Ram Pai's message of "Mon, 3 Dec 2018 22:23:18 -0800") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane.org@lists.ozlabs.org Sender: "Linuxppc-dev" To: Ram Pai Cc: Dave Hansen , linux-api@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org List-Id: linux-api@vger.kernel.org * Ram Pai: > Ok. here is a patch, compiled but not tested. See if this meets the > specifications. > > ----------------------------------------------------------------------------------- > > commit 3dc06e73f3795921265d5d1d935e428deab01616 > Author: Ram Pai > Date: Tue Dec 4 00:04:11 2018 -0500 > > pkeys: add support of PKEY_DISABLE_READ Thanks. In the x86 code, the translation of PKEY_DISABLE_READ | PKEY_DISABLE_WRITE to PKEY_DISABLE_ACCESS appears to be missing. I believe the existing code produces PKEY_DISABLE_WRITE, which is wrong. Rest looks okay to me (again not tested). Thanks, Florian