Re: ia32 binfmt problem with x86-64

From: Markus Schoder
Date: Tue Jun 27 2006 - 15:01:43 EST


On Tuesday 27 June 2006 10:43, Andi Kleen wrote:
> lists@xxxxxxxxxxxxxxxx writes:
> >
> > This all makes sense. But 64 bit and 32 bit apps should get the same
> > treatment right?
>
> No - i386 behaves different here than x86-64.
>
> x86-64 always had NX/PROT_EXEC (although not all CPUs have always enforced it)
> while i386 has lots of legacy binaries that don't know about it.

But then 32 bit apps should be handled in a less restrictive fashion
than 64 bit apps, no? And also probably only for binaries that do
not have the exec_stack flag at all.

What I fail to understand then is why a 64 bit application with the
exec_stack flag set gets read_implies_exec and a 32 bit application
also with the exec_stack flag set does not (this is also the only case
where the behavior differs).

--
Markus
-
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/