]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Purge existing TLB entries in set_pte_at and ptep_set_wrprotect
authorJohn David Anglin <dave.anglin@bell.net>
Tue, 15 Jan 2013 00:45:00 +0000 (19:45 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:39 +0000 (05:38 -0800)
commita6b3b3fb1ece9eafae7c1fb7d967f171517c0643
tree7094679c95abcb6ca8f7da932d12497113ed25e1
parentd6b8eaa075f9b994dac9fd63cf8622761ef62bfa
Purge existing TLB entries in set_pte_at and ptep_set_wrprotect

commit 7139bc1579901b53db7e898789e916ee2fb52d78 upstream.

This patch goes a long way toward fixing the minifail bug, and
it  significantly improves the stability of SMP machines such as
the rp3440.  When write  protecting a page for COW, we need to
purge the existing translation.  Otherwise, the COW break
doesn't occur as expected because the TLB may still have a stale entry
which allows writes.

[jejb: fix up checkpatch errors]
Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/include/asm/pgtable.h
arch/parisc/kernel/cache.c