Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jun 2011 14:33:27 -0600
From:      Scott Long <scottl@samsco.org>
To:        "K. Macy" <kmacy@freebsd.org>
Cc:        Luigi Rizzo <rizzo@iet.unipi.it>, current@freebsd.org
Subject:   Re: fast/syscall-free gettimeofday ?
Message-ID:  <4A46AC77-BEE5-4401-8896-4E4F1A5304B0@samsco.org>
In-Reply-To: <BANLkTinOq73nGQT88NByuOgH3ByuA=ZLJA@mail.gmail.com>
References:  <20110614161105.GA17306@onelab2.iet.unipi.it> <BANLkTinOq73nGQT88NByuOgH3ByuA=ZLJA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <rizzo@iet.unipi.it> =
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"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A46AC77-BEE5-4401-8896-4E4F1A5304B0>