From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756595AbZBTID3 (ORCPT ); Fri, 20 Feb 2009 03:03:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753251AbZBTIDS (ORCPT ); Fri, 20 Feb 2009 03:03:18 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:59615 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753159AbZBTIDR (ORCPT ); Fri, 20 Feb 2009 03:03:17 -0500 Date: Fri, 20 Feb 2009 09:02:46 +0100 From: Ingo Molnar To: Linus Torvalds Cc: Steven Rostedt , Huang Ying , Thomas Gleixner , Linux Kernel Mailing List , Andrew Morton , Peter Zijlstra , Frederic Weisbecker , Arjan van de Ven , Rusty Russell , Mathieu Desnoyers , "H. Peter Anvin" Subject: Re: [PATCH, v2] x86: use the right protections for split-up pagetables Message-ID: <20090220080246.GA28669@elte.hu> References: <20090220011316.379904625@goodmis.org> <20090220072915.GB28085@elte.hu> <20090220073932.GA17648@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090220073932.GA17648@elte.hu> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ingo Molnar wrote: > [ Huang Ying also experienced problems in this area when writing > the EFI code, but the real bug in split_large_page() was not > realized back then. ] > - * On Intel the NX bit of all levels must be cleared to make a > - * page executable. See section 4.13.2 of Intel 64 and IA-32 > - * Architectures Software Developer's Manual). Hm, in hindsight, we should have noticed this bug sooner - when the NX comment above was added. There's never any good reason to play protection games with higher-level pagetable entries. We dont do it to user-space pagetables either - we just populate them to _PAGE_TABLE and that's it. Ingo