From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Weimer Subject: Re: [PATCH] pkeys: Introduce PKEY_ALLOC_SIGNALINHERIT and change signal semantics Date: Mon, 14 May 2018 17:34:07 +0200 Message-ID: References: <20180502132751.05B9F401F3041@oldenburg.str.redhat.com> <248faadb-e484-806f-1485-c34a72a9ca0b@intel.com> <822a28c9-5405-68c2-11bf-0c282887466d@redhat.com> <57459C6F-C8BA-4E2D-99BA-64F35C11FC05@amacapital.net> <6286ba0a-7e09-b4ec-e31f-bd091f5940ff@redhat.com> <20180503021058.GA5670@ram.oc3035372033.ibm.com> <927c8325-4c98-d7af-b921-6aafcf8fe992@redhat.com> <314e1a48-db94-9b37-8793-a95a2082c9e2@redhat.com> <008010c1-20a1-c307-25ac-8a69d672d031@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Content-Language: en-US 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: Andy Lutomirski Cc: linux-arch , Linux-MM , Linux API , X86 ML , linuxram@us.ibm.com, Dave Hansen , linux-x86_64@vger.kernel.org, Andy Lutomirski , linuxppc-dev List-Id: linux-api@vger.kernel.org On 05/14/2018 05:32 PM, Andy Lutomirski wrote: > > > >> On May 14, 2018, at 5:01 AM, Florian Weimer wrote: >> >>> One thing we could do, though: the current initual state on process >>> creation is all access blocked on all keys. We could change it so that >>> half the keys are fully blocked and half are read-only. Then we could add >>> a PKEY_ALLOC_STRICT or similar that allocates a key with the correct >>> initial state*and* does the setsignal thing. If there are no keys left >>> with the correct initial state, then it fails. >> >> The initial PKRU value can currently be configured by the system administrator. I fear this approach has too many moving parts to be viable. >> >> > > Honestly, I think we should drop that option. I don’t see how we can expect an administrator to do this usefully. I don't disagree—it makes things way less predictable in practice. Thanks, Florian