RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1956988 - annocheck reports that kernel-tools is compiled without -fstack-protector-strong, -D_FORTIFY_SOURCE=2, and -fPIE/-fPIC
Summary: annocheck reports that kernel-tools is compiled without -fstack-protector-str...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: kernel
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Herton R. Krzesinski
QA Contact: Linqing Lu
URL:
Whiteboard:
Depends On:
Blocks: 2044387
TreeView+ depends on / blocked
 
Reported: 2021-05-04 19:46 UTC by Jan Pazdziora
Modified: 2022-01-25 11:07 UTC (History)
5 users (show)

Fixed In Version: kernel-5.14.0-0.rc4.35.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-02 21:19:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab cki-project kernel-ark merge_requests 1276 0 None None None 2021-07-24 02:25:43 UTC

Description Jan Pazdziora 2021-05-04 19:46:35 UTC
Description of problem:

Running annocheck on kernel-tools reports that binaries in /usr/bin were compiled without stack protector and without position independent code.

Version-Release number of selected component (if applicable):

kernel-tools-5.12.0-1.el9.x86_64

How reproducible:

Deterministic.

Steps to Reproduce:
1. rpm -ql kernel-tools | xargs annocheck -v --ignore-gaps | grep FAIL:

Actual results:

Hardened: /usr/bin/lsiio: FAIL: pie test because not linked with -Wl,-pie 
Hardened: /usr/bin/lsiio: FAIL: bind-now test because not linked with -Wl,-z,now 
Hardened: /usr/bin/lsiio: FAIL: stack-prot test because stack protection deliberately disabled (addr range: 0x401620..0x401625) 
Hardened: /usr/bin/lsgpio: FAIL: pie test because not linked with -Wl,-pie 
Hardened: /usr/bin/lsgpio: FAIL: bind-now test because not linked with -Wl,-z,now 
Hardened: /usr/bin/lsgpio: FAIL: stack-prot test because stack protection deliberately disabled (addr range: 0x401270..0x401275) 
Hardened: /usr/bin/iio_generic_buffer: FAIL: pie test because not linked with -Wl,-pie 
Hardened: /usr/bin/iio_generic_buffer: FAIL: bind-now test because not linked with -Wl,-z,now 
Hardened: /usr/bin/iio_generic_buffer: FAIL: stack-prot test because stack protection deliberately disabled (addr range: 0x401d90..0x401d95) 
Hardened: /usr/bin/iio_event_monitor: FAIL: pie test because not linked with -Wl,-pie 
Hardened: /usr/bin/iio_event_monitor: FAIL: bind-now test because not linked with -Wl,-z,now 
Hardened: /usr/bin/iio_event_monitor: FAIL: stack-prot test because stack protection deliberately disabled (addr range: 0x4015a0..0x4015a5) 
Hardened: /usr/bin/gpio-watch: FAIL: pie test because not linked with -Wl,-pie 
Hardened: /usr/bin/gpio-watch: FAIL: bind-now test because not linked with -Wl,-z,now 
Hardened: /usr/bin/gpio-watch: FAIL: stack-prot test because stack protection deliberately disabled (addr range: 0x4012b0..0x4012b5) 
Hardened: /usr/bin/gpio-hammer: FAIL: pie test because not linked with -Wl,-pie 
Hardened: /usr/bin/gpio-hammer: FAIL: bind-now test because not linked with -Wl,-z,now 
Hardened: /usr/bin/gpio-hammer: FAIL: stack-prot test because stack protection deliberately disabled (addr range: 0x4012a0..0x4012a5) 
Hardened: /usr/bin/gpio-event-mon: FAIL: pie test because not linked with -Wl,-pie 
Hardened: /usr/bin/gpio-event-mon: FAIL: bind-now test because not linked with -Wl,-z,now 
Hardened: /usr/bin/gpio-event-mon: FAIL: stack-prot test because stack protection deliberately disabled (addr range: 0x4013a0..0x4013a5) 
Hardened: /usr/bin/cpupower: FAIL: optimization test because level too low (addr range: 0x3f39..0xd326) 

Expected results:

No FAILs reported by annocheck.

Additional info:


Note You need to log in before you can comment on or make changes to this bug.