From nobody@FreeBSD.org  Sat Jun  5 16:55:11 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 12D8D1065678
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Jun 2010 16:55:11 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 02A2C8FC1D
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Jun 2010 16:55:11 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o55Gt4FC041846
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 5 Jun 2010 16:55:04 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o55Gt4Pp041845;
	Sat, 5 Jun 2010 16:55:04 GMT
	(envelope-from nobody)
Message-Id: <201006051655.o55Gt4Pp041845@www.freebsd.org>
Date: Sat, 5 Jun 2010 16:55:04 GMT
From: Marcel Moolenaar <marcel@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [ia64] options PREEMPTION causes instability
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         147501
>Category:       ia64
>Synopsis:       [ia64] options PREEMPTION causes instability
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ia64
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 05 17:00:16 UTC 2010
>Closed-Date:    Wed Feb 20 04:03:21 UTC 2013
>Last-Modified:  Wed Feb 20 04:03:21 UTC 2013
>Originator:     Marcel Moolenaar
>Release:        9-CURRENT
>Organization:
>Environment:
FreeBSD hob.lan.xcllnt.net 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r208634:208809M: Sat Jun  5 08:36:47 PDT 2010     marcel@hob.lan.xcllnt.net:/usr/obj/nfs/freebsd/base/head/sys/HOB  ia64

>Description:
Running pho's stress2 with PREEMPTION results in kernel panics that are not seen when PREEMPTION is not enabled. This is with a SMP kernel.
>How-To-Repeat:
On a Montecito box:
o   checkout projects/stress2
o   compile and run
o   Wait for a panic (possibly a hard hang) within a few hours.

NOTE: Due to another bug, Montecito is the more reliable test platform.

>Fix:
Problem areas that are at the top of my head:
o   The weak memory ordering could result in race conditions if memory fences aren't properly used
o   Access to PCPU fields is non-atomic, which may result in getting the wrong field when the thread migrates to another CPU in the middle of the access sequence.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: marcel 
State-Changed-When: Tue Feb 19 03:32:40 UTC 2013 
State-Changed-Why:  
Fix committed on head with r246890 (primarily) and r246715. 
Merge to 9-stable pending. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=147501 
State-Changed-From-To: patched->closed 
State-Changed-By: marcel 
State-Changed-When: Wed Feb 20 04:02:27 UTC 2013 
State-Changed-Why:  
Fix r246890 & r246715 have been MFC'd. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=147501 
>Unformatted:
