From: Will Deacon Date: Mon, 13 Sep 2010 15:19:41 +0000 (+0100) Subject: ARM: 6386/1: flush_ptrace_access: invalidate correct I-cache alias X-Git-Tag: v2.6.37-rc1~184^2~7^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4e259c859538e94007d1f04a488540375189551;p=pandora-kernel.git 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 Signed-off-by: Russell King --- Reading git-diff-tree failed