public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Andi Kleen <ak@suse.de>,
	hch@lst.de, akpm@osdl.org, linux-arch@vger.kernel.org
Subject: Re: RFC: is_compat_task (Was: Re: input compat stuff)
Date: Tue, 28 Jun 2005 18:14:14 +0200	[thread overview]
Message-ID: <20050628161414.GP8035@wotan.suse.de> (raw)
In-Reply-To: <20050629020944.1af20657.sfr@canb.auug.org.au>

On Wed, Jun 29, 2005 at 02:09:44AM +1000, Stephen Rothwell wrote:
> On Tue, 28 Jun 2005 11:17:04 +0200 Andi Kleen <ak@suse.de> wrote:
> >
> > On Tue, Jun 28, 2005 at 06:14:53PM +1000, Stephen Rothwell wrote:
> > > On Tue, 28 Jun 2005 09:27:10 +0200 Christoph Hellwig <hch@lst.de> wrote:
> > > >
> > > > besides this beeing butt ugly didn't we have a rule about never checking
> > > > task flags whether we're a compat process?  And if we're going to allow
> > > > it it should be done properly.
> > > 
> > > So, I have been thinking about this patch for a while (wondering how badly
> > > flamed I would get when I posted it :-)).  What do you all think?  Is this
> > > a reasonable thing to do?
> > 
> > No, it's not because it makes it impossible to have 64bit processes
> > that run with 32bit ABI (not implemented right now but we don't
> > want to break that).
> 
> Why does this make it impossible?  All I am defining is *arch specific*
> macros that tell us if the kernel was entered through a compat syscall. If

No, you're defining an arch specific macro to tell you that
the current process was loaded from a 32bit executable.
It does not tell you anything how the kernel was entered.

Subtle but important difference.

> 
> > Please don't do this. It is absolutely the wrong thing to do.
> 
> Then please tell us what the right thing to do is.

The right thing to do is what all the other non broken compat
functions do - figure out from the original system call entry
point if you're in compat context or not.

This typically requires a special path.

-Andi

  reply	other threads:[~2005-06-28 16:14 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-28  7:27 input compat stuff Christoph Hellwig
2005-06-28  8:14 ` RFC: is_compat_task (Was: Re: input compat stuff) Stephen Rothwell
2005-06-28  8:30   ` RFC: is_compat_task David S. Miller
2005-06-28  9:17   ` RFC: is_compat_task (Was: Re: input compat stuff) Andi Kleen
2005-06-28  9:23     ` RFC: is_compat_task David S. Miller
2005-06-28  9:27       ` Andi Kleen
2005-06-28  9:29         ` David S. Miller
2005-06-28  9:33           ` Andi Kleen
2005-06-28 11:18     ` RFC: is_compat_task (Was: Re: input compat stuff) Matthew Wilcox
2005-06-28 12:05       ` Andi Kleen
2005-06-28 20:47       ` RFC: is_compat_task David S. Miller
2005-06-29  6:41         ` Stephen Rothwell
2005-06-29 11:01           ` Arnd Bergmann
2005-06-29 12:12           ` Andi Kleen
2005-06-30  7:57             ` Stephen Rothwell
2005-06-30  8:42               ` Andi Kleen
2005-06-30 14:38                 ` Stephen Rothwell
2005-06-30 15:28                   ` Stephen Rothwell
2005-06-30 15:49                     ` Andi Kleen
2005-06-30 23:29                       ` Paul Mackerras
2005-07-01  2:34                         ` David S. Miller
2005-07-01 13:48                         ` Andi Kleen
2005-07-04  3:36                           ` Paul Mackerras
2005-07-04 23:02                             ` David S. Miller
2005-07-01  4:56                       ` [PATCH, for review 1/3] compat_sys_{read,write} Stephen Rothwell
2005-07-01  4:58                         ` [PATCH, for review 2/3] hook up compat_sys_{read,write} syscalls Stephen Rothwell
2005-07-01  5:01                         ` [PATCH, for review 3/3] fix evdev Stephen Rothwell
2005-07-01  7:58                         ` [PATCH, for review 1/3] compat_sys_{read,write} David Howells
2005-07-01  8:24                           ` Stephen Rothwell
2005-07-21  7:05                         ` Stephen Rothwell
2005-07-21  8:05                           ` David S. Miller
2005-07-21  8:28                             ` Stephen Rothwell
2005-06-29 10:36         ` RFC: is_compat_task Andi Kleen
2005-06-28 16:09     ` RFC: is_compat_task (Was: Re: input compat stuff) Stephen Rothwell
2005-06-28 16:14       ` Andi Kleen [this message]
2005-06-28 16:34         ` Stephen Rothwell
2005-06-28 16:44           ` Andi Kleen
2005-06-30 10:16     ` Ralf Baechle
2005-06-28  9:16 ` input compat stuff 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=20050628161414.GP8035@wotan.suse.de \
    --to=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=hch@lst.de \
    --cc=linux-arch@vger.kernel.org \
    --cc=sfr@canb.auug.org.au \
    /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