parisc: disable UP-optimized flush_tlb_mm
authorKyle McMartin <kyle@infradead.org>
Tue, 23 Dec 2008 13:44:30 +0000 (08:44 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 Jan 2009 17:44:07 +0000 (09:44 -0800)
commit398604a3a6b864d7a09c67772a7d44cf88ce24a0
tree7e726453bc375040009b0702ba932b48cdbc0f05
parent94ee84a2496c44f7353ef5fc2f5b265716c82df1
parisc: disable UP-optimized flush_tlb_mm

commit 5289f46b9de04bde181d833d48df9671b69c4b08 upstream.

flush_tlb_mm's "optimized" uniprocessor case of allocating a new
context for userspace is exposing a race where we can suddely return
to a syscall with the protection id and space id out of sync, trapping
on the next userspace access.

Debugged-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Tested-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/asm-parisc/tlbflush.h