From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934733Ab3DISqK (ORCPT ); Tue, 9 Apr 2013 14:46:10 -0400 Received: from mail-ob0-f171.google.com ([209.85.214.171]:59506 "EHLO mail-ob0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751809Ab3DISqI (ORCPT ); Tue, 9 Apr 2013 14:46:08 -0400 MIME-Version: 1.0 In-Reply-To: <51646054.3090509@zytor.com> References: <20130408224328.GA17641@www.outflux.net> <51634935.9010905@zytor.com> <51645D6F.7070705@zytor.com> <51646054.3090509@zytor.com> Date: Tue, 9 Apr 2013 11:46:08 -0700 X-Google-Sender-Auth: qnsqrjx5_AWY_L3B6A-OJ-k_phY Message-ID: Subject: Re: [kernel-hardening] Re: [PATCH] x86: make IDT read-only From: Kees Cook To: "H. Peter Anvin" Cc: "kernel-hardening@lists.openwall.com" , Ingo Molnar , LKML , "x86@kernel.org" , Konrad Rzeszutek Wilk , Jeremy Fitzhardinge , Marcelo Tosatti , Alex Shi , Borislav Petkov , Alexander Duyck , Frederic Weisbecker , Steven Rostedt , "Paul E. McKenney" , "xen-devel@lists.xensource.com" , "virtualization@lists.linux-foundation.org" , Dan Rosenberg , Julien Tinnes , Will Drewry , Eric Northup Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 9, 2013 at 11:39 AM, H. Peter Anvin wrote: > On 04/09/2013 11:31 AM, Kees Cook wrote: >>>> ... >>>> 0xffff880001e00000-0xffff88001fe00000 480M RW PSE GLB NX pmd >>>> >>> >>> That is the 1:1 memory map area... >> >> Meaning what? >> >> -Kees >> > > 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. Does the v2 IDT patch look okay, BTW? -Kees -- Kees Cook Chrome OS Security