This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC PATCH V2 02/10] C-SKY: TLS support


On Fri, 27 Apr 2018, Guo Ren wrote:

> And our hardware mmu tlb-entry do not have EXEC bit to protect the
> page-non-exec.

I'm not sure what's best in the kernel for hardware not supporting 
readable but non-executable pages.

However, whatever the solution, I'd say the following principle applies to 
userspace code: binaries that require execution of code on stack pages 
should be distinguished from those that do not, and the latter should be 
the default, so that if a future hardware version does support readable 
but non-executable pages, existing binaries can automatically get 
non-executable stacks when run on the new hardware.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]