Bug 1934189
Summary: | hardening/annobin regression in ppc64le toolchain? | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Colin Walters <walters> |
Component: | annobin | Assignee: | Nick Clifton <nickc> |
annobin sub component: | system-version | QA Contact: | Martin Cermak <mcermak> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | unspecified | ||
Priority: | unspecified | CC: | fweimer, mcermak, nickc |
Version: | 8.4 | Keywords: | Bugfix, Triaged |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | annobin-9.65-1.el8 | Doc Type: | No Doc Update |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-09 17:48:32 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Colin Walters
2021-03-02 16:44:23 UTC
Ah, some digging reveals that chrony hit the same thing, they just waived it: https://rpmdiff.engineering.redhat.com/run/487606/7/ Hi Colin,
> Hardened: ostree-system-generator: FAIL: Some parts of the binary were
> compiled without -D_FORTIFY_SOURCE=2 but with -D_GLIBCXX_ASSERTIONS.
> Hardened: ostree-system-generator: FAIL: Parts of the binary were compiled
> without the proper PIC/PIE option. Run with -v to see where.
> Hardened: ostree-system-generator: FAIL: Parts of the binary were compiled
> without a suffcient -fstack-protector setting. Run with -v to see where.
> ' on ppc64le
Feel free to waive these failures.
What is going on is that the checker is detecting these problems in the glibc
startup code which is part of the programs. Since the startup code executes
before a full runtime environment is ready, it cannot use security features
like -fstack-protector nor does it make sense to use protection features like
FORTIFY_SOURCE and GLIBCXX_ASSERTIONS.
(If you are interested you can rerun annocheck with the -v option to see which
functions it is complaining about. When I downloaded and tested the ostree
rpm the offending function was always "_start" ).
I am not sure why this is only showing up when testing ppc64le builds. In theory
these problems should apply to all architectures.
In theory annocheck has code to skip these tests when specific functions are
detected (eg _start). But I have just found a bug in that code which was
preventing the skip from triggering, so that is why the false FAILs were
reported. I am going to check in the patch, but it will not make it into
RHEL-8.4, so I am hoping to target RHEL-8.5 instead.
Fixed in annobin-9.65-1.el8 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (annobin bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:4168 |