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

[PATCH v3 0/2] libelf: small fixes for PVH


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Thu, 20 May 2021 14:30:10 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WHxq2OPylvnc+qBbuMabDm0op4+VbArYNpTBZ2saP6I=; b=dVThx6r+9iDIWoX+Di9n4xUXP8Abcqlzxg7E7Cka8DapmGK/tSLVqRBZTgAS3JSVy5DX4M4oY9hJBWmhO1nOXQpHzdjs7xRDA3FHCQwgaP+ISXUVOiOiuR/kBmXyzrsWtcBqVYkOvwHMzzn+GyRxR2CvKGWf5fD3G//Yqqx9sQrGS9k3CXvYg2NEyJCUvnNHQN0BSF9zz32GqpnWty3RggwXiFgSeggCe72VtEZH3zIvHcprtFIcVgNOl7TY7DO/urJxMwvKDgrceObeawVl4AbnysOTw26vGAxi3i6XrrH6kkTxZ5WQpF7LNv8FkIexWiLTdiFkJd7vYchqIZ29vQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q7wkF3/MW7GkQuMsxmqZ7BuYd9ZxXKi0bEc+SWX3PevcmSru6Sfez0kyhZeam3i3Al7UaRnemSyiGbpFpD+Qqon22RVrKhF1VlvkikhR+Fl2ONzifYuATYd85ZgAsOH4tNZMD8B8IKEhxfIeOKHsCkKFUeyVlEbgtmbdDhg4TYPg8vjiyPNTEVE5q7I5dyinEaKnNXqI40Yb4B+qQBn36DUy/RQ3OnkYebEFp7/h1HLZw9gjy1exZCrNkYqL0DjAk1cThYNTbqFQraiP85OnusOJNeOT8rX6nxnPObn4xphRqw3yOQPhsiPhysE7DgGGEpBqj0+BAbN0eeOknTpbRg==
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, "Ian Jackson" <iwj@xxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Thu, 20 May 2021 12:30:36 +0000
  • Ironport-data: A9a23:8xppoqgwj5qMiPuwrhCuMMnbX161fRAKZh0ujC45NGQN5FlHY01je htvWmGGPffcYjP0f4t0Oom0oEMH75aBz4cwSwtr/ywyHywb9cadCdqndUqhZCn6wu8v7a5EA 2fyTvGacajYm1eF/k/F3oDJ9CI6iufQLlbFILas1hpZHGeIcw98z0I58wIFqtQw24HhXlrc4 Y2aT/D3YzdJ5RYlagr41IrbwP9flKyaVOQw5wFWiVhj5TcyplFNZH4tDfjZw0jQG+G4KtWSV efbpIxVy0uCl/sb5nFJpZ6gGqECaua60QFjERO6UYD66vRJjnRaPqrWqJPwwKqY4tmEt4kZ9 TlDiXC/YR14Evzuofk8bxBzOiB5F/UB5Z3jeVHq5KR/z2WeG5ft6/BnDUVwNowE4OdnR2pJ8 JT0KhhUMErF3bjvhuvmGq8236zPL+GyVG8bkmtnwjzDS+4vXLjIQrnQ5M8e1zA17ixLNaqDO JVCMmE3BPjGS0x+Jg0sKoATpvmxqnWheBJI80io/4NitgA/yyQuieOwYbI5YOeiVchT20qVu G/C12D4GQ0BcsySzyKf9XChjfOJmjn0MKoTC7+Q5vNsmEeUxGEYFFsRT1TTifuzh1O6WtlfA 1cJ4Sdopq83nGSpU938UhuQsHOC+BkGVLJ4CPYm4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List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hello,

A couple of small fixes for PVH loading. The first one is likely not
very relevant, since PVH couldn't be booted anyway with the data in the
__xen_guest section, so it's mostly a cleanup.

Second patch fixes the checks for PVH loading, as in that case physical
addresses must always be used to perform the bound calculations.

Thanks, Roger.

Roger Pau Monne (2):
  libelf: don't attempt to parse __xen_guest for PVH
  libelf: improve PVH elfnote parsing

 tools/fuzz/libelf/libelf-fuzzer.c   |  3 +-
 tools/libs/guest/xg_dom_elfloader.c |  6 ++--
 tools/libs/guest/xg_dom_hvmloader.c |  2 +-
 xen/arch/x86/hvm/dom0_build.c       |  2 +-
 xen/arch/x86/pv/dom0_build.c        |  2 +-
 xen/common/libelf/libelf-dominfo.c  | 49 +++++++++++++++++------------
 xen/include/xen/libelf.h            |  2 +-
 7 files changed, 39 insertions(+), 27 deletions(-)

-- 
2.31.1




 


Rackspace

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