Re: [tip:x86/asm] x86-64: Use normal ptregs stub for execve

From: H. Peter Anvin
Date: Wed Jan 27 2010 - 11:29:02 EST


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.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/