ion: Ensure secure HLOS accessible buffers are zeroed when allocated
Memory that is either pooled or permanently assigned to other VMIDs
is not always cleared when it is released back into the pools. This
is problematic when the memory is assigned such that HLOS can still
access the memory, as a userspace process can reallocate the
same buffer, and read data from when the buffer was previously
allocated. Thus, clear secure ION buffers before freeing them, if
they are HLOS accessible.
Change-Id: Iaae14fc32b10e0c6afca007a5ee78aacd5e013e6
Signed-off-by:
Isaac J. Manjarres <isaacm@codeaurora.org>
Loading
Please register or sign in to comment