From: john stultz <johnstul@us.ibm.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@tglx.de>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: Duplicate vsyscall/vdso gettimeofday implementations on x86_64
Date: Sat, 18 Jul 2009 15:03:14 -0700 [thread overview]
Message-ID: <1247954594.14494.12.camel@work-vm> (raw)
In-Reply-To: <87ab32wmkv.fsf@basil.nowhere.org>
On Sat, 2009-07-18 at 08:07 +0200, Andi Kleen wrote:
> john stultz <johnstul@us.ibm.com> writes:
> >
> > Hrmm. Can we deprecate the old method and push glibc to use the new one?
>
> That would break every old 64bit executable. Also not there are programs
> who don't use glibc.
>
> Also glibc's way of calling the vDSO is still somewhat inefficient
> (although that could be probably fixed)
>
> > If we remove it the vsyscall interface will old glibc's fall-back
> > gracefully?
>
> They would crash gracefully.
>
> I had a couple of different transition plans, but they were all fairly
> complicated and had various disadvantages, so in the end nothing got
> done and the old code just left in.
Ok. Ulrich mailed me with the same points earlier and here's what I
said:
It seems the options are:
1) Keep the old vsyscall gtod implementation as is, despite it
duplicating things. Maybe avoid the code duplication via inlined
functions.
2) Set the old vsyscall gtod to directly call the syscall.
Neither of these help to avoid the non-randomized syscall instruction.
And #2 punishes old users for no really good reason, so #1 is probably
the best approach.
I'll try to put a patch together next week just to try to clean things
up a bit.
If anyone has any other ideas, let me know.
thanks
-john
next prev parent reply other threads:[~2009-07-18 22:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-17 22:02 Duplicate vsyscall/vdso gettimeofday implementations on x86_64 john stultz
2009-07-17 22:12 ` Andi Kleen
2009-07-17 22:54 ` john stultz
2009-07-18 6:07 ` Andi Kleen
2009-07-18 6:50 ` Andi Kleen
2009-07-18 22:03 ` john stultz [this message]
2009-07-19 7:22 ` Andi Kleen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1247954594.14494.12.camel@work-vm \
--to=johnstul@us.ibm.com \
--cc=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@tglx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox