All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Roland McGrath <roland@redhat.com>
Cc: Rik van Riel <riel@redhat.com>, xen-devel@lists.sourceforge.net
Subject: Re: NPTL/TLS "emulation" idea
Date: Tue, 19 Oct 2004 16:06:33 -0400	[thread overview]
Message-ID: <20041019200632.GL31909@devserv.devel.redhat.com> (raw)
In-Reply-To: <200410191945.i9JJj1ZN018389@magilla.sf.frob.com>

On Tue, Oct 19, 2004 at 12:45:01PM -0700, Roland McGrath wrote:
> > A few weeks ago Roland, Jakub and myself brainstormed
> > about this problem.  One of the things that came up is
> > that the positive (glibc private data) and -ve (TLS)
> > data are not generally used at the same time.
>
> I am still brainstorming about this, but I will need to do some experiments
> to figure out how some other funny ways of using segments actually work.

If you allow modification of the user code by xen, then you can do
some tricks.  E.g. if an application doesn't ever use %fs segment,
you could rewrite the positive accesses from %gs segment prefix to
%fs segment prefix and have %gs be an expand-down segment while %fs
expand-up segment with the same base.

The problem with this is that things break badly if the application
wants to use %fs for its own purposes, or if it pokes at its own
code (writing can be avoided by temporarily write protecting any
pages where a rewrite has happened, but reading cannot).
There is always the PaX trick - halving the address space and having
non-overlapping %cs and %ds segments with some pages shared in between,
but perhaps that's too complicated.

	Jakub


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

  reply	other threads:[~2004-10-19 20:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-19 18:28 NPTL/TLS "emulation" idea Rik van Riel
2004-10-19 19:45 ` Roland McGrath
2004-10-19 20:06   ` Jakub Jelinek [this message]
2004-10-20  7:46 ` Keir Fraser

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=20041019200632.GL31909@devserv.devel.redhat.com \
    --to=jakub@redhat.com \
    --cc=riel@redhat.com \
    --cc=roland@redhat.com \
    --cc=xen-devel@lists.sourceforge.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.