From nobody@FreeBSD.org  Thu Sep  9 04:06:53 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B2BEE16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Sep 2004 04:06:53 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 91C8643D2D
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Sep 2004 04:06:53 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i8946rNi012168
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 9 Sep 2004 04:06:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i8946rKA012167;
	Thu, 9 Sep 2004 04:06:53 GMT
	(envelope-from nobody)
Message-Id: <200409090406.i8946rKA012167@www.freebsd.org>
Date: Thu, 9 Sep 2004 04:06:53 GMT
From: Stephan Uphoff <ups@tree.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sched_pin ignored by sched_4bsd
X-Send-Pr-Version: www-2.3

>Number:         71509
>Category:       kern
>Synopsis:       sched_pin ignored by sched_4bsd
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 09 04:10:26 GMT 2004
>Closed-Date:    Sat Sep 11 01:08:47 GMT 2004
>Last-Modified:  Sun Jul  3 00:20:18 GMT 2005
>Originator:     Stephan Uphoff
>Release:        current
>Organization:
>Environment:
N/A source
>Description:
sched_pin() increments the current threads td_pinned field.
However sched_4bsd ignores td_pinned and looks for ((ke)->ke_pinned.
( Nobody ever sets ke_pinned)

More details tomorrow if needed .. sorry got to run.
>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Stephan Uphoff <ups@tree.com>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc:  
Subject: Re: kern/71509: sched_pin ignored by sched_4bsd
Date: Thu, 09 Sep 2004 12:46:55 -0400

 sched_pin() is used by the i386 pmap to optimize TLB invalidation in SMP
 systems by limiting it to a single processor.
 Ignoring the thread pin count can cause a thread to migrate to another
 CPU where obsolete cached TLB entries may point to the wrong physical
 page. This could for example cause pmap_copy_page to copy to/from the
 wrong page.
 
  
 
State-Changed-From-To: open->closed 
State-Changed-By: julian 
State-Changed-When: Sat Sep 11 01:07:45 GMT 2004 
State-Changed-Why:  
Problem found and patched. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=71509 

From: Stephan Uphoff <ups@tree.com>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc:  
Subject: Re: kern/71509: sched_pin ignored by sched_4bsd
Date: Thu, 09 Sep 2004 12:46:55 -0400

 sched_pin() is used by the i386 pmap to optimize TLB invalidation in SMP
 systems by limiting it to a single processor.
 Ignoring the thread pin count can cause a thread to migrate to another
 CPU where obsolete cached TLB entries may point to the wrong physical
 page. This could for example cause pmap_copy_page to copy to/from the
 wrong page.
 
  
 
 _______________________________________________
 freebsd-bugs@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
 To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
 
>Unformatted:
