]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit11e4dc86ff4b1b928fbbabe7a49319612da516e1
tree8f5a447adaa49b6efb7485e8b69b2743eca3ee4b
parent2785855ae60df353c810cef2ff32aeb1a56dc636
[MIPS] Fix aliasing bug in copy_user_highpage, take 2.

Turns out 80aed8fb81798e80528e4759f90767d48988f2ca  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