drivers: hv: Turn off write permission on the hypercall page

am: 182ff0ebbd

Change-Id: Ia827064dcb01c718ec90e7ae84eff5906ee3cbf8
This commit is contained in:
K. Y. Srinivasan
2017-03-15 02:28:29 +00:00
committed by android-build-merger

View File

@@ -220,7 +220,7 @@ int hv_init(void)
/* See if the hypercall page is already set */
rdmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64);
virtaddr = __vmalloc(PAGE_SIZE, GFP_KERNEL, PAGE_KERNEL_EXEC);
virtaddr = __vmalloc(PAGE_SIZE, GFP_KERNEL, PAGE_KERNEL_RX);
if (!virtaddr)
goto cleanup;