On 26 Feb 2026, at 11:40, Eelco Chaudron via dev wrote:

> Coverity reports a data race where netdev_dpdk_vhost_destruct()
> accesses vhost_driver_flags without holding dpdk_mutex, while
> netdev_dpdk_vhost_client_reconfigure() writes to vhost_driver_flags
> with the mutex held (as is done 4 out of 4 times when writing).
>
> This could cause a race if another thread modifies vhost_driver_flags
> through netdev_dpdk_vhost_client_reconfigure() at the same time the
> destructor is running, potentially leading to incorrect socket cleanup.
>
> Fix by capturing the flag value while holding dpdk_mutex, similar to how
> vhost_id is already handled.
>
> Fixes: c1ff66ac80b5 ("netdev-dpdk: vHost client mode and reconnect")
> Signed-off-by: Eelco Chaudron <[email protected]>

Recheck-request: github-robot

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to