Public bug reported:
After updating to linux-azure 6.8.0-1074.83, TX counters on vxlan
interfaces are wrong. tx_packets stays at 0 and tx_bytes goes up by one
per packet sent. Traffic itself is forwarded fine, it's only the
counters. RX counters are still correct.
We first saw this on linux-aws: 6.8.0-1069.74 is fine, 6.8.0-1070.76 is
broken. Monitoring on our vxlan interfaces dropped from ~10 MB/s TX to
~1.5 kB/s after the update, with no change in actual traffic.
Same on Azure: 6.8.0-1073.82-azure OK 6.8.0-1074.83-azure broken
7.0.0-1020.21-azure OK
Haven't tested generic, but 6.8.0-150 has the same patches so it is
probably affected too.
Steps to reproduce (attached vxlan-stats-repro.sh does this):
ip netns add vxa; ip netns add vxb ip link add va netns vxa type veth
peer name vb netns vxb ip -n vxa addr add 10.99.0.1/24 dev va; ip -n vxa
link set va up ip -n vxb addr add 10.99.0.2/24 dev vb; ip -n vxb link
set vb up ip -n vxa link add vx0 type vxlan id 42 remote 10.99.0.2
dstport 4789 dev va ip -n vxb link add vx0 type vxlan id 42 remote
10.99.0.1 dstport 4789 dev vb ip -n vxa addr add 10.98.0.1/24 dev vx0;
ip -n vxa link set vx0 up ip -n vxb addr add 10.98.0.2/24 dev vx0; ip -n
vxb link set vx0 up ip netns exec vxa ping -c 200 -i 0.01 -s 1000
10.98.0.2 ip -n vxa -s link show vx0
6.8.0-1073-azure: TX: bytes packets errors dropped carrier collsns
205984 206 0 0 0 0
6.8.0-1074-azure: TX: bytes packets errors dropped carrier collsns 207 0
0 0 0 0
Looks like a stats layout mismatch. vxlan was switched to
NETDEV_PCPU_STAT_DSTATS by be226352e8dc (LP: #2169770), and then
8431c602f551 "ip_tunnel: adapt iptunnel_xmit_stats() to
NETDEV_PCPU_STAT_DSTATS" (LP: #2172887, CVE-2026-23459) made the tunnel
xmit path write struct pcpu_dstats. But noble's vxlan still uses
.ndo_get_stats64 = dev_get_tstats64, which reads struct
pcpu_sw_netstats. In noble's pcpu_dstats, rx_drops sits where
pcpu_sw_netstats has tx_packets and tx_packets sits where it has
tx_bytes, which matches what we see.
Upstream doesn't hit this because of 94b601bc4f85 "net: core: Implement
dstats-type stats collections", 3e2f544dd8a3 and 195f88c57737 (vxlan
drops its .ndo_get_stats64 and the core reads dstats). Those aren't in
noble. Either backporting them or giving vxlan a dstats-aware
ndo_get_stats64 should fix it.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: linux-image-6.8.0-1074-azure 6.8.0-1074.83
ProcVersionSignature: User Name 6.8.0-1074.83-azure 6.8.12
Uname: Linux 6.8.0-1074-azure x86_64
AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code 2:
ls: cannot access '/dev/snd/': No such file or directory
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.28.3-0ubuntu0.1
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AzureImageoffer: ubuntu-24_04-lts
AzureImagepublisher: Canonical
AzureImagesku: server
AzureImageversion: 24.04.202611170
AzureVmsize: Standard_B2s
CRDA: N/A
CasperMD5CheckResult: unknown
CloudArchitecture: x86_64
CloudBuildName: server
CloudID: azure
CloudName: azure
CloudPlatform: azure
CloudRegion: westus2
CloudSerial: 20261117
CloudSubPlatform: imds (IMDS)
CurrentDmesg: Error: command ['dmesg'] failed with exit code 1: dmesg: read
kernel buffer failed: Operation not permitted
Date: Mon Nov 23 21:40:42 2026
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lspci:
Lspci-vt:
Lsusb: Error: command ['lsusb'] failed with exit code 1:
Lsusb-t:
Lsusb-v: Error: command ['lsusb', '-v'] failed with exit code 1:
MachineType: Microsoft Corporation Virtual Machine
PciMultimedia:
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
ProcFB: 0 hyperv_drmdrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.8.0-1074-azure
root=PARTUUID=96b537bb-1db9-4e30-9537-d39d2906171b ro console=tty1
console=ttyS0 earlyprintk=ttyS0 nvme_core.io_timeout=240 panic=-1
RelatedPackageVersions:
linux-restricted-modules-6.8.0-1074-azure N/A
linux-backports-modules-6.8.0-1074-azure N/A
linux-firmware N/A
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux-azure
UpgradeStatus: No upgrade log present (probably fresh install)
acpidump:
dmi.bios.date: 01/08/2026
dmi.bios.release: 4.1
dmi.bios.vendor: Microsoft Corporation
dmi.bios.version: Hyper-V UEFI Release v4.1
dmi.board.asset.tag: None
dmi.board.name: Virtual Machine
dmi.board.vendor: Microsoft Corporation
dmi.board.version: Hyper-V UEFI Release v4.1
dmi.chassis.asset.tag: 7783-7084-3265-9085-8269-3286-77
dmi.chassis.type: 3
dmi.chassis.vendor: Microsoft Corporation
dmi.chassis.version: Hyper-V UEFI Release v4.1
dmi.modalias:
dmi:bvnMicrosoftCorporation:bvrHyper-VUEFIReleasev4.1:bd01/08/2026:br4.1:svnMicrosoftCorporation:pnVirtualMachine:pvrHyper-VUEFIReleasev4.1:rvnMicrosoftCorporation:rnVirtualMachine:rvrHyper-VUEFIReleasev4.1:cvnMicrosoftCorporation:ct3:cvrHyper-VUEFIReleasev4.1:skuNone:
dmi.product.family: Virtual Machine
dmi.product.name: Virtual Machine
dmi.product.sku: None
dmi.product.uuid: 8e3ddf36-dfa0-4306-9de3-3ef4c1690c9b
dmi.product.version: Hyper-V UEFI Release v4.1
dmi.sys.vendor: Microsoft Corporation
** Affects: linux (Ubuntu)
Importance: Undecided
Status: New
** Affects: linux-aws (Ubuntu)
Importance: Undecided
Status: New
** Affects: linux-azure (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug cloud-image noble regression-update
** Attachment added: "This script reproduces the issue on an a VM"
https://bugs.launchpad.net/bugs/2175660/+attachment/6020473/+files/vxlan-stats-repro.sh
** Also affects: linux (Ubuntu)
Importance: Undecided
Status: New
** Also affects: linux-aws (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175660
Title:
vxlan tx_packets always 0 and tx_bytes = packet count on noble
6.8.0-1074-azure / 6.8.0-1070-aws
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2175660/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs