From owner-cvs-src@FreeBSD.ORG Wed Oct 12 01:41:48 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D76816A41F; Wed, 12 Oct 2005 01:41:48 +0000 (GMT) (envelope-from ups@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7213943D46; Wed, 12 Oct 2005 01:41:48 +0000 (GMT) (envelope-from ups@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9C1fm35089484; Wed, 12 Oct 2005 01:41:48 GMT (envelope-from ups@repoman.freebsd.org) Received: (from ups@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9C1fm4N089483; Wed, 12 Oct 2005 01:41:48 GMT (envelope-from ups) Message-Id: <200510120141.j9C1fm4N089483@repoman.freebsd.org> From: Stephan Uphoff Date: Wed, 12 Oct 2005 01:41:48 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/i386/i386 vm_machdep.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 01:41:48 -0000 ups 2005-10-12 01:41:48 UTC FreeBSD src repository Modified files: sys/i386/i386 vm_machdep.c Log: Ensure that a thread stays on same CPU when calculating per CPU TLB shootdown requirements. Otherwise a CPU may not get the needed TLB invalidation. The PTE valid and access flags can not be used here to avoid TLB shootdowns unless sf->cpumask == all_cpus. ( Otherwise some CPUs may still hold an even older entry in the TLB) Since sf_buf_alloc mappings are normally always used this is also not really useful and presetting accessed and modified allows the CPU to speculatively load the entry into the TLB. Both bugs can cause random data corruption. MFC after: 3 days Revision Changes Path 1.261 +15 -15 src/sys/i386/i386/vm_machdep.c