Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b301b2c authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by android-build-merger
Browse files

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

am: 182ff0eb

Change-Id: Ia827064dcb01c718ec90e7ae84eff5906ee3cbf8
parents dcde000e 182ff0eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;