author | Subash Lakkimsetti <x0091084@ti.com> | |
Mon, 29 Aug 2016 16:28:55 +0000 (11:28 -0500) | ||
committer | Buddy Liong <a0270631@ti.com> | |
Wed, 7 Sep 2016 17:11:55 +0000 (12:11 -0500) | ||
commit | f50085d80e2f2355e7b0168dc8b4cd10f27dbafb | |
tree | 0c72988d9b0d84b6db7ee8de0d3bc248bb0169c6 | tree | snapshot (tar.xz tar.gz zip) |
parent | 8ad2a268739f134b70e972711f59bd74346a87e1 | commit | diff |
Invalidating parameter buffers for codec_get_version
Previously version_buf pointer is set to buffer pointer (data.buf)
of (IVIDDEC3_Status *) status.
The pointer dyn_params and status are not cache invalidated first which
can cause the status->data.buf to be accessed without cache invalidation.
Due to this corruption, it can cause exception on IPUMM.
The solution is to cache invalidate the dyn_params and status pointer
first to get the valid pointer of dyn_params and status.
Then set the version_buf with status->data.buf.
Perform cache invalidation on the version_buf to get the valid pointer.
Change-Id: I3258cca0ee191c488fc6457391215b8bfcde3b85
Signed-off-by: Subash Lakkimsetti <x0091084@ti.com>
Previously version_buf pointer is set to buffer pointer (data.buf)
of (IVIDDEC3_Status *) status.
The pointer dyn_params and status are not cache invalidated first which
can cause the status->data.buf to be accessed without cache invalidation.
Due to this corruption, it can cause exception on IPUMM.
The solution is to cache invalidate the dyn_params and status pointer
first to get the valid pointer of dyn_params and status.
Then set the version_buf with status->data.buf.
Perform cache invalidation on the version_buf to get the valid pointer.
Change-Id: I3258cca0ee191c488fc6457391215b8bfcde3b85
Signed-off-by: Subash Lakkimsetti <x0091084@ti.com>
src/ti/framework/dce/dce.c | diff | blob | history |