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:41:35 +0200 Message-ID: <20130410094135.GD24443@gmail.com> References: <20130408224328.GA17641@www.outflux.net> <51634935.9010905@zytor.com> <51645D6F.7070705@zytor.com> <51646054.3090509@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: 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: Kees Cook Cc: Alexander Duyck , Alex Shi , Jeremy Fitzhardinge , Will Drewry , Julien Tinnes , Konrad Rzeszutek Wilk , "kernel-hardening@lists.openwall.com" , Frederic Weisbecker , Dan Rosenberg , "x86@kernel.org" , LKML , Steven Rostedt , Borislav Petkov , Ingo Molnar , "H. Peter Anvin" , "Paul E. McKenney" , "virtualization@lists.linux-foundation.org" , "xen-devel@lists.xensource.com" List-Id: virtualization@lists.linuxfoundation.org * Kees Cook wrote: > > That's the area in which we just map 1:1 to memory. Anything allocated with > > e.g. kmalloc() ends up with those addresses. > > Ah-ha! Yes, I see now when comparing the debug/kernel_page_tables reports. It's > just the High Kernel Mapping that we care about. Addresses outside that range > are less of a leak. Excellent, then GDT may not be a problem. Whew. It's still an infoleak to worry about: any function pointers nearby matter, and the x86 GDT is obviously full of useful and highly privilege-relevant function pointers ... I have no objections against read-only mapping the GDT as well. Thanks, Ingo