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

[LINUX RFC PATCH 0/5] x86/xen: Basic KASLR support for Xen PV/PVH domains



Hello,

Currently there is no KASLR in PV/PVH(direct-boot) guests, and in
particular not in Dom0 (where it may matters especially these current
days).

The idea of this RFC series is to start having some basic KASLR
(which would be better than the current state where there is no
randomization at all).

For now there is no support for randomization of the kernel base
(i.e .text which is another piece of work that will come later),
hence only page_offset_base, vmalloc_base and vmemmap_base are
covered at the time being.

CC: Juergen Gross <jgross@xxxxxxxx>
CC: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>

Teddy Astie (5):
  x86/xen: Fill basic CPUID information early on PV boot
  x86/mm/kaslr: Allow memory regions to be randomized before
    setup_arch()
  x86/xen: Build the initial PV direct map at PAGE_OFFSET
  x86/xen: Support memory KASLR for PV guests
  x86/pvh: Enable memory KASLR

 arch/x86/mm/kaslr.c               | 14 ++++++++++++++
 arch/x86/platform/pvh/enlighten.c | 11 +++++++++++
 arch/x86/xen/enlighten_pv.c       | 30 ++++++++++++++++++++++++++++++
 arch/x86/xen/mmu_pv.c             | 17 +++++++++++------
 4 files changed, 66 insertions(+), 6 deletions(-)

-- 
2.56.1



--
Teddy Astie | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech

 


Rackspace

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