[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 2/4] xen/arm: guest_walk: refuse an address outside both halves of the range


  • To: Stefano Stabellini <stefano.stabellini@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Thu, 19 Nov 2026 08:02:20 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bwGOAXKjehA1QK0wGawX0XmZstVngm3Q7ntBrntyWH0=; b=lKDJwd6tgwGdnkgRMKsanI7WNXOScIYZqFRDC0BodmhDoNrZq7jdwyA5Yv1tC3x79Oga3eeXfvFOC6GxwQytA/HKqUYMcB5/rQwt0TOCRCZU2Wr7SUNbt1DnbhKbNKveFeUo6N4gSiPuS+PzVitZSclb2AS/ovYeUU6mRPQ4E6gcEPrieOQbOtaeHQ19fi+h8VGfXsgKWkGuEVT2oz1ESB9SsU2RG/32g7RtmCyh+1Chg2OO0q+pUPtN6Nt81hsNzLVjT/1wW+lvaIHUFV49spyFdm1oVklp6aaWmGW9xIjlgLMMCznYrTy4A+XA37oHe93xTjzXfvykyyQ/vnahGA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=D4hrc/fDVQ+oAFiajZCXO9lsJ50ye9htF2+XqnAA1sZSPjIEGen+dFE5701sqLh9iscYDpr2oaPJ0IGZ3mTNqf/tksolpgHcf+73IpYSHDnaI+MKpClVnyqHtTtmhWGy33yYiHpEj/lPwgjjTV6warZOSxTriY9f0Sy8fBuPnUeELAhjT/51FeuYpL5NQ48sxCut/pJ3VAwoFyvbeSqFtaB09gUfl6weIxSsNNGWXKInWumOYuSmEoRiO5V4Us30tF6QvjbdwN8l43NBSdiL7U217raWHoRou4c7etd+BM0QSj9RFqp3mFvaMZH11D8pW9Ksj2VPAajg/EFEBs9wlw==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Cc: Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Thu, 19 Nov 2026 07:04:05 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 18-Nov-26 01:59, Stefano Stabellini wrote:
> The bits of an input address from its top bit (bit 63, or bit 55 with
> the top byte ignored) down to the input address size must be all 0 for
> TTBR0 and all 1 for TTBR1, else the walk faults (ARM DDI 0487 M.d
> D8.2.4, AArch64.VAIsOutOfRange()). guest_walk_ld() chose the base from
> the top bit alone and translated such an address. Refuse it before
> reading any table.
> 
> Fixes: 7d623b358a45 ("arm/mem_access: Add long-descriptor based gpt")
> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>

~Michal




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.