diff options
author | Will Deacon <will.deacon@arm.com> | 2010-08-09 10:27:23 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2010-08-09 10:32:47 +0100 |
commit | 37a3fd7b9934ce938ad86b0ac21a6a4cd377f0f8 (patch) | |
tree | 6670258e8b61ddf2a83ccaa3a83698cabe182bf6 /arch/arm/include/asm/assembler.h | |
parent | 770aa9f0d2978bce98daf15644298802987a6642 (diff) |
ARM: flush_ptrace_access: invalidate all I-caches
copy_to_user_page can be used by access_process_vm to write to an
executable page of a process using a mapping acquired by kmap.
For systems with I-cache aliasing, flushing the I-cache using the
Kernel mapping may leave stale data in the I-cache if the user
mapping is of a different colour.
This patch replaces the coherent_kern_range call in flush_ptrace_access
with a D-cache flush followed by a system-wide I-cache invalidation.
This is required on all systems where the size of a way in the I-cache
is larger than PAGE_SIZE.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/include/asm/assembler.h')
0 files changed, 0 insertions, 0 deletions