From: "Jan Beulich" Subject: Re: Invalid VA => ptr conversion with xc_dom_* API after XSA-55 fox Date: Wed, 20 Nov 2013 13:22:29 +0000 Message-ID: <528CC5A502000078001050A4@nat28.tlf.novell.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Vj7jl-0007XY-JV for xen-devel@lists.xenproject.org; Wed, 20 Nov 2013 13:22:33 +0000 In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson , jym@NetBSD.org Cc: xen-devel , port-xen@NetBSD.org List-Id: xen-devel@lists.xenproject.org >>> On 20.11.13 at 13:56, "Jean-Yves Migeon (NetBSD)" wrote: > Jeff and FastIce pointed out a regression between Xen 4.1.2 and 4.1.6 > when starting NetBSD domU; the kernel syms table gets slightly corrupted > [1]. > > After dwelling into libxc code, FastIce noticed that changing back the > return value to "ptr + offset" (instead of just "ptr") for > xc_dom_vaddr_to_ptr() makes it work again. > > According to [2] while fixing XSA-55, Ian changed the "ptr + offset" > return value to just "ptr". Is there a reason for this? IMHO the VA => > ptr conversion should also take into account non-page aligned addresses, > hence the offset (except for NULL value of course). I agree, but let's see what Ian (being the author of the whole patch set) says. Jan