From: "H. Peter Anvin" Subject: Re: __supported_pte_mask breaks PROT_NONE pages Date: Wed, 04 Feb 2009 21:40:51 -0800 Message-ID: <498A7BE3.40405@zytor.com> References: <498A5002.9080408@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <498A5002.9080408@goop.org> Sender: linux-kernel-owner@vger.kernel.org To: Jeremy Fitzhardinge Cc: Ingo Molnar , Linux Kernel Mailing List , Xen-devel List-Id: xen-devel@lists.xenproject.org [Dropped wli from the Cc: list because holomorphy.com doesn't resolve] Jeremy Fitzhardinge wrote: > > I guess the best fix is to only apply __supported_pte_mask to present > ptes. This seems like the right solution to me, as it means we can > completely ignore the issue of overlaps between the present pte bits and > the non-present pte-as-swap entry use of the bits. (Patch below.) > It certainly looks reasonable, so I have applied this patch to tip:x86/urgent. However, since I'm on the way out to FOSDEM I won't be able to run any tests on this. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.