linux/drivers/net/ethernet
Dawei Li 69f49527ae net/dpaa2: Avoid explicit cpumask var allocation on stack
[ Upstream commit d33fe1714a ]

For CONFIG_CPUMASK_OFFSTACK=y kernel, explicit allocation of cpumask
variable on stack is not recommended since it can cause potential stack
overflow.

Instead, kernel code should always use *cpumask_var API(s) to allocate
cpumask var in config-neutral way, leaving allocation strategy to
CONFIG_CPUMASK_OFFSTACK.

Use *cpumask_var API(s) to address it.

Signed-off-by: Dawei Li <dawei.li@shingroup.cn>
Link: https://lore.kernel.org/r/20240331053441.1276826-3-dawei.li@shingroup.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-07-05 09:33:51 +02:00
..
3com 3c589_cs: Fix an error handling path in tc589_probe() 2023-05-22 19:17:58 -07:00
8390 net: ethernet: 8390: ne2k-pci: use module_pci_driver() macro 2023-08-10 19:31:57 -07:00
actions net: Remove C45 check in C22 only MDIO bus drivers 2023-01-20 18:12:45 -08:00
adaptec net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
adi net: ethernet: adi: adin1110: Fix uninitialized variable 2023-10-21 11:54:42 +01:00
aeroflex net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
agere et131x: Use pci_dev_id() to simplify the code 2023-08-13 12:30:39 +01:00
alacritech net: ethernet: slicoss: remove redundant increment of pointer data 2023-07-28 15:37:08 -07:00
allwinner net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
alteon net: alteon: remove unused len variable 2023-04-02 13:43:43 +01:00
altera net: altera-tse: make ALTERA_TSE depend on HAS_IOMEM 2023-08-18 10:18:51 -07:00
amazon net: ena: Fix redundant device NUMA node override 2024-06-12 11:12:59 +02:00
amd net: pds_core: Fix possible double free in error handling path 2024-03-15 10:48:21 -04:00
apm net: xgene: Fix unused xgene_enet_of_match warning for !CONFIG_OF 2023-10-21 11:49:31 +01:00
apple net/macmace: Replace zero-length array with DECLARE_FLEX_ARRAY() helper 2023-08-01 14:46:21 -07:00
aquantia net: atlantic: Fix DMA mapping for PTP hwts ring 2024-02-16 19:10:47 +01:00
arc net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
asix net: Replace all spi->chip_select and spi->cs_gpiod references with function call 2023-03-11 12:34:02 +00:00
atheros ethernet: atheros: fix a memleak in atl1e_setup_ring_resources 2024-01-01 12:42:31 +00:00
broadcom bnxt_en: Restore PTP tx_avail count in case of skb_pad() error 2024-06-27 13:49:08 +02:00
brocade bna: ensure the copied buf is NUL terminated 2024-05-17 12:02:02 +02:00
cadence net: macb: fix sleep inside spinlock 2023-09-12 14:58:44 +02:00
calxeda net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
cavium liquidio: Adjust a NULL pointer handling path in lio_vf_rep_copy_packet 2024-06-21 14:38:32 +02:00
chelsio cxgb4: Properly lock TX queue for the selftest. 2024-05-17 12:02:05 +02:00
cirrus cirrus: cs89x0: fix the return value handle and remove redundant dev_warn() for platform_get_irq() 2023-08-02 12:10:39 -07:00
cisco enic: Validate length of nl attributes in enic_set_vf_port 2024-06-12 11:12:55 +02:00
cortina net: ethernet: cortina: Locking fixes 2024-06-12 11:11:52 +02:00
davicom net: dm9051: Use PTR_ERR_OR_ZERO() to simplify code 2023-08-23 18:57:30 -07:00
dec net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
dlink sundance: remove unused variable cnt 2022-11-17 13:18:30 +01:00
emulex rtnetlink: remove redundant checks for nlattr IFLA_BRIDGE_MODE 2023-08-08 15:10:37 -07:00
engleder tsnep: Fix mapping for zero copy XDP_TX action 2024-02-16 19:10:48 +01:00
ezchip net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
faraday net: ftmac100: add multicast filtering possibility 2023-08-11 06:58:31 +01:00
freescale net/dpaa2: Avoid explicit cpumask var allocation on stack 2024-07-05 09:33:51 +02:00
fujitsu net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
fungible eth: add missing xdp.h includes in drivers 2023-08-03 08:38:07 -07:00
google gve: ignore nonrelevant GSO type bits when processing TSO headers 2024-06-21 14:38:35 +02:00
hisilicon net: hns3: add cond_resched() to hns3 ring buffer init process 2024-06-21 14:38:32 +02:00
huawei net: hinic: Fix warning-hinic_set_vlan_fliter() warn: variable dereferenced before check 'hwdev' 2023-09-20 10:54:45 +01:00
i825xx net: ethernet: i825xx: sun3_8256: Add SPDX license identifier 2023-05-16 15:38:07 +02:00
ibm ibmvnic: Free any outstanding tx skbs during scrq reset 2024-07-05 09:33:47 +02:00
intel ice: Rebuild TC queues on VSI queue reconfiguration 2024-07-05 09:33:47 +02:00
litex net: ethernet: litex: add support for 64 bit stats 2023-06-15 22:56:46 -07:00
marvell octeontx2-pf: Fix linking objects into multiple modules 2024-06-27 13:49:08 +02:00
mediatek net: ethernet: mtk_eth_soc: fix WED + wifi reset 2024-04-27 17:11:33 +02:00
mellanox mlxsw: spectrum_buffers: Fix memory corruptions on Spectrum-4 systems 2024-07-05 09:33:46 +02:00
micrel net: ks8851: Fix another TX stall caused by wrong ISR flag handling 2024-05-25 16:22:52 +02:00
microchip net: lan743x: Support WOL at both the PHY and MAC appropriately 2024-06-27 13:49:07 +02:00
microsoft net: mana: Fix possible double free in error handling path 2024-07-05 09:33:49 +02:00
moxa net: moxa: fix endianness-related issues from 'sparse' 2022-09-06 10:24:42 +02:00
mscc net: mscc: ocelot: fix pMAC TX RMON stats for bucket 256-511 and above 2024-01-01 12:42:30 +00:00
myricom net: move gso declarations and functions to their own files 2023-06-10 00:11:41 -07:00
natsemi net/sonic: use dma_mapping_error() for error check 2023-03-21 21:29:34 -07:00
neterion ethernet: s2io: Use ether_addr_to_u64() to convert ethernet address 2023-08-09 15:26:49 -07:00
netronome nfp: flower: handle acti_netdevs allocation failure 2024-03-26 18:19:41 -04:00
ni net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
nvidia forcedeth: Fix an error handling path in nv_probe() 2023-05-22 19:17:28 -07:00
nxp net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
oki-semi net: pch_gbe: Allow build on MIPS_GENERIC kernel 2023-06-08 19:18:32 -07:00
packetengines net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
pasemi net: pasemi: Fix return type of pasemi_mac_start_tx() 2023-03-21 13:48:35 +01:00
pensando ionic: fix use after netif_napi_del() 2024-06-21 14:38:36 +02:00
qlogic qed: avoid truncating work queue length 2024-06-12 11:11:37 +02:00
qualcomm qca_spi: Make interrupt remembering atomic 2024-06-27 13:49:07 +02:00
rdc r6040: Fix kmemleak in probe and remove 2022-12-15 12:48:34 +01:00
realtek r8169: Fix possible ring buffer corruption on fragmented Tx packets. 2024-06-12 11:11:19 +02:00
renesas net: ravb: Always update error counters 2024-04-10 16:35:57 +02:00
rocker rocker: Explicitly mark learned FDB entries as offloaded 2022-11-02 20:45:23 -07:00
samsung net: samsung: sxgbe: Make sxgbe_drv_remove() return void 2023-05-12 08:49:49 +01:00
seeq ethernet: seeq/ether3: don't write directly to netdev->dev_addr 2022-01-26 15:40:01 +00:00
sfc sfc: fix a double-free bug in efx_probe_filters 2024-01-10 17:16:50 +01:00
sgi net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
silan ethernet: use eth_hw_addr_set() in unmaintained drivers 2021-10-18 13:20:38 +01:00
sis net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
smsc net: smc91x: Fix m68k kernel compilation for ColdFire CPU 2024-06-12 11:11:20 +02:00
socionext page_pool: split types and declarations from page_pool.h 2023-08-07 13:05:19 -07:00
stmicro net: stmmac: Assign configured channel value to EXTTS event 2024-06-27 13:49:11 +02:00
sun eth: sungem: remove .ndo_poll_controller to avoid deadlocks 2024-06-12 11:11:51 +02:00
sunplus ethernet: remove superfluous clearing of phydev 2023-03-22 20:47:27 -07:00
synopsys net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
tehuti net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
ti net: ti: icssg-prueth: Fix start counter for ft1 filter 2024-06-12 11:12:57 +02:00
toshiba net: spider_net: Use size_add() in call to struct_size() 2023-11-20 11:58:57 +01:00
tundra ethernet: tundra: free irq when alloc ring failed in tsi108_open() 2022-11-10 15:39:08 +01:00
vertexcom net: vertexcom: mse102x: Silence no spi_device_id warnings 2022-09-26 12:46:16 -07:00
via net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
wangxun net: wangxun: fix to change Rx features 2024-06-12 11:12:13 +02:00
wiznet net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
xilinx net: ll_temac: platform_get_resource replaced by wrong function 2024-04-03 15:28:56 +02:00
xircom xirc2ps_cs: Fix use after free bug in xirc2ps_detach 2023-03-19 10:42:02 +00:00
xscale ptp_ixp46x: convert .adjfreq to .adjfine 2022-11-11 10:58:39 +00:00
dnet.c net: ethernet: dnet: don't call dev_kfree_skb() under spin_lock_irqsave() 2022-12-12 09:56:17 +00:00
dnet.h net/dnet: Delete static version from the driver 2020-03-03 17:54:55 -08:00
ec_bhf.c ethernet: ec_bhf: Remove redundant pci_clear_master 2023-03-24 09:09:28 +00:00
ethoc.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
fealnx.c eth: fealnx: bring back this old driver 2023-03-08 23:22:04 -08:00
jme.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
jme.h jme: remove an unnecessary indirection 2022-05-05 15:53:28 -07:00
Kconfig net: restore alpha order to Ethernet devices in config 2023-03-09 23:36:28 -08:00
korina.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-08-03 14:34:37 -07:00
lantiq_etop.c net: lantiq_etop: don't free skb when returning NETDEV_TX_BUSY 2022-10-24 13:02:18 +01:00
lantiq_xrx200.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
Makefile eth: fealnx: bring back this old driver 2023-03-08 23:22:04 -08:00