Re: [PATCH net v2] net: openvswitch: fix data race in ovs_vport_get_upcall_stats
From: Eric Dumazet
Date: Wed Jan 21 2026 - 08:45:21 EST
On Wed, Jan 21, 2026 at 8:32 AM David Yang <mmyangfl@xxxxxxxxx> wrote:
>
> In ovs_vport_get_upcall_stats(), some statistics protected by
> u64_stats_sync, are read and accumulated in ignorance of possible
> u64_stats_fetch_retry() events. These statistics are already accumulated
> by u64_stats_inc(). Fix this by reading them into temporary variables
> first.
>
> Fixes: 1933ea365aa7 ("net: openvswitch: Add support to count upcall packets")
> Signed-off-by: David Yang <mmyangfl@xxxxxxxxx>
Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>