From: Tim Deegan Subject: Re: [PATCH] x86: refine address validity checks before accessing page tables Date: Tue, 22 Oct 2013 17:22:55 +0200 Message-ID: <20131022152255.GA30504@deinos.phlegethon.org> References: <5266B0F602000078000FCBBB@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VYdnO-0000O0-1t for xen-devel@lists.xenproject.org; Tue, 22 Oct 2013 15:22:58 +0000 Content-Disposition: inline In-Reply-To: <5266B0F602000078000FCBBB@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel , Keir Fraser List-Id: xen-devel@lists.xenproject.org At 16:08 +0100 on 22 Oct (1382454486), Jan Beulich wrote: > In commit 40d66baa ("x86: correct LDT checks") and d06a0d71 ("x86: add > address validity check to guest_map_l1e()") I didn't really pay > attention to the fact that these checks would better be done before the > paging_mode_translate() ones, as there's also no equivalent check down > the shadow code paths involved here (at least not up to the first use > of the address), and such generic checks shouldn't really be done by > particular backend functions anyway. > > Signed-off-by: Jan Beulich Acked-by: Tim Deegan