From owner-freebsd-arch Sun Feb 17 23:45:12 2002 Delivered-To: freebsd-arch@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id 5D40137B405; Sun, 17 Feb 2002 23:45:06 -0800 (PST) Received: from pool0305.cvx21-bradley.dialup.earthlink.net ([209.179.193.50] helo=mindspring.com) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16ciTu-000452-00; Sun, 17 Feb 2002 23:45:03 -0800 Message-ID: <3C70B0F3.21426E19@mindspring.com> Date: Sun, 17 Feb 2002 23:44:51 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Poul-Henning Kamp Cc: Matthew Dillon , Julian Elischer , Alfred Perlstein , arch@FreeBSD.ORG, jhb@FreeBSD.ORG, peter@wemm.org, jake@locore.ca Subject: Re: gettimeofday() and crhold()/crfree() (was Re: gettimeofday()and copyout(). Is copyout() MPSAFE on non-i386 archs? ) References: <32873.1014013080@critter.freebsd.dk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Poul-Henning Kamp wrote: > In message <3C70470E.BD2F048D@mindspring.com>, Terry Lambert writes: > > >I guess this would be read/write? > > Yes. > > >I don't think copyin() access would be the best way to > >do it, if that's the case, since the user could lie to > >the kernel that way. > > ...and consequently coredump... Heh. The "death penalty" for lying to the kernel... I can't say I don't approve. I was more worried about peple rewriting the uid in the reflected copy and getting bogus results. The degenerate case for local mail delivery, SAMBA, and other things that play musical credentials would be bad, though. 8-(. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message