Re: [PATCH net-next V6 4/4] virtio-net: synchronize probe with ndo_set_features

2024-08-06 Thread Michael S. Tsirkin
On Tue, Aug 06, 2024 at 10:22:24AM +0800, Jason Wang wrote: > We calculate guest offloads during probe without the protection of > rtnl_lock. This lead to race between probe and ndo_set_features. Fix > this by moving the calculation under the rtnl_lock. > > Signed-off-by: Jason Wang Fixes tag pl

[PATCH net-next V6 4/4] virtio-net: synchronize probe with ndo_set_features

2024-08-05 Thread Jason Wang
We calculate guest offloads during probe without the protection of rtnl_lock. This lead to race between probe and ndo_set_features. Fix this by moving the calculation under the rtnl_lock. Signed-off-by: Jason Wang --- drivers/net/virtio_net.c | 10 +- 1 file changed, 5 insertions(+), 5 d