From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756023AbZBTSiV (ORCPT ); Fri, 20 Feb 2009 13:38:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752425AbZBTSiM (ORCPT ); Fri, 20 Feb 2009 13:38:12 -0500 Received: from terminus.zytor.com ([198.137.202.10]:51446 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752082AbZBTSiL (ORCPT ); Fri, 20 Feb 2009 13:38:11 -0500 Message-ID: <499EF77E.8060901@zytor.com> Date: Fri, 20 Feb 2009 10:33:34 -0800 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Linus Torvalds CC: Ingo Molnar , Steven Rostedt , Huang Ying , Thomas Gleixner , Linux Kernel Mailing List , Andrew Morton , Peter Zijlstra , Frederic Weisbecker , Arjan van de Ven , Rusty Russell , Mathieu Desnoyers Subject: Re: [PATCH] x86: use the right protections for split-up pagetables References: <20090220011316.379904625@goodmis.org> <20090220072915.GB28085@elte.hu> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: > > The confusion? When it moves the 'ref_prot' bits from the upper level, it > doesn't do the right thing for the PAT bit. That bit is special, and moves > around depending on level. In the upper levels, it's bit#12, and in the > final 4k pte level it's bit#7. > ... and in the second level of two-level page tables, it doesn't exist at all. Worse, there are errata on some processors (not sure if there are any we currently don't blacklist) where the PATx bit logic basically gets fed random data. Setting up the PAT so that the lower and upper half alias works around this. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.