Commit eae33a9
virtio-net: synchronize probe with ndo_set_features
[ Upstream commit c392d60 ]
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.
Fixes: 3f93522 ("virtio-net: switch off offloads on demand if possible on XDP set")
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://patch.msgid.link/20240814052228.4654-5-jasowang@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent cb06b26 commit eae33a9
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6603 | 6603 | | |
6604 | 6604 | | |
6605 | 6605 | | |
| 6606 | + | |
| 6607 | + | |
| 6608 | + | |
| 6609 | + | |
| 6610 | + | |
6606 | 6611 | | |
6607 | 6612 | | |
6608 | 6613 | | |
| |||
6611 | 6616 | | |
6612 | 6617 | | |
6613 | 6618 | | |
6614 | | - | |
6615 | | - | |
6616 | | - | |
6617 | | - | |
6618 | | - | |
6619 | 6619 | | |
6620 | 6620 | | |
6621 | 6621 | | |
| |||
0 commit comments