DescriptionDisable executable stack on Linux.
BUG=29824
TEST=
william@penguin:~/src/chromium2/src$ out/Debug/chrome --user-data-dir=/tmp/foo&
[2] 28679
william@penguin:~/src/chromium2/src$ cat /proc/28679/maps | grep stack
7fff3fc4d000-7fff3fc63000 rw-p 00000000 00:00 0 [stack]
william@penguin:~/src/chromium2/src$ eu-readelf -l out/Debug/chrome | grep STACK GNU_STACK
0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x8
eu-readelf shows that the GNU_STACK segment indicates the stack should be RW (no X for execute).
`cat/proc/{pid}/maps | grep stack` shows that the stack mapping is indeed RW (if the dynamic linker encounters a shared library that needs an executable stack, it will globally enable executable stacks.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43150
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|