Jason Wang
73e872466d
virtio-net: fix race between set queues and probe
...
commit 25266128fe16d5632d43ada34c847d7b8daba539 upstream.
A race were found where set_channels could be called after registering
but before virtnet_set_queues() in virtnet_probe(). Fixing this by
moving the virtnet_set_queues() before netdevice registering. While at
it, use _virtnet_set_queues() to avoid holding rtnl as the device is
not even registered at that time.
Cc: stable@vger.kernel.org
Fixes: a220871be6 ("virtio-net: correctly enable multiqueue")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230725072049.617289-1-jasowang@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-11 11:53:52 +02:00
..
appletalk
arcnet
bonding
bonding: reset bond's flags when down link is P2P device
2023-08-11 11:53:48 +02:00
caif
can
can: gs_usb: gs_can_close(): add missing set of CAN state to CAN_STATE_STOPPED
2023-08-11 11:53:50 +02:00
dsa
net: dsa: mt7530: fix trapping frames on non-MT7621 SoC MT7530 switch
2023-06-28 10:18:39 +02:00
ethernet
benet: fix return value check in be_lancer_xmit_workarounds()
2023-08-11 11:53:48 +02:00
fddi
net: defxx: Fix missing err handling in dfx_init()
2023-01-18 11:41:13 +01:00
fjes
hamradio
hamradio: baycom_epp: Fix return type of baycom_send_packet()
2023-01-18 11:41:35 +01:00
hippi
hyperv
ieee802154
ieee802154: hwsim: Fix possible memory leaks
2023-06-28 10:18:38 +02:00
ipvlan
ipvlan: Fix return value of ipvlan_queue_xmit()
2023-07-27 08:37:12 +02:00
netdevsim
phy
Revert "net: phy: dp83867: perform soft reset and retain established link"
2023-06-28 10:18:40 +02:00
plip
net: plip: don't call kfree_skb/dev_kfree_skb() under spin_lock_irq()
2022-12-14 11:30:48 +01:00
ppp
ppp: associate skb with a device at tx
2023-01-18 11:41:37 +01:00
slip
team
team: reset team's flags when down link is P2P device
2023-08-11 11:53:48 +02:00
usb
net: usb: qmi_wwan: add support for Compal RXM-G1
2023-06-21 15:44:10 +02:00
vmxnet3
wan
net: lapbether: only support ethernet devices
2023-06-21 15:44:12 +02:00
wimax
wireless
wifi: iwlwifi: mvm: avoid baid size integer overflow
2023-07-27 08:37:42 +02:00
xen-netback
xen/netback: Fix buffer overrun triggered by unusual packet
2023-08-08 19:56:37 +02:00
dummy.c
eql.c
geneve.c
gtp.c
gtp: Fix use-after-free in __gtp_encap_destroy().
2023-07-27 08:37:11 +02:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
net: loopback: use NET_NAME_PREDICTABLE for name_assign_type
2023-01-18 11:40:49 +01:00
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
net/net_failover: fix txq exceeding warning
2023-04-05 11:16:44 +02:00
netconsole.c
nlmon.c
ntb_netdev.c
ntb_netdev: Use dev_kfree_skb_any() in interrupt context
2023-01-18 11:41:16 +01:00
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
net: add vlan_get_protocol_and_depth() helper
2023-05-30 12:44:01 +01:00
thunderbolt.c
tun.c
tun: avoid double free in tun_free_netdev
2023-04-05 11:16:41 +02:00
veth.c
virtio_net.c
virtio-net: fix race between set queues and probe
2023-08-11 11:53:52 +02:00
vrf.c
vsockmon.c
vxlan.c
vxlan: calculate correct header length for GPE
2023-08-11 11:53:47 +02:00
xen-netfront.c
xen-netfront: Fix NULL sring after live migration
2022-12-14 11:30:45 +01:00