]> git.baikalelectronics.ru Git - kernel.git/commit
[MIPS] Fix aliasing bug in copy_user_highpage.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 11 Sep 2007 17:05:33 +0000 (18:05 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 11 Sep 2007 18:03:26 +0000 (19:03 +0100)
commit80aed8fb81798e80528e4759f90767d48988f2ca
tree71ed6189bc2dddd3f79aae0969e41381f905a709
parente9a76badb129f7b2693df69d3185438bd4c0228f
[MIPS] Fix aliasing bug in copy_user_highpage.

Copy_user_highpage was written assuming it was only being called for
breaking COW pages in which case the source page isn't cached as in
marked cachable under it kernel virtual address.  If it is called anyway
the aliasing avoidance strategy implemented by kmap_coherent will fail.
Avoid the use of kmap_coherent for pages marked dirty and to avoid
another instance of this sort of bug, place a BUG_ON in kmap_coherent.

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