]> 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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Mar 2013 03:23:44 +0000 (03:23 +0000)
commit0af31617ad5cf724312c90f78ed95cb6988c3d6f
treeb953bc049b4ad671cf4cf27bf903cb22c30e5d7a
parent26d9655e02f35f47c2d2fd026dcd19a7d0b233cd
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: Ben Hutchings <ben@decadent.org.uk>
arch/parisc/include/asm/pgtable.h
arch/parisc/kernel/cache.c