From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: [kernel-hardening] Re: [PATCH] x86: make IDT read-only Date: Wed, 10 Apr 2013 11:52:12 +0200 Message-ID: <20130410095212.GE24443@gmail.com> References: <20130408224328.GA17641@www.outflux.net> <51634935.9010905@zytor.com> <5164AC44.7030708@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <5164AC44.7030708@zytor.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: "H. Peter Anvin" Cc: Alexander Duyck , Alex Shi , Jeremy Fitzhardinge , Will Drewry , Kees Cook , Julien Tinnes , Konrad Rzeszutek Wilk , Frederic Weisbecker , Dan Rosenberg , "x86@kernel.org" , LKML , Steven Rostedt , Borislav Petkov , Ingo Molnar , "kernel-hardening@lists.openwall.com" , "Paul E. McKenney" , "virtualization@lists.linux-foundation.org" , "xen-devel@lists.xensource.com" List-Id: virtualization@lists.linuxfoundation.org * H. Peter Anvin wrote: > On 04/09/2013 11:22 AM, Kees Cook wrote: > > > > Can we create a RO fixed per-cpu area? > > > > "Fixed" and "percpu" are mutually exclusive... There's a fixmap area that holds kmap_atomic() percpu mappings: FIX_KMAP_BEGIN, /* reserved pte's for temporary kernel mappings */ FIX_KMAP_END = FIX_KMAP_BEGIN+(KM_TYPE_NR*NR_CPUS)-1, In a similar fashion we could use a per CPU high-mapped read-only alias as well (assuming it fits, memory is pretty tight there). Thanks, Ingo