diff options
author | David S. Miller <davem@davemloft.net> | 2008-03-26 04:51:12 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-26 04:51:12 -0700 |
commit | f6a843d939ade435e060d580f5c56d958464f8a5 (patch) | |
tree | 4764dd4871bb032e2d0e7d5da5ef98526f9da424 /arch/sparc64 | |
parent | e5ac71f255335f130bbe582c4ce3008c1b46413f (diff) | |
download | blackbird-op-linux-f6a843d939ade435e060d580f5c56d958464f8a5.tar.gz blackbird-op-linux-f6a843d939ade435e060d580f5c56d958464f8a5.zip |
[SPARC64]: flush_ptrace_access() needs preemption disable.
Based upon a report by Mariusz Kozlowski.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r-- | arch/sparc64/kernel/ptrace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c index bcf58ece2ba1..aaae865e7932 100644 --- a/arch/sparc64/kernel/ptrace.c +++ b/arch/sparc64/kernel/ptrace.c @@ -70,6 +70,8 @@ void flush_ptrace_access(struct vm_area_struct *vma, struct page *page, if (tlb_type == hypervisor) return; + preempt_disable(); + #ifdef DCACHE_ALIASING_POSSIBLE /* If bit 13 of the kernel address we used to access the * user page is the same as the virtual address that page @@ -108,6 +110,8 @@ void flush_ptrace_access(struct vm_area_struct *vma, struct page *page, for (; start < end; start += icache_line_size) flushi(start); } + + preempt_enable(); } enum sparc_regset { |