This also affects us on two Azure VMs (Ubuntu 24.04.5 LTS, Switzerland North),
and it is NOT fixed in 7.0.0-1020-azure.
VM A: Standard_B16as_v2, mlx5_core (ConnectX-4 Lx, fw 14.30.5034),
7.0.0-1020-azure. Crash on 2026-11-22 23:41 UTC.
VM B: Standard_E4s_v5, mlx5_core (ConnectX-5, fw 16.30.5034),
7.0.0-1017-azure. Crashes on 2026-10-20 14:03 UTC and 2026-11-09 18:20
UTC.
Every incident starts with the host removing the Accelerated Networking
VF:
hv_netvsc ... eth0: Data path switched from VF: enP...
hv_netvsc ... eth0: VF unregistering: enP...
followed within a second by an Oops in hv_eject_device_work+0x9d with the same
call trace as in the original report:
hv_eject_device_work -> pci_stop_and_remove_bus_device -> pci_stop_bus_device
-> pci_remove_sysfs_dev_files -> pci_remove_resource_files
-> sysfs_remove_bin_file -> kernfs_remove_by_name_ns -> kernfs_find_ns ->
strlen
In our case it is a general protection fault on a non-canonical address
instead of a NULL dereference. On VM B the bad pointer is 0x62696c2f7273752f,
which is the ASCII string "/usr/lib" (little-endian). So kernfs_find_ns() reads
the name of a PCI resource sysfs attribute from memory that has already been
freed and reused. This looks like a use-after-free of the resource attribute
during VF removal rather than a plain NULL pointer.
On 2026-10-20 the journal ends exactly after "VF unregistering" (journald hung
immediately), so that incident is very likely the same bug.
Impact is the same as in the original report: the kworker dies, journald,
systemd unit starts and DNS hang, outbound connections fail, and only a reboot
recovers the VM. The kernel taint flag D is set afterwards.
Workaround: disabling Accelerated Networking on the NIC.
Kernel log excerpts (hostnames anonymised) are attached.
** Attachment added: "Kernel log excerpts from 3 incidents (1017 and 1020)"
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/2172226/+attachment/6021678/+files/lp2172226-traces.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2172226
Title:
linux-azure 7.0.0-1017: NULL pointer dereference in
hv_eject_device_work when the host removes the Accelerated Networking
VF
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/2172226/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs