linux-stable/drivers/net
Duoming Zhou c9b4e220dd nfp: flower: handle acti_netdevs allocation failure
[ Upstream commit 84e95149bd ]

The kmalloc_array() in nfp_fl_lag_do_work() will return null, if
the physical memory has run out. As a result, if we dereference
the acti_netdevs, the null pointer dereference bugs will happen.

This patch adds a check to judge whether allocation failure occurs.
If it happens, the delayed work will be rescheduled and try again.

Fixes: bb9a8d0311 ("nfp: flower: monitor and offload LAG groups")
Signed-off-by: Duoming Zhou <duoming@zju.edu.cn>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Link: https://lore.kernel.org/r/20240308142540.9674-1-duoming@zju.edu.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:20:43 -04:00
..
appletalk
arcnet arcnet: restoring support for multiple Sohard Arcnet cards 2023-12-13 18:39:07 +01:00
bonding bonding: remove print in bond_verify_device_path 2024-02-05 20:13:03 +00:00
caif
can can: netlink: Fix TDCO calculation using the old data bittiming 2024-02-23 09:12:47 +01:00
dsa net: dsa: microchip: fix register write order in ksz8_ind_write8() 2024-03-15 10:48:15 -04:00
ethernet nfp: flower: handle acti_netdevs allocation failure 2024-03-26 18:20:43 -04:00
fddi
fjes fjes: fix memleaks in fjes_hw_setup 2024-01-31 16:17:06 -08:00
hamradio
hippi
hyperv hv_netvsc: Register VF in netvsc_probe if NET_DEVICE_REGISTER missed 2024-02-23 09:12:46 +01:00
ieee802154
ipa
ipvlan ipvlan: add ipvlan_route_v6_outbound() helper 2023-11-28 17:07:04 +00:00
mctp
mdio
netdevsim netdevsim: avoid potential loop in nsim_dev_trap_report_work() 2024-02-16 19:06:25 +01:00
pcs
phy net: phy: dp83822: Fix RGMII TX delay configuration 2024-03-26 18:20:42 -04:00
plip
ppp ppp_async: limit MRU to 64K 2024-02-16 19:06:27 +01:00
pse-pd
slip
team team: Fix use-after-free when an option instance allocation fails 2023-12-20 17:00:25 +01:00
usb sr9800: Add check for usbnet_get_endpoints 2024-03-26 18:20:40 -04:00
vmxnet3
vxlan
wan
wireguard wireguard: use DEV_STATS_INC() 2023-12-03 07:32:07 +01:00
wireless wifi: rtw88: 8821c: Fix false alarm count 2024-03-26 18:20:39 -04:00
wwan
xen-netback xen-netback: properly sync TX responses 2024-02-23 09:12:38 +01:00
amt.c amt: do not use overwrapped cb area 2024-01-25 15:27:49 -08:00
bareudp.c
dummy.c
eql.c
geneve.c geneve: make sure to pull inner header in geneve_rx() 2024-03-15 10:48:14 -04:00
gtp.c gtp: fix use-after-free and null-ptr-deref in gtp_newlink() 2024-03-06 14:45:10 +00:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c macvlan: Don't propagate promisc change to lower dev in passthru 2023-11-28 17:07:06 +00:00
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c tun: Fix xdp_rxq_info's queue_index when detaching 2024-03-06 14:45:06 +00:00
veth.c veth: try harder when allocating queue memory 2024-03-06 14:45:07 +00:00
virtio_net.c virtio_net: Fix "‘%d’ directive writing between 1 and 11 bytes into a region of size 10" warnings 2024-02-05 20:12:59 +00:00
vrf.c
vsockmon.c
xen-netfront.c