Bug 1809913

Summary: build new libbpf with latest fixes
Product: Red Hat Enterprise Linux 8 Reporter: Jiri Olsa <jolsa>
Component: libbpfAssignee: Jiri Olsa <jolsa>
Status: CLOSED ERRATA QA Contact: Jean-Tsung Hsiao <jhsiao>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: jhsiao, jmarchan, jshortt, skozina
Target Milestone: rc   
Target Release: 8.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1846820 (view as bug list) Environment:
Last Closed: 2020-04-28 17:01:12 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:
Bug Depends On:    
Bug Blocks: 1710951, 1846820, 1919345    

Description Jiri Olsa 2020-03-04 07:17:35 UTC
build new libbpf with latest fixes for BZ 1802507

Comment 2 Jiri Olsa 2020-03-04 09:46:14 UTC
Jean-Tsung Hsiao, could I get a qa_ack?

thanks,
jirka

Comment 10 Jean-Tsung Hsiao 2020-03-09 15:08:27 UTC
Hi Jiri,
I am assuming libbpf-0.0.4-5.el8.x86_64 is the latest package to be verified.
But, libbpf-devel is missing.
Please advise.
Thanks!
Jean

Comment 11 Jiri Olsa 2020-03-09 16:14:41 UTC
(In reply to Jean-Tsung Hsiao from comment #10)
> Hi Jiri,
> I am assuming libbpf-0.0.4-5.el8.x86_64 is the latest package to be verified.
> But, libbpf-devel is missing.
> Please advise.
> Thanks!
> Jean

hum, I can see devel build in https://errata.devel.redhat.com/advisory/49320/builds

jirka

Comment 12 Jean-Tsung Hsiao 2020-03-09 17:25:59 UTC
(In reply to Jiri Olsa from comment #11)
> (In reply to Jean-Tsung Hsiao from comment #10)
> > Hi Jiri,
> > I am assuming libbpf-0.0.4-5.el8.x86_64 is the latest package to be verified.
> > But, libbpf-devel is missing.
> > Please advise.
> > Thanks!
> > Jean
> 
> hum, I can see devel build in
> https://errata.devel.redhat.com/advisory/49320/builds
> 
> jirka

Got it. It's in CRB.

Comment 13 Jean-Tsung Hsiao 2020-03-09 17:30:10 UTC
Ran make on xdp-tools successfully using the latest libbpf.

[root@netqe24 xdp-tools-0.0.2]# ./configure 
libbpf support: system
[root@netqe24 xdp-tools-0.0.2]# make clean
[root@netqe24 xdp-tools-0.0.2]# make

lib

  util
    CC       params.o
    CC       logging.o
    CC       util.o
In function ‘bpf_find_mntpt_single.constprop’,
    inlined from ‘bpf_find_mntpt.constprop’ at util.c:552:8,
    inlined from ‘bpf_get_work_dir’ at util.c:611:8,
    inlined from ‘get_bpf_root_dir’ at util.c:634:12:
util.c:533:3: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation]
   strncpy(mnt, mntpt, len);
   ^~~~~~~~~~~~~~~~~~~~~~~~
    CC       stats.o

xdp-filter
    CLANG    xdpfilt_blk_udp.o
    LLC      xdpfilt_blk_udp.o
    CLANG    xdpfilt_blk_tcp.o
    LLC      xdpfilt_blk_tcp.o
    CLANG    xdpfilt_blk_ip.o
    LLC      xdpfilt_blk_ip.o
    CLANG    xdpfilt_blk_eth.o
    LLC      xdpfilt_blk_eth.o
    CLANG    xdpfilt_blk_all.o
    LLC      xdpfilt_blk_all.o
    CLANG    xdpfilt_wht_udp.o
    LLC      xdpfilt_wht_udp.o
    CLANG    xdpfilt_wht_tcp.o
    LLC      xdpfilt_wht_tcp.o
    CLANG    xdpfilt_wht_ip.o
    LLC      xdpfilt_wht_ip.o
    CLANG    xdpfilt_wht_eth.o
    LLC      xdpfilt_wht_eth.o
    CLANG    xdpfilt_wht_all.o
    LLC      xdpfilt_wht_all.o
    CC       xdp-filter
[root@netqe24 xdp-tools-0.0.2]# rpm -q libbpf
libbpf-0.0.4-5.el8.x86_64
[root@netqe24 xdp-tools-0.0.2]# uname -r
4.18.0-185.el8.x86_64
[root@netqe24 xdp-tools-0.0.2]#

Comment 15 errata-xmlrpc 2020-04-28 17:01:12 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, 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-2020:1894