From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751255AbbJAWjF (ORCPT ); Thu, 1 Oct 2015 18:39:05 -0400 Received: from www.sr71.net ([198.145.64.142]:45285 "EHLO blackbird.sr71.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751178AbbJAWjD (ORCPT ); Thu, 1 Oct 2015 18:39:03 -0400 Subject: Re: [PATCH 26/26] x86, pkeys: Documentation To: Kees Cook References: <20150916174903.E112E464@viggo.jf.intel.com> <20150916174913.AF5FEA6D@viggo.jf.intel.com> <20150920085554.GA21906@gmail.com> <55FF88BA.6080006@sr71.net> <20150924094956.GA30349@gmail.com> <56044A88.7030203@sr71.net> <20151001111718.GA25333@gmail.com> <560DB4A6.6050107@sr71.net> Cc: Ingo Molnar , "x86@kernel.org" , LKML , Linux-MM , Linus Torvalds , Andrew Morton , Peter Zijlstra , Andy Lutomirski , Borislav Petkov From: Dave Hansen Message-ID: <560DB605.2000402@sr71.net> Date: Thu, 1 Oct 2015 15:39:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/01/2015 03:35 PM, Kees Cook wrote: > On Thu, Oct 1, 2015 at 3:33 PM, Dave Hansen wrote: >> On 10/01/2015 01:39 PM, Kees Cook wrote: >>> On Thu, Oct 1, 2015 at 4:17 AM, Ingo Molnar wrote: >>>> So could we try to add an (opt-in) kernel option that enables this transparently >>>> and automatically for all PROT_EXEC && !PROT_WRITE mappings, without any >>>> user-space changes and syscalls necessary? >>> >>> I would like this very much. :) >> >> Here it is in a quite fugly form (well, it's not opt-in). Init crashes >> if I boot with this, though. > > *laugh* Okay... well, we've got some work to do, I guess. :) > > (And which init?) systemd for better or worse.