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: NEW
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: Red Hat Kernel Manager
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-04 19:46 UTC by Jan Pazdziora
Modified: 2021-05-05 09:54 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)

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.