Bug 1975673 - Forbidden function symbols found in llvm-jitlink by rpminspect, "gethostbyname"
Summary: Forbidden function symbols found in llvm-jitlink by rpminspect, "gethostbyname"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: llvm
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: serge_sans_paille
QA Contact: Miloš Prchlík
URL:
Whiteboard:
: 1958422 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-24 07:51 UTC by Miloš Prchlík
Modified: 2021-12-07 21:35 UTC (History)
4 users (show)

Fixed In Version: llvm-12.0.0-6.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-07 21:33:05 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Miloš Prchlík 2021-06-24 07:51:24 UTC
Description of problem:

As reported by rpminspect:


1) /usr/bin/llvm-jitlink may use forbidden functions on aarch64

Result: VERIFY
Waiver Authorization: Anyone

Details:
Forbidden function symbols found:
	gethostbyname


Suggested Remedy:
Forbidden symbols were found in an ELF file in the package.  The configuration settings for rpminspect indicate the named symbols are forbidden in packages.  If this is deliberate, you may want to disable the badfuncs inspection.  If it is not deliberate, check the man pages for the named symbols to see what API functions have replaced the forbidden symbols.  Usually a function is marked as deprecated but still provided in order to allow for backwards compatibility.  Whenever possible the deprecated functions should not be used.


http://artifacts.osci.redhat.com/testing-farm/b8a9b2c1-2731-49d3-8faa-da06d1088f41/work-rpminspectYEN1Xz/rpminspect/execute/data/badfuncs/output.txt


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

llvm-12.0.0-4.el9


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 serge_sans_paille 2021-07-06 14:01:03 UTC
This has been fixed upstream in cba2552bfec1c9d837f7285a743e9e12fa6b043e

Comment 4 Miloš Prchlík 2021-07-08 10:49:49 UTC
Verified with llvm-12.0.0-6.el9, the test is part of the mandatory gating suite.

Comment 5 Tom Stellard 2021-07-15 16:18:01 UTC
*** Bug 1958422 has been marked as a duplicate of this bug. ***


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