Project

General

Profile

Actions

Bug #74751

closed
AM AM

s390x ELF execstack

Bug #74751: s390x ELF execstack

Added by Aliaksei Makarau 10 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
build
Target version:
-
Due date:
% Done:

100%

Source:
Development
Backport:
squid,tentacle
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Fixed In:
v20.3.0-5223-g0e8e99ad8c
Released In:
v21.2.0~1299
Upkeep Timestamp:
2026-10-24T01:49:09+00:00

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


Related issues 2 (0 open — 2 closed)

Copied to Ceph - Backport #74836: tentacle: s390x ELF execstackResolvedIlya Dryomov

Actions
Copied to Ceph - Backport #74837: squid: s390x ELF execstackRejectedIlya Dryomov

Actions

AM Updated by Aliaksei Makarau 10 months ago Actions #1

Or the assembler code like

.section .note.GNU-stack

should be preferable :)

ID Updated by Ilya Dryomov 10 months ago Actions #2

  • 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 Actions #3

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot 10 months ago Actions #4

UB Updated by Upkeep Bot 10 months ago Actions #5

UB Updated by Upkeep Bot 10 months ago Actions #6

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 10 months ago Actions #7

  • 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

ID Updated by Ilya Dryomov 9 months ago Actions #9

  • Affected Versions deleted (v18.2.8, v19.2.4)

UB Updated by Upkeep Bot 3 months ago Actions #10

  • 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 Actions #11

  • 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
Actions

Also available in: PDF Atom