Upstream commit:
f6a843d939ade435e060d580f5c56d958464f8a5
Based upon a report by Mariusz Kozlowski.
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
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
for (; start < end; start += icache_line_size)
flushi(start);
}
+
+ preempt_enable();
}
asmlinkage void do_ptrace(struct pt_regs *regs)