Bug 2166906

Summary: container-tools fails to build with bcc in RHEL8.8
Product: Red Hat Enterprise Linux 8 Reporter: Jindrich Novy <jnovy>
Component: oci-seccomp-bpf-hookAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Edward Shen <weshen>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 8.8CC: bfubel, ctrautma, jmarchan, lfriedma, rdossant, tsweeney, ypu
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: oci-seccomp-bpf-hook-1.2.5-2.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 08:30:34 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 Jindrich Novy 2023-02-03 12:53:50 UTC
Can you please take a look?

https://download.eng.bos.redhat.com/brewroot/work/tasks/1061/50481061/build.log

Comment 2 Jerome Marchand 2023-02-06 08:37:02 UTC
Looks like an issue with gobpf:

# github.com/containers/oci-seccomp-bpf-hook/vendor/github.com/iovisor/gobpf/bcc
_build/src/github.com/containers/oci-seccomp-bpf-hook/vendor/github.com/iovisor/gobpf/bcc/module.go:230:132: not enough arguments in call to (_C2func_bcc_func_load)
	have (unsafe.Pointer, _Ctype_int, *_Ctype_char, *_Ctype_struct_bpf_insn, _Ctype_int, *_Ctype_char, _Ctype_uint, _Ctype_int, *_Ctype_char, _Ctype_uint, nil)
	want (unsafe.Pointer, _Ctype_int, *_Ctype_char, *_Ctype_struct_bpf_insn, _Ctype_int, *_Ctype_char, _Ctype_uint, _Ctype_int, *_Ctype_char, _Ctype_uint, *_Ctype_char, _Ctype_int)

It's already been reported upstream:
https://github.com/iovisor/gobpf/issues/315

And it looks like there is a oci-seccomp-bpf-hook fix upstream too:
https://github.com/containers/oci-seccomp-bpf-hook/commit/245cc45ad45f8024c602696f58ae163d0dc745d5

Comment 3 Jindrich Novy 2023-02-06 09:06:49 UTC
Thank you for clarifying this Jerome!

Comment 6 Joy Pu 2023-02-27 10:21:36 UTC
Checked with oci-seccomp-bpf-hook-1.2.5-2.module+el8.8.0+18083+cd85596b, the build log looks good and the build finished successfully. So move this to verified.

Comment 9 errata-xmlrpc 2023-05-16 08:30:34 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 (Moderate: container-tools:4.0 security and bug fix 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/RHSA-2023:2802

Comment 10 errata-xmlrpc 2023-05-16 08:44:47 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 (Moderate: container-tools:4.0 security and bug fix 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/RHSA-2023:2802