aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/ptrace.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-03-26 07:51:12 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-26 07:51:12 -0400
commitf6a843d939ade435e060d580f5c56d958464f8a5 (patch)
tree4764dd4871bb032e2d0e7d5da5ef98526f9da424 /arch/sparc64/kernel/ptrace.c
parente5ac71f255335f130bbe582c4ce3008c1b46413f (diff)
[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/kernel/ptrace.c')
-rw-r--r--arch/sparc64/kernel/ptrace.c4
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,
70 if (tlb_type == hypervisor) 70 if (tlb_type == hypervisor)
71 return; 71 return;
72 72
73 preempt_disable();
74
73#ifdef DCACHE_ALIASING_POSSIBLE 75#ifdef DCACHE_ALIASING_POSSIBLE
74 /* If bit 13 of the kernel address we used to access the 76 /* If bit 13 of the kernel address we used to access the
75 * user page is the same as the virtual address that page 77 * 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,
108 for (; start < end; start += icache_line_size) 110 for (; start < end; start += icache_line_size)
109 flushi(start); 111 flushi(start);
110 } 112 }
113
114 preempt_enable();
111} 115}
112 116
113enum sparc_regset { 117enum sparc_regset {