sparc64 /dev/mem locking needed ([ cvs commit: src/sys/i386/i386 mem.c])

Kris Kennaway kris at
Mon Jan 23 11:35:02 PST 2006

Someone needs to port this change to sparc64, to fix the following

panic: vm_fault: fault on nofault entry, addr: e6ea4000
cpuid = 1
KDB: enter: panic
[thread pid 52621 tid 101030 ]
Stopped at      kdb_enter+0x3c: ta              %xcc, 1
db> wh
Tracing pid 52621 tid 101030 td 0xfffff800bb5f70a0
panic() at panic+0x160
vm_fault() at vm_fault+0x1b0
trap_pfault() at trap_pfault+0x1d0
trap() at trap+0x22c
-- fast data access mmu miss tar=0xe6ea4000 %o7=0xc0181088 --
copyout() at copyout+0x8c
memrw() at memrw+0x28c
giant_read() at giant_read+0x54
devfs_read_f() at devfs_read_f+0x64
dofileread() at dofileread+0x7c
kern_readv() at kern_readv+0x38
read() at read+0x4c
syscall() at syscall+0x33c
-- syscall (3, FreeBSD ELF64, read) %o7=0x4033f348 --

I get this relatively frequently when fstat(1) happens to run on two
CPUs at once:

52621 fffff80066738d40    0 52616 52110 0004100 [CPU 1] fstat
52620 fffff800f5c53a80    0 52617 52130 0004100 [CPU 8] fstat


----- Forwarded message from Stephan Uphoff <ups at> -----

X-Original-To: kkenn at localhost
Delivered-To: kkenn at
X-Original-To: kris at
Delivered-To: kris at
X-Original-To: cvs-all at
Delivered-To: cvs-all at
From: Stephan Uphoff <ups at>
Date: Mon, 23 Jan 2006 15:46:10 +0000 (UTC)
To: src-committers at, cvs-src at, cvs-all at
X-FreeBSD-CVS-Branch: HEAD
Subject: cvs commit: src/sys/i386/i386 mem.c
X-BeenThere: cvs-all at
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit messages for the entire tree <>
List-Unsubscribe: <>,
	<mailto:cvs-all-request at>
List-Archive: <>
List-Post: <mailto:cvs-all at>
List-Help: <mailto:cvs-all-request at>
List-Subscribe: <>,
	<mailto:cvs-all-request at>
Errors-To: owner-cvs-all at
X-UIDL: Uep!!kHC"!!MX!!Z~;"!

ups         2006-01-23 15:46:10 UTC

  FreeBSD src repository

  Modified files:
    sys/i386/i386        mem.c 
  Fix race conditions.
  Tested by:      kris@
  MFC after:      3 days
  Revision  Changes    Path
  1.117     +57 -33    src/sys/i386/i386/mem.c
cvs-all at mailing list
To unsubscribe, send any mail to "cvs-all-unsubscribe at"

----- End forwarded message -----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-sparc64 mailing list