aboutsummaryrefslogtreecommitdiff
path: root/usr/.gitignore
diff options
context:
space:
mode:
authorVictor Kamensky <victor.kamensky@linaro.org>2014-04-25 23:34:56 -0700
committerAndrey Konovalov <andrey.konovalov@linaro.org>2014-05-26 15:23:26 +0400
commit585c8916a4e032020e26a7c4b6a103dd5d835696 (patch)
tree63f69a2973e066144518b2aa991bd651a5a8e110 /usr/.gitignore
parentec4c58addad2809d67438ac2d87786eb3a5f1c4b (diff)
After instruction write into xol area, on ARM V7 architecture code need to flush dcache and icache to sync them up for given set of addresses. Having just 'flush_dcache_page(page)' call is not enough - it is possible to have stale instruction sitting in icache for given xol area slot address. Introduce arch_uprobe_ixol_copy weak function that by default calls uprobes copy_to_page function and than flush_dcache_page function and on ARM define new one that handles xol slot copy in ARM specific way flush_uprobe_xol_access function shares/reuses implementation with/of flush_ptrace_access function and takes care of writing instruction to user land address space on given variety of different cache types on ARM CPUs. Because flush_uprobe_xol_access does not have vma around flush_ptrace_access was split into two parts. First that retrieves set of condition from vma and common that receives those conditions as flags. Note ARM cache flush function need kernel address through which instruction write happened, so instead of using uprobes copy_to_page function changed code to explicitly map page and do memcpy. Note arch_uprobe_copy_ixol function, in similar way as copy_to_user_page function, has preempt_disable/preempt_enable. Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
Diffstat (limited to 'usr/.gitignore')
0 files changed, 0 insertions, 0 deletions