Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-7-0]: src/sys/arch/x86/x86 Pull up following revision(s) (request...



details:   https://anonhg.NetBSD.org/src/rev/b7ba1ec646e4
branches:  netbsd-7-0
changeset: 801138:b7ba1ec646e4
user:      snj <snj%NetBSD.org@localhost>
date:      Fri Feb 26 21:51:54 2016 +0000

description:
Pull up following revision(s) (requested by hannken in ticket #1100):
        sys/arch/x86/x86/pmap.c: revision 1.190
Operation pmap_pp_clear_attrs() may remove the "used" attribute from a page
that is still cached in the TLB of other CPUs.
Call pmap_tlb_shootnow() here before enabling preemption to clear the
TLB entries on other CPUs.
Should prevent tmpfs data corruption under load.
Ok: Chuck Silvers

diffstat:

 sys/arch/x86/x86/pmap.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 763a994def54 -r b7ba1ec646e4 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Fri Feb 26 21:33:18 2016 +0000
+++ b/sys/arch/x86/x86/pmap.c   Fri Feb 26 21:51:54 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.183.2.2 2015/04/23 07:31:16 snj Exp $       */
+/*     $NetBSD: pmap.c,v 1.183.2.2.2.1 2016/02/26 21:51:54 snj Exp $   */
 
 /*-
  * Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.183.2.2 2015/04/23 07:31:16 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.183.2.2.2.1 2016/02/26 21:51:54 snj Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -3861,6 +3861,7 @@
        }
        result = pp->pp_attrs & clearbits;
        pp->pp_attrs &= ~clearbits;
+       pmap_tlb_shootnow();
        kpreempt_enable();
 
        return result != 0;



Home | Main Index | Thread Index | Old Index