]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] SPARC64: Fix D-cache corruption in mremap
authorDavid Miller <davem@davemloft.net>
Sat, 3 Jun 2006 01:30:58 +0000 (18:30 -0700)
committerChris Wright <chrisw@sous-sol.org>
Thu, 22 Jun 2006 19:16:11 +0000 (12:16 -0700)
commit76fc2aafe67361e69c980408fc66ac4f051b17da
tree80f97e07859877b65faf0117054582b3afd66c10
parent0d9a5318df1248e63a7a528b7a8a8f23b52ac1a4
[PATCH] SPARC64: Fix D-cache corruption in mremap

If we move a mapping from one virtual address to another,
and this changes the virtual color of the mapping to those
pages, we can see corrupt data due to D-cache aliasing.

Check for and deal with this by overriding the move_pte()
macro.  Set things up so that other platforms can cleanly
override the move_pte() macro too.

This long standing bug corrupts user memory, and in particular
has been notorious for corrupting Debian package database
files on sparc64 boxes.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/asm-generic/pgtable.h
include/asm-mips/pgtable.h
include/asm-sparc64/pgtable.h