public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Christoph Hellwig <hch@lst.de>,
	Linus Torvalds <torvalds@transmeta.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sanitize TLS API
Date: Tue, 30 Jul 2002 16:06:31 -0400	[thread overview]
Message-ID: <20020730160631.R1596@devserv.devel.redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0207302059060.22902-100000@localhost.localdomain>; from mingo@elte.hu on Tue, Jul 30, 2002 at 09:00:09PM +0200

On Tue, Jul 30, 2002 at 09:00:09PM +0200, Ingo Molnar wrote:
> 
> On Tue, 30 Jul 2002, Christoph Hellwig wrote:
> 
> > Currently sys_set_thread_area has a magic flags argument that might
> > change it's behaivour completly.
> > 
> > Split out the TLS_FLAG_CLEAR case that has nothing in common with the
> > rest into it's own syscall, sys_clear_thread_area and change the second
> > argument to int writable.
> 
> i did not feel like wasting two syscall slots for this, but the cleanups
> look fine to me otherwise.

Actually, is the clear operation really necessary?
IMHO the best clear is movw $0x03, %gs, then all accesses through %gs will
trap. Calling set_thread_area (0, 1); will result in 0xb segment
acting exactly like %ds or %es.

	Jakub

  reply	other threads:[~2002-07-30 20:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-30 15:43 [PATCH] sanitize TLS API Christoph Hellwig
2002-07-30 19:00 ` Ingo Molnar
2002-07-30 20:06   ` Jakub Jelinek [this message]
2002-07-30 20:16     ` Ingo Molnar
2002-07-31  8:52     ` 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=20020730160631.R1596@devserv.devel.redhat.com \
    --to=jakub@redhat.com \
    --cc=hch@lst.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=torvalds@transmeta.com \
    /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