From nobody@FreeBSD.org  Fri Mar 10 11:38:40 2006
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 39B7F16A420
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Mar 2006 11:38:40 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 087FD43D45
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Mar 2006 11:38:40 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k2ABcdGD061272
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Mar 2006 11:38:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k2ABcdG3061271;
	Fri, 10 Mar 2006 11:38:39 GMT
	(envelope-from nobody)
Message-Id: <200603101138.k2ABcdG3061271@www.freebsd.org>
Date: Fri, 10 Mar 2006 11:38:39 GMT
From: Adam McDougall <mcdouga9@egr.msu.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: missing printf locking for geom_mirror boot messages?
X-Send-Pr-Version: www-2.3

>Number:         94299
>Category:       kern
>Synopsis:       [geom] missing printf locking for geom_mirror boot messages?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pjd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 10 11:40:02 GMT 2006
>Closed-Date:    Mon Sep 25 11:24:45 GMT 2006
>Last-Modified:  Mon Sep 25 11:24:45 GMT 2006
>Originator:     Adam McDougall
>Release:        6.1-BETA3
>Organization:
>Environment:
FreeBSD hostname 6.1-BETA3 FreeBSD 6.1-BETA3 #0: Tue Mar  7 02:46:43 EST 2006     user@hostname:/usr/obj/usr/src/sys/v20z  amd64

>Description:
Recently I installed 6.1-BETA3 from cd ISO to two Sun Fire v20z systems with dual cpus.  I used a custom kernel config, but did not update sources.  I am using geom_mirror as a kernel module and loading it from loader.conf.  I noticed a funny string in the nightly dmesg periodic diff script, then realized it was most likely two cpus printing different messages at the same time.  Some kind of printf locking problem?  

CPU: AMD Opteron(tm) Processor 250 (2393.19-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0xf5a  Stepping = 10
  Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,
MMX,FXSR,SSE,SSE2>
  AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow+,3DNow>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
<...snip>
GEOMR_oMoItR RmOoRu:n tD ewvaiictei nggm 0f:o rp:r oGvMiIdReRrO Rda
0 activated,

Attempted translation by hand:
GEOM_MIRROR: Device gm0: provider da0 activated
Root mount waiting for: GMIRROR

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-geom 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Mar 11 02:46:42 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94299 
Responsible-Changed-From-To: freebsd-geom->pjd 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Wed Mar 15 15:54:10 UTC 2006 
Responsible-Changed-Why:  
Assign to author and active maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94299 
State-Changed-From-To: open->closed 
State-Changed-By: pjd 
State-Changed-When: Mon Sep 25 11:24:04 UTC 2006 
State-Changed-Why:  
I'm sorry, but this is not a gmirror problem, but a more general 
problem with printf(9). 

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