Description of problem: Our RHEL-8 kernel has support for setting alternative names for network interfaces, introduced in [1]. However, we are missing support for querying the information about the interface using its previously set alternative name. Hence, I'd like to request the backport of [2] which introduces this possibility. Version-Release number of selected component (if applicable): kernel-4.18.0-348.12.2.el8_5 How reproducible: deterministic Steps to Reproduce: 1. ip link add type dummy dummy0 2. ip link prop add dummy0 altname dum0 3. ip link prop add dummy0 altname longalternativeinterfacenameofdummy0 4. ip link show dum0 5. ip link show longalternativeinterfacenameofdummy0 Actual results: ip link show dum0 4: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 66:3e:3b:58:90:66 brd ff:ff:ff:ff:ff:ff ip link show longalternativeinterfacenameofdummy0 Device "longalternativeinterfacenameofdummy0" does not exist. Expected results: Using name "longalternativeinterfacenameofdummy0" should also be usable to query the information about the interface. Additional info: [1] https://github.com/torvalds/linux/commit/7a56493f0620cc1b4cffc9bc59289fdefe76b5f3 [2] https://github.com/torvalds/linux/commit/76c9ac0ee878f6693d398d3a95ccaf85e1f597a6
Checked the bug is fixed. Set TESTED. [root@dell-per730-49 ~]# uname -r 4.18.0-396.g413c.el8.mr2584_220531_1211.x86_64 [root@dell-per730-49 ~]# ip link add type dummy dummy0 [root@dell-per730-49 ~]# ip link prop add dummy0 altname dum0 [root@dell-per730-49 ~]# ip link prop add dummy0 altname longalternativeinterfacenameofdummy0 [root@dell-per730-49 ~]# ip link show dum0 8: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether ce:7e:98:34:a4:0d brd ff:ff:ff:ff:ff:ff altname dum0 altname longalternativeinterfacenameofdummy0 [root@dell-per730-49 ~]# ip link show longalternativeinterfacenameofdummy0 8: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether ce:7e:98:34:a4:0d brd ff:ff:ff:ff:ff:ff altname dum0 altname longalternativeinterfacenameofdummy0
Done code check. Set verified.
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: kernel security, 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/RHSA-2022:7683