]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Merge branch 'net-mlx5e-fix-crashes-in-dynamic-per-channel-stats-and-hv-vhca-agent'
authorPaolo Abeni <pabeni@redhat.com>
Fri, 3 Jul 2026 16:50:33 +0000 (18:50 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Fri, 3 Jul 2026 16:50:33 +0000 (18:50 +0200)
commitd6456743424721a837e1509b912f362caaeecd97
tree294c413bf23937aa82248762b95e896c3e71bd85
parent88c4273ab4c237e2c01e175ba5e9ab62b34eb4dc
parent5a799714e8ca0bce9ea40694f49914cf1adbbaa9
Merge branch 'net-mlx5e-fix-crashes-in-dynamic-per-channel-stats-and-hv-vhca-agent'

Tariq Toukan says:

====================
net/mlx5e: Fix crashes in dynamic per-channel stats and HV VHCA agent

Since per-channel stats were converted to be allocated and published
lazily at first channel open in commit fa691d0c9c08 ("net/mlx5e:
Allocate per-channel stats dynamically at first usage"),
priv->channel_stats[] and priv->stats_nch are filled in
incrementally during interface bring-up. This opened a window in
which the various stats readers - most of them reachable from
userspace via netlink/netdev stats queries - can race with
mlx5e_open_channel() on another CPU and observe partially
initialized state. The HV VHCA stats agent, which is created
before the channels are opened, hits related problems of its own.

This series by Feng fixes the resulting crashes.

V3: https://lore.kernel.org/all/20260622083646.593220-1-tariqt@nvidia.com/
V2: https://lore.kernel.org/all/20260617140127.573117-1-tariqt@nvidia.com/
====================

Link: https://patch.msgid.link/20260630115151.729219-1-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>