linux-yocto/drivers/net
Bui Quang Minh ccc578d2e1 virtio-net: don't schedule delayed refill worker
commit fcdef3bcbb2c04e06ae89f8faff2cd6416b3a467 upstream.

When we fail to refill the receive buffers, we schedule a delayed worker
to retry later. However, this worker creates some concurrency issues.
For example, when the worker runs concurrently with virtnet_xdp_set,
both need to temporarily disable queue's NAPI before enabling again.
Without proper synchronization, a deadlock can happen when
napi_disable() is called on an already disabled NAPI. That
napi_disable() call will be stuck and so will the subsequent
napi_enable() call.

To simplify the logic and avoid further problems, we will instead retry
refilling in the next NAPI poll.

Fixes: 4bc12818b3 ("virtio-net: disable delayed refill when pausing rx")
Reported-by: Paolo Abeni <pabeni@redhat.com>
Closes: https://lore.kernel.org/526b5396-459d-4d02-8635-a222d07b46d7@redhat.com
Cc: stable@vger.kernel.org
Suggested-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://patch.msgid.link/20260106150438.7425-2-minhquangbui99@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-01-23 11:21:25 +01:00
..
arcnet
bonding
caif
can can: ctucanfd: fix SSP_SRC in cases when bit-rate is higher than 1 MBit. 2026-01-23 11:21:24 +01:00
dsa Revert "dsa: mv88e6xxx: make serdes SGMII/Fiber tx amplitude configurable" 2026-01-17 16:35:28 +01:00
ethernet net: octeon_ep_vf: fix free_irq dev_id mismatch in IRQ rollback 2026-01-23 11:21:17 +01:00
fddi
fjes fjes: Add missing iounmap in fjes_hw_init() 2026-01-08 10:17:12 +01:00
hamradio
hippi
hyperv net: hv_netvsc: reject RSS hash key programming without RX indirection table 2026-01-23 11:21:18 +01:00
ieee802154
ipa
ipvlan
mctp
mdio
netdevsim net: netdevsim: fix inconsistent carrier state after link/unlink 2026-01-17 16:35:28 +01:00
ovpn
pcs
phy net: phy: motorcomm: fix duplex setting error for phy leds 2026-01-23 11:21:17 +01:00
plip
ppp
pse-pd
slip
team
thunderbolt
usb net: usb: pegasus: fix memory leak in update_eth_regs_async() 2026-01-17 16:35:29 +01:00
vmxnet3
vxlan
wan
wireguard
wireless wifi: mac80211_hwsim: fix typo in frequency notification 2026-01-17 16:35:29 +01:00
wwan net: wwan: iosm: Fix memory leak in ipc_mux_deinit() 2026-01-17 16:35:24 +01:00
xen-netback
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c macvlan: fix possible UAF in macvlan_forward_source() 2026-01-23 11:21:16 +01:00
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
netkit.c
nlmon.c
ntb_netdev.c
pfcp.c
rionet.c
Space.c
sungem_phy.c
tap.c
tun_vnet.h
tun.c
veth.c
virtio_net.c virtio-net: don't schedule delayed refill worker 2026-01-23 11:21:25 +01:00
vrf.c
vsockmon.c
xen-netfront.c