[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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

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

Kris

----- Forwarded message from Stephan Uphoff <ups_(_at_)_FreeBSD_(_dot_)_org> -----

X-Original-To: kkenn_(_at_)_localhost
Delivered-To: kkenn_(_at_)_localhost_(_dot_)_obsecurity_(_dot_)_org
X-Original-To: kris_(_at_)_freebsd_(_dot_)_org
Delivered-To: kris_(_at_)_freebsd_(_dot_)_org
X-Original-To: cvs-all_(_at_)_FreeBSD_(_dot_)_org
Delivered-To: cvs-all_(_at_)_FreeBSD_(_dot_)_org
From: Stephan Uphoff <ups_(_at_)_FreeBSD_(_dot_)_org>
Date: Mon, 23 Jan 2006 15:46:10 +0000 (UTC)
To: src-committers_(_at_)_FreeBSD_(_dot_)_org, cvs-src_(_at_)_FreeBSD_(_dot_)_org, cvs-all_(_at_)_FreeBSD_(_dot_)_org
X-FreeBSD-CVS-Branch: HEAD
Cc: 
Subject: cvs commit: src/sys/i386/i386 mem.c
X-BeenThere: cvs-all_(_at_)_freebsd_(_dot_)_org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit messages for the entire tree <cvs-all.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-all>,
	<mailto:cvs-all-request_(_at_)_freebsd_(_dot_)_org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/cvs-all>
List-Post: <mailto:cvs-all_(_at_)_freebsd_(_dot_)_org>
List-Help: <mailto:cvs-all-request_(_at_)_freebsd_(_dot_)_org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-all>,
	<mailto:cvs-all-request_(_at_)_freebsd_(_dot_)_org?subject=subscribe>
Errors-To: owner-cvs-all_(_at_)_freebsd_(_dot_)_org
X-UIDL: Uep!!kHC"!!MX!!Z~;"!

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

  FreeBSD src repository

  Modified files:
    sys/i386/i386        mem.c 
  Log:
  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_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe_(_at_)_freebsd_(_dot_)_org"


----- End forwarded message -----

Attachment: pgpVhtWAkrRZU.pgp
Description: PGP signature


Visit your host, monkey.org