[MIPS] Fix aliasing bug in copy_user_highpage, take 2.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 15 Oct 2007 15:30:24 +0000 (16:30 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 16 Oct 2007 17:23:49 +0000 (18:23 +0100)
commit985c30ef4d7c2a4f0e979a507a7e2f7f09b096c3
tree8f5a447adaa49b6efb7485e8b69b2743eca3ee4b
parent736fad17b89e5e718908abb76ae9bce210a9d5d4
[MIPS] Fix aliasing bug in copy_user_highpage, take 2.

Turns out b868868ae0f7272228c95cc760338ffe35bb739d  wasn't quite right.
When called for a page that isn't marked dirty it would artificially
create an alias instead of doing the obvious thing and access the page
via KSEG0.

The same issue also exists in copy_to_user_page and copy_from_user_page
which was causing the machine to die under rare circumstances for example
when running ps if the BUG_ON() assertion added by the earlier fix was
getting triggered.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/init.c