Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2044879

Summary: annocheck FAIL: bind-now test (lua-posix)
Product: Red Hat Enterprise Linux 9 Reporter: Rui Ormonde <rlemosor>
Component: lua-posixAssignee: Andrew John Hughes <ahughes>
Status: CLOSED ERRATA QA Contact: OpenJDK QA <java-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: ahughes, jandrlik, pmikova
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lua-posix-35.0-6.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 14:07:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2044387    

Description Rui Ormonde 2022-01-25 10:35:11 UTC
Failed test: bind-now test

Test results:
\n Hardened: ctype.so: FAIL: bind-now test because not linked with -Wl'-z'now \n Hardened: dirent.so: FAIL: bind-now test because not linked with -Wl'-z'now \n Hardened: errno.so: FAIL: bind-now test because not linked with -Wl'-z'now \n Hardened: fcntl.so: FAIL: bind-now test because not linked with -Wl'-z'now \n Hardened: fnmatch.so: FAIL: bind-now test because not linked with -Wl'-z'now \n Hardened: glob.so: FAIL: bind-now test because not linked with -Wl'-z'now \n Hardened: grp.so: FAIL: bind-now test because not linked with -Wl'-z'now \n Hardened: libgen.so: FAIL: bind-now test because not linked with -Wl'-z'now \n Hardened: poll.so: FAIL: bind-now test because not linked with -Wl'-z'now \n Hardened: pwd.so: FAIL: bind-now test because not linked with -Wl'-z'now \n Hardened: sched.so: FAIL: bind-now test because not linked with -Wl'-z'now \n Hardened: signal.so: FAIL: bind-now test because not linked with -Wl'-z'now \n Hardened: stdio.so: FAIL: bind-now test because not linked with -Wl'-z'now \n Hardened: st

Applicable RPMs:
lua-posix-35.0-5.el9.aarch64.rpm; lua-posix-35.0-5.el9.ppc64le.rpm; lua-posix-35.0-5.el9.s390x.rpm; lua-posix-35.0-5.el9.x86_64.rpm

Recommendation: Please fix the build system for the package or else add a skip of tests to the rpminspect.yaml file. For more details please see https://sourceware.org/annobin/annobin.html/Test-bind-now.html and https://sourceware.org/annobin/annobin.html/Waiving-Hardened-Results.html#Waiving-Hardened-Results.

Why this bug was filed: All packages in RHEL 9 built with gcc (g++, etc.) are required to use a common set of flags provided by the distribution. These flags turn on important security and performance features so it is critical that any package that lacks these flags be repaired. A scanning tool named annocheck, part of the annobin package, was used to scan RHEL 9 packages. This BZ was created because binary packages of this component with the mentioned NVRs were not built with the requisite flags for one or more RHEL 9 architectures.

How to reproduce the failure: You could try running annocheck locally against your builds: https://developers.redhat.com/blog/2019/02/04/annocheck-examining-the-contents-of-binary-files.

Annocheck resources:
* annobin documentation: https://sourceware.org/annobin/annobin.html/index.html
* annocheck on the customer portal: https://access.redhat.com/documentation/en-us/red_hat_developer_toolset/9/html/user_guide/chap-annobin

Contacts:
* Instant messaging: #tools on IRC
* Email: use tools for generic questions. Otherwise, use go-tools and llvm-clang-list for Go and Clang/LLVM specific questions.
* annobin-annocheck maintainer: Nick Clifton (nickc)

Comment 2 Andrew John Hughes 2022-02-14 16:37:22 UTC
This looks like a simple case of the build not being passed the build_ldflags.

However, the build machinery in lua-posix also needed this patch to correctly propagate them: https://github.com/luaposix/luaposix/commit/4788eba65956aa9347bbb5856c9208888a20330b

I have annocheck passing now locally, so I'll update Fedora & RHEL with this fix.

Comment 3 Andrew John Hughes 2022-02-14 16:57:17 UTC
Fedora PR: https://src.fedoraproject.org/rpms/lua-posix/pull-request/2#

Comment 4 Andrew John Hughes 2022-02-14 17:34:39 UTC
CentOS PR: https://gitlab.com/redhat/centos-stream/rpms/lua-posix/-/merge_requests/1

Comment 12 errata-xmlrpc 2022-05-17 14:07:18 UTC
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 (new packages: lua-posix), 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-2022:2650