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 1995082

Summary: failed loading xdp program in netns
Product: Red Hat Enterprise Linux 8 Reporter: Mingyu Shi <mshi>
Component: iprouteAssignee: Andrea Claudi <aclaudi>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.5CC: aclaudi, atragler, jiji, lmiksik, network-qe
Target Milestone: betaKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: iproute-5.12.0-4.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2009640 (view as bug list) Environment:
Last Closed: 2021-11-09 19:37:07 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: 2009640    

Description Mingyu Shi 2021-08-18 12:13:59 UTC
Description of problem:
Similar with https://bugzilla.redhat.com/show_bug.cgi?id=1990402 , the action doesn't work when is in a netns

Version-Release number of selected component (if applicable):
iproute-5.12.0-2.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
dnf install -y kernel-selftests-internal
cd /usr/libexec/kselftests/net
ip link add type veth
ip netns add ns0
ip link set veth0 netns ns0
ip netns exec ns0 bash # enter ns0
ip link set dev veth0 xdp object ../bpf/xdp_dummy.o section xdp_dummy

Actual results:
Continuing without mounted eBPF fs. Too old kernel?
mkdir (null)/globals failed: No such file or directory

Expected results:
No failure

Additional info:

Comment 1 Andrea Claudi 2021-09-20 17:02:40 UTC
Jiri and Toke provided an in-depth analysis for this issue and a fix on bz#2005346.

Comment 7 Andrea Claudi 2021-09-30 09:55:42 UTC
Fix accepted upstream. A brew build containing it and ready for test is here: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=39993423

Comment 11 Mingyu Shi 2021-10-08 06:23:42 UTC
# enter netns ns0 and load the file successfully:
[14:19:13@mshi-850 ~]0# cd /usr/libexec/kselftests/net
[14:19:20@mshi-850 /usr/libexec/kselftests/net]0# ip netns exec ns0 bash # enter ns0
bash: .bkrconfig: No such file or directory
[root@mshi-850 net]# ip link set dev veth0 xdp object ../bpf/xdp_dummy.o section xdp_dummy
[root@mshi-850 net]# exit

[14:20:02@mshi-850 /usr/libexec/kselftests/net]1# ip link set dev veth1 xdp object ../bpf/xdp_dummy.o section xdp_dummy
[14:20:14@mshi-850 /usr/libexec/kselftests/net]0# ip l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 52:54:00:82:ab:62 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 52:54:00:50:ca:94 brd ff:ff:ff:ff:ff:ff
6: bond101: <NO-CARRIER,BROADCAST,MULTICAST,MASTER,UP> mtu 1500 qdisc noqueue master ovs-system state DOWN mode DEFAULT group default qlen 1000
    link/ether 42:9c:b5:e8:f6:32 brd ff:ff:ff:ff:ff:ff
7: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether f6:65:99:ed:ec:a3 brd ff:ff:ff:ff:ff:ff
9: veth1@if8: <BROADCAST,MULTICAST> mtu 1500 xdp qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether a2:9b:0e:a1:27:ac brd ff:ff:ff:ff:ff:ff link-netns ns0
    prog/xdp id 12 tag 3fed666785a57e53 jited 
[14:20:17@mshi-850 /usr/libexec/kselftests/net]0# ip link set dev veth2 xdp object ../bpf/xdp_dummy.o section xdp_dummy
Cannot find device "veth2"
[14:20:22@mshi-850 /usr/libexec/kselftests/net]1# rpm -q iproute
iproute-5.12.0-4.el8.x86_64

Comment 14 Mingyu Shi 2021-10-08 10:10:37 UTC
Same with #comment11

Comment 16 errata-xmlrpc 2021-11-09 19:37:07 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 (iproute 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:4389