Re: ia32 binfmt problem with x86-64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 27 June 2006 10:43, Andi Kleen wrote:
> [email protected] 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux