[Bug 1933402] Re: net card set VF and altname display blurred character

Dan Streetman 1933402 at bugs.launchpad.net
Mon Jun 28 22:28:00 UTC 2021


systemd doesn't use iproute2 tooling to set the altnames, it sets them
directly with netlink.

what's the output from udevadm info for one of the affected interfaces?
e.g.

$ udevadm info /sys/class/net/eno1v0

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1933402

Title:
  net card set VF  and altname display blurred  character

Status in kunpeng920:
  New
Status in kunpeng920 ubuntu-20.04-hwe series:
  New
Status in systemd package in Ubuntu:
  Fix Released
Status in systemd source package in Focal:
  In Progress
Status in systemd source package in Groovy:
  Fix Released
Status in systemd source package in Hirsute:
  Fix Released
Status in systemd source package in Impish:
  Fix Released

Bug description:
  [Impact]
  When running with the HWE kernel (5.4 didn't support altnames), altnames containing garbage (uninitialized memory) may get assigned to a NIC. This is 100% reproducible on arm64. The upstream commit message suggests that this has been seen to cause segfaults.

  [Test Case]
  1) echo 1 > /sys/class/net/enp189s0f0/device/sriov_numvfs
  2) ip a
  3)
  10: eno1v0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
      link/ether 1e:d8:e1:e9:ae:25 brd ff:ff:ff:ff:ff:ff
      altname @▒ު▒
      altname enp125s0f0v0
  11: enp189s0f0v0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
      link/ether 76:ea:f4:65:dd:33 brd ff:ff:ff:ff:ff:ff
      altname ▒b▒ު▒
      altname ▒▒▒▒▒▒

  [Fix]
  There's a one liner upstream fix that simply initializes a variable:
  https://github.com/systemd/systemd/commit/61fd7d6720c562c88ab79062ff8d131e5e3c7b1b

  [What Could Go Wrong]
  The fix itself is innocuous - just initializing a variable to NULL. So the real risk here would seem to be limited to the common risks in updating a core package in the Ubuntu distribution.

To manage notifications about this bug go to:
https://bugs.launchpad.net/kunpeng920/+bug/1933402/+subscriptions



More information about the foundations-bugs mailing list