From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40l4Vs6vX4zF2wM for ; Tue, 15 May 2018 01:34:13 +1000 (AEST) Subject: Re: [PATCH] pkeys: Introduce PKEY_ALLOC_SIGNALINHERIT and change signal semantics To: Andy Lutomirski Cc: Andy Lutomirski , linuxram@us.ibm.com, Dave Hansen , Linux-MM , Linux API , linux-x86_64@vger.kernel.org, linux-arch , X86 ML , linuxppc-dev 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> From: Florian Weimer Message-ID: Date: Mon, 14 May 2018 17:34:07 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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