diff options
author | Will Deacon <will.deacon@arm.com> | 2010-09-13 17:19:41 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-10-04 21:57:10 +0200 |
commit | c4e259c859538e94007d1f04a488540375189551 (patch) | |
tree | df5485bd1184c562a11a8588915539d136e8de29 /arch/arm/mach-dove/include/mach | |
parent | ARM: 6385/1: setup: detect aliasing I-cache when D-cache is non-aliasing (diff) | |
download | linux-c4e259c859538e94007d1f04a488540375189551.tar.xz linux-c4e259c859538e94007d1f04a488540375189551.zip |
ARM: 6386/1: flush_ptrace_access: invalidate correct I-cache alias
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 introduces a flush_icache_alias function to flush.c,
which calls flush_icache_range with a mapping of the specified
colour. flush_ptrace_access is then modified to call this new
function instead of coherent_kern_range in the case of an aliasing
I-cache and a non-aliasing D-cache.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-dove/include/mach')
0 files changed, 0 insertions, 0 deletions