aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorTyler Hicks <[email protected]>2021-06-14 17:33:13 -0500
committerJens Wiklander <[email protected]>2021-07-21 07:39:44 +0200
commitb5c10dd04b7418793517e3286cde5c04759a86de (patch)
tree007de97b538c4c7fa24eca80eb2d3d5dbdea544b /tools/perf/scripts/python/export-to-postgresql.py
parentf25889f93184db8b07a543cc2bbbb9a8fcaf4333 (diff)
optee: Clear stale cache entries during initialization
The shm cache could contain invalid addresses if optee_disable_shm_cache() was not called from the .shutdown hook of the previous kernel before a kexec. These addresses could be unmapped or they could point to mapped but unintended locations in memory. Clear the shared memory cache, while being careful to not translate the addresses returned from OPTEE_SMC_DISABLE_SHM_CACHE, during driver initialization. Once all pre-cache shm objects are removed, proceed with enabling the cache so that we know that we can handle cached shm objects with confidence later in the .shutdown hook. Cc: [email protected] Signed-off-by: Tyler Hicks <[email protected]> Reviewed-by: Jens Wiklander <[email protected]> Reviewed-by: Sumit Garg <[email protected]> Signed-off-by: Jens Wiklander <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions