From owner-freebsd-current@FreeBSD.ORG Wed Jun 15 20:49:47 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0FE5106564A; Wed, 15 Jun 2011 20:49:47 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id AFB9A8FC19; Wed, 15 Jun 2011 20:49:47 +0000 (UTC) Received: from [127.0.0.1] (pooker.samsco.org [168.103.85.57]) (authenticated bits=0) by pooker.samsco.org (8.14.4/8.14.4) with ESMTP id p5FKXSu7088641; Wed, 15 Jun 2011 14:33:29 -0600 (MDT) (envelope-from scottl@samsco.org) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Scott Long In-Reply-To: Date: Wed, 15 Jun 2011 14:33:27 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <4A46AC77-BEE5-4401-8896-4E4F1A5304B0@samsco.org> References: <20110614161105.GA17306@onelab2.iet.unipi.it> To: "K. Macy" X-Mailer: Apple Mail (2.1084) X-Spam-Status: No, score=-50.0 required=3.8 tests=ALL_TRUSTED, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on pooker.samsco.org Cc: Luigi Rizzo , current@freebsd.org Subject: Re: fast/syscall-free gettimeofday ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2011 20:49:48 -0000 If this was to be extended with cached global syscall information like = gettimeofday, would we want that to be in a separate page that is marked = non-executable? Is there any way to trick the kernel into leaking = arbitrary (and thus executable) code? Also, would it matter for jails? = Per-process info like getpid would obviously have to be a separate = per-process page. Scott On Jun 14, 2011, at 10:08 AM, K. Macy wrote: > http://svnweb.freebsd.org/base/head/sys/sys/imgact.h >=20 > kib added rudimentary support for this in January >=20 > On Tue, Jun 14, 2011 at 6:11 PM, Luigi Rizzo = wrote: >> there were discussions at some point on an imprecise but >> fast implementations of gettimeofday() that would not require >> a system call (perhaps mmapping some memory region which >> is opportunistically updated). >>=20 >> Does anyone remember what happened about that ? >>=20 >> Otherwise, is there any place in the kernel where i can fetch >> a struct timeval which is not off by more than, say 1 tick ? >>=20 >> cheers >> luigi >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org" >>=20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org"