All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Brian Gerst <brgerst@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>,
	mingo@redhat.com, linux-kernel@vger.kernel.org,
	tglx@linutronix.de, linux-tip-commits@vger.kernel.org
Subject: Re: [tip:x86/asm] x86-64: Use normal ptregs stub for execve
Date: Wed, 27 Jan 2010 08:28:23 -0800	[thread overview]
Message-ID: <4B6069A7.1020907@zytor.com> (raw)
In-Reply-To: <73c1f2161001270721x3d07b507lb78fa8c53567dcaa@mail.gmail.com>

On 01/27/2010 07:21 AM, Brian Gerst wrote:
> 
> I see what is going on.  Grub is a 32-bit statically linked executable
> even on a 64-bit distro.  The old execve stub forced return to
> userspace via iret, but PTREGSCALL apparently doesn't.  This means
> that the 32-bit %cs isn't getting set.  Drop this patch for now.
> 

OK, I presume that breaks execing any 32-bit app, not just statically
linked (eww...)

Yet one more case of Grub making me shudder, though :-/

	-hpa

-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.


      reply	other threads:[~2010-01-27 16:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-25 15:47 [PATCH] x86-64: Use normal ptregs stub for execve Brian Gerst
2010-01-27  8:39 ` [tip:x86/asm] " tip-bot for Brian Gerst
2010-01-27 13:07   ` Ingo Molnar
2010-01-27 15:21     ` Brian Gerst
2010-01-27 16:28       ` H. Peter Anvin [this message]

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=4B6069A7.1020907@zytor.com \
    --to=hpa@zytor.com \
    --cc=brgerst@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.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 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.