summaryrefslogtreecommitdiffstats
path: root/main/linux-grsec/hv-grsec.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-06-10 09:22:43 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-06-10 09:22:43 +0000
commitf90d28dd1c6b9515696c7a08bebd6c463e81e00b (patch)
treee39bc919637e6931acb6ff30338c72efbf1ee2a2 /main/linux-grsec/hv-grsec.patch
parent970062912739b23579c88a5beaf998f6adc19481 (diff)
downloadaports-f90d28dd1c6b9515696c7a08bebd6c463e81e00b.tar.bz2
aports-f90d28dd1c6b9515696c7a08bebd6c463e81e00b.tar.xz
main/linux-grsec: fix for hyper-v and PaX
Diffstat (limited to 'main/linux-grsec/hv-grsec.patch')
-rw-r--r--main/linux-grsec/hv-grsec.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/linux-grsec/hv-grsec.patch b/main/linux-grsec/hv-grsec.patch
new file mode 100644
index 000000000..6fde34199
--- /dev/null
+++ b/main/linux-grsec/hv-grsec.patch
@@ -0,0 +1,13 @@
+diff --git a/drivers/staging/hv/Hv.c b/drivers/staging/hv/Hv.c
+index b12237f..9d47edb 100644
+--- a/drivers/staging/hv/Hv.c
++++ b/drivers/staging/hv/Hv.c
+@@ -133,7 +133,7 @@ static u64 HvDoHypercall(u64 Control, void *Input, void *Output)
+ u64 hvStatus = 0;
+ u64 inputAddress = (Input) ? virt_to_phys(Input) : 0;
+ u64 outputAddress = (Output) ? virt_to_phys(Output) : 0;
+- volatile void *hypercallPage = gHvContext.HypercallPage;
++ volatile void *hypercallPage = ktva_ktla(gHvContext.HypercallPage);
+
+ DPRINT_DBG(VMBUS, "Hypercall <control %llx input phys %llx virt %p "
+ "output phys %llx virt %p hypercall %p>",