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

Commit 928e2140 authored by Neeti Desai's avatar Neeti Desai
Browse files

msm: ion: Update the permissions while making assign call



When freeing a secure buffer, the RWX permissions need to be
passed as a parameter to the hyp_assign call. This will ensure
that when the hypervisor unmaps the buffer, HLOS can use it
for data as well as instructions.

Change-Id: I2f1e67dda8f3ebedee552a2908b7f57c18754d42
Signed-off-by: default avatarNeeti Desai <neetid@codeaurora.org>
parent 35afb780
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ static void ion_system_secure_heap_free(struct ion_buffer *buffer)
		return;
	}
	dest_vmid = VMID_HLOS;
	dest_perms = PERM_READ | PERM_WRITE;
	dest_perms = PERM_READ | PERM_WRITE | PERM_EXEC;

	ret = hyp_assign_table(buffer->priv_virt, &source_vm, 1,
					&dest_vmid, &dest_perms, 1);