]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
xen: fix hvm guest with kaslr enabled
authorJuergen Gross <jgross@suse.com>
Fri, 28 Jul 2017 10:23:14 +0000 (12:23 +0200)
committerJuergen Gross <jgross@suse.com>
Fri, 11 Aug 2017 13:50:26 +0000 (15:50 +0200)
commit4ca83dcf4e3bc0c98836dbb97553792ca7ea5429
tree58e2838e4e443252dbc6ef5a2837559b4c65f667
parent10231f69eb039550864ff3eb395da0c63c03ed5f
xen: fix hvm guest with kaslr enabled

A Xen HVM guest running with KASLR enabled will die rather soon today
because the shared info page mapping is using va() too early. This was
introduced by commit a5d5f328b0e2baa5ee7c119fd66324eb79eeeb66 ("xen:
allocate page for shared info page from low memory").

In order to fix this use early_memremap() to get a temporary virtual
address for shared info until va() can be used safely.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/enlighten_hvm.c