Re: execlineb ELF executable stack on Linux

2021-04-09 Thread Xavier Stonestreet
On Fri, Apr 9, 2021 at 3:46 PM Laurent Bercot wrote: > > Oh! That's interesting Interesting, and very nasty: "Fail open design Since this is the default, the only way to get a non-executable stack is if every object file input to the linker explicitly declares that it does not need an

Re: execlineb ELF executable stack on Linux

2021-04-09 Thread Laurent Bercot
Without the GNU-stack section the linker reverts to its backwards-compatible default which is to make the stack executable. Oh! That's interesting, and actually makes sense. Well, I guess we've found a reason for the existence of the .note.GNU-stack section, and stripping it is not as free a

Re: execlineb ELF executable stack on Linux

2021-04-09 Thread Xavier Stonestreet
On Fri, Apr 9, 2021 at 5:06 AM Laurent Bercot wrote: > > To make things perfectly clear: the modification I pushed to git also > applies to the ld invocations creating shared libraries, including > libskarnet.so. So with that change, skalibs or libutmps will not > pollute anything else. ;)