From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934044Ab3GPUo1 (ORCPT ); Tue, 16 Jul 2013 16:44:27 -0400 Received: from terminus.zytor.com ([198.137.202.10]:59008 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933910Ab3GPUoZ (ORCPT ); Tue, 16 Jul 2013 16:44:25 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <1374006818.6458.62.camel@gandalf.local.home> References: <20130716183441.GA14232@www.outflux.net> <1374006818.6458.62.camel@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v5] x86: make sure IDT is page aligned From: "H. Peter Anvin" Date: Tue, 16 Jul 2013 13:43:26 -0700 To: Steven Rostedt , Kees Cook CC: Yinghai Lu , Linux Kernel Mailing List , Thomas Gleixner , Ingo Molnar , the arch/x86 maintainers , Seiji Aguchi , Fenghua Yu , Frederic Weisbecker , "Paul E. McKenney" , Suresh Siddha , PaX Team Message-ID: <20c92485-49b5-438e-9786-9e7a2ac95788@email.android.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The F00F big just means the IDT must be readonly. Steven Rostedt wrote: >On Tue, 2013-07-16 at 13:28 -0700, Kees Cook wrote: >> On Tue, Jul 16, 2013 at 1:21 PM, Yinghai Lu >wrote: >> > On Tue, Jul 16, 2013 at 11:34 AM, Kees Cook >wrote: >> >> Since the IDT is referenced from a fixmap, make sure it is page >aligned. >> >> Merge with 32-bit one, since it was already aligned to deal with >F00F >> >> bug. Since bss is cleared before IDT setup, it can live there. >This also >> >> moves the other *_idt_table variables into common locations. >> >> > >> It seemed more correct to me to define all the IDTs the same, but >> there was no technical reason for that, just one of regularity. I >only >> care about keeping the real IDT page aligned. :) I'm fine to do >> whatever is deemed "correct". :) > >I'm actually unfamiliar with the F00F bug (heard of it, but have no >idea >what it is). What happens if the F00F bug exists and we switch to an >IDT >that's not paged aligned? Is that an issue? > >-- Steve -- Sent from my mobile phone. Please excuse brevity and lack of formatting.