summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeeti Desai <neetid@codeaurora.org>2015-07-14 17:44:13 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:04:37 -0700
commit4cbd8a0f846f9a851bd5556c7e994f64080beadf (patch)
treea0a778f87e160d9e7b8cca1fdf1a4ea85f02623c
parentaeb2abd83d93d3b7c6192d1cc3cf0dbcd9388085 (diff)
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: Neeti Desai <neetid@codeaurora.org>
-rw-r--r--drivers/staging/android/ion/ion_system_secure_heap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/android/ion/ion_system_secure_heap.c b/drivers/staging/android/ion/ion_system_secure_heap.c
index 62974c79fe63..47ced11f9fd0 100644
--- a/drivers/staging/android/ion/ion_system_secure_heap.c
+++ b/drivers/staging/android/ion/ion_system_secure_heap.c
@@ -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);