Bug #74751
closeds390x ELF execstack
100%
Description
Justin Caratzas found ceph-osd and libceph-common.so.2 ELFs are marked execstack ELFs:
root@lp42:~/src/ceph/build# execstack bin/ceph-osd X bin/ceph-osd root@lp42:~/src/ceph/build# execstack lib/libceph-common.so.2 X lib/libceph-common.so.2
We suspect this comes from the crc32 assembler code in the project.
The appropriate flags are added into the src/common/CMakeLists.txt file:
if(HAVE_S390X)
set_target_properties(crc32 PROPERTIES
COMPILE_FLAGS "-Wa,--noexecstack"
LINK_FLAGS "-Wa,--noexecstack")
endif()
Some background information can be found here:
https://discussion.fedoraproject.org/t/rpmlint-executable-stack-error/108373
https://best.openssf.org/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.html
https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart
AM Updated by Aliaksei Makarau 10 months ago
Or the assembler code like
.section .note.GNU-stack
should be preferable :)
ID Updated by Ilya Dryomov 10 months ago
- Status changed from New to Fix Under Review
- Assignee set to Aliaksei Makarau
- Target version deleted (
v20.2.1) - Backport changed from 18, 19 to squid,tentacle
- Pull request ID set to 67217
ID Updated by Ilya Dryomov 10 months ago
- Status changed from Fix Under Review to Pending Backport
UB Updated by Upkeep Bot 10 months ago
- Copied to Backport #74836: tentacle: s390x ELF execstack added
UB Updated by Upkeep Bot 10 months ago
- Copied to Backport #74837: squid: s390x ELF execstack added
UB Updated by Upkeep Bot 10 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 10 months ago
- Merge Commit set to 0e8e99ad8c30432aef0b598903d226185fe30189
- Fixed In set to v20.3.0-5223-g0e8e99ad8c
- Upkeep Timestamp set to 2026-02-10T01:01:28+00:00
AM Updated by Aliaksei Makarau 9 months ago
- % Done changed from 0 to 100
ID Updated by Ilya Dryomov 9 months ago
- Affected Versions deleted (
v18.2.8, v19.2.4)
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Resolved
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-02-10T01:01:28+00:00 to 2026-08-27T18:25:32+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~1299
- Upkeep Timestamp changed from 2026-08-27T18:25:32+00:00 to 2026-10-24T01:49:09+00:00