MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0010334 | CMake | CTest | public | 2010-02-25 23:01 | 2016-06-10 14:31 |
| Reporter | Derek Bruening | ||||
| Assigned To | Bill Hoffman | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-8 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0010334: Linux release binaries missing GNU_STACK which results in +x mmaps under ctest | ||||
| Description | I downloaded the 2.8 cmake linux binary package (http://www.cmake.org/files/v2.8/cmake-2.8.0-Linux-i386.tar.gz [^]) and the ctest binary does not have a GNU_STACK section. This causes my kernel to set the READ_IMPLIES_EXEC personality flag for ctest and all its children, which means that all mmaps have +x set -- which causes one of my tests to fail, in addition to being a security faux pas if ctest doesn't really need +x memory. Are you deliberately building these without a GNU_STACK section? Normally gcc should add one by default, unless you have assembler sources. You can tell the linker to make any existing GNU_STACK section -x, which maybe will add a section if you don't have one? (I know /usr/bin/execstack refuses to add one), with: -Wl,-z,noexecstack There's some basic info here: http://www.gentoo.org/proj/en/hardened/gnu-stack.xml [^] I'm not 100% sure there's no downside to adding the section if you want to run on really old systems but certainly on any relatively modern system binaries should have a GNU_STACK section. Looks like the 2.6.4 binaries on the cmake website have the same issue. The version distributed by Redhat for Fedora does have GNU_STACK so I never noticed it before. Note that as a workaround I simply built 2.8 locally from sources using my distro's toolchain and the resulting binary is fine. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2010-02-25 23:01 | Derek Bruening | New Issue | |||
| 2010-02-26 10:06 | Bill Hoffman | Status | new => assigned | ||
| 2010-02-26 10:06 | Bill Hoffman | Assigned To | => Brad King | ||
| 2010-02-26 11:42 | Brad King | Assigned To | Brad King => Bill Hoffman | ||
| 2010-02-26 11:43 | Brad King | Note Added: 0019645 | |||
| 2010-02-26 12:06 | Bill Hoffman | Note Added: 0019646 | |||
| 2010-02-26 12:26 | Derek Bruening | Note Added: 0019647 | |||
| 2010-03-10 11:08 | Marcus D. Hanwell | Note Added: 0019807 | |||
| 2010-03-10 11:09 | Marcus D. Hanwell | Note Edited: 0019807 | |||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041657 | |||
| 2016-06-10 14:27 | Kitware Robot | Status | assigned => resolved | ||
| 2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||