linux/drivers/net/ethernet
Cosmin Ratiu 45bcbd4922 net/mlx5: HWS, don't destroy more bwc queue locks than allocated
hws_send_queues_bwc_locks_destroy destroyed more queue locks than
allocated, leading to memory corruption (occasionally) and warnings such
as DEBUG_LOCKS_WARN_ON(mutex_is_locked(lock)) in __mutex_destroy because
sometimes, the 'mutex' being destroyed was random memory.
The severity of this problem is proportional to the number of queues
configured because the code overreaches beyond the end of the
bwc_send_queue_locks array by 2x its length.

Fix that by using the correct number of bwc queues.

Fixes: 2ca62599aa ("net/mlx5: HWS, added send engine and context handling")
Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-10-17 12:14:07 +02:00
..
3com
8390
actions
adaptec
adi net: ethernet: adi: adin1110: Fix some error handling path in adin1110_read_fifo() 2024-10-07 16:49:43 -07:00
aeroflex net: ethernet: aeroflex: fix potential memory leak in greth_start_xmit_gbit() 2024-10-15 09:59:20 -07:00
agere
alacritech net: alacritech: Partially revert "net: alacritech: Switch to use dev_err_probe()" 2024-09-03 15:28:57 -07:00
allwinner
alteon net: alteon: Convert tasklet API to new bottom half workqueue mechanism 2024-07-31 18:59:46 -07:00
altera
amazon net: ena: Extend customer metrics reporting support 2024-09-12 18:01:17 -07:00
amd net: amd: mvme147: Fix probe banner message 2024-10-09 12:45:51 +01:00
apm
apple net: apple: bmac: Use IRQF_NO_AUTOEN flag in request_irq() 2024-09-12 20:35:04 -07:00
aquantia net: atlantic: convert comma to semicolon 2024-09-06 18:05:53 -07:00
arc
asix
atheros net: ag71xx: remove dead code path 2024-09-13 19:53:47 -07:00
broadcom net: bcmasp: fix potential memory leak in bcmasp_xmit() 2024-10-15 17:10:27 -07:00
brocade bna: adjust 'name' buf size of bna_tcb and bna_ccb structures 2024-07-12 01:56:48 +01:00
cadence net: macb: Avoid 20s boot delay by skipping MDIO bus registration for fixed-link PHY 2024-10-15 10:40:47 -07:00
calxeda
cavium net: thunderx: Remove setting of RX software timestamp 2024-09-09 17:44:41 -07:00
chelsio cxgb4: Remove setting of RX software timestamp 2024-09-06 09:34:18 +01:00
cirrus net: cirrus: use u8 for addr to calm down sparse 2024-09-23 06:58:37 +00:00
cisco enic: Report some per queue statistics in ethtool 2024-09-13 21:17:12 -07:00
cortina
davicom net: dm9051: fix module autoloading 2024-08-27 14:26:04 -07:00
dec move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
dlink net: ethernet: dlink: replace deprecated macro 2024-08-14 12:20:55 +01:00
emulex be2net: Remove unused declarations 2024-09-03 15:38:22 -07:00
engleder tsnep: Remove setting of RX software timestamp 2024-09-03 15:17:48 -07:00
ezchip
faraday net: ftgmac100: fixed not check status from fixed phy 2024-10-09 17:56:55 -07:00
freescale net: enetc: disable NAPI after all rings are disabled 2024-10-11 15:45:11 -07:00
fujitsu
fungible net/funeth: Remove setting of RX software timestamp 2024-09-09 17:44:41 -07:00
google gve: Remove unused declaration gve_rx_alloc_rings() 2024-08-19 17:48:20 -07:00
hisilicon net: hns3: Remove setting of RX software timestamp 2024-09-03 15:17:48 -07:00
huawei net: hinic: use ethtool_sprintf/puts 2024-08-13 11:59:37 +02:00
i825xx
ibm net: ibm: emac: mal: add dcr_unmap to _remove 2024-10-09 19:27:09 -07:00
intel e1000e: change I219 (19) devices to ADP 2024-10-08 14:39:22 -07:00
litex
marvell octeontx2-af: Fix potential integer overflows on integer shifts 2024-10-15 13:32:22 +02:00
mediatek net: ethernet: mtk_eth_soc: fix memory corruption during fq dma init 2024-10-17 12:02:29 +02:00
mellanox net/mlx5: HWS, don't destroy more bwc queue locks than allocated 2024-10-17 12:14:07 +02:00
meta move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
micrel net: ks8851: Fix potential TX stall after interface reopen 2024-07-11 11:52:29 +02:00
microchip net: microchip: vcap api: Fix memory leaks in vcap_api_encode_rule_test() 2024-10-15 18:39:00 -07:00
microsoft dma-mapping updates for linux 6.12 2024-09-19 11:12:49 +02:00
moxa
mscc net: mscc: ocelot: Remove setting of RX software timestamp 2024-09-09 17:44:41 -07:00
myricom
natsemi
neterion
netronome move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ni
nvidia
nxp
oki-semi
packetengines move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
pasemi netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
pensando ionic: Allow XDP program to be hot swapped 2024-09-09 19:18:15 -07:00
qlogic qlcnic: make read-only const array key static 2024-09-11 16:00:54 -07:00
qualcomm netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
rdc
realtek move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
renesas net: ravb: Only advertise Rx/Tx timestamps if hardware supports it 2024-10-15 18:41:10 -07:00
rocker netdev_features: convert NETIF_F_NETNS_LOCAL to dev->netns_local 2024-09-03 11:36:43 +02:00
samsung
seeq net: seeq: Fix use after free vulnerability in ether3 Driver Due to Race Condition 2024-09-19 15:17:30 +02:00
sfc sfc: Don't invoke xdp_do_flush() from netpoll. 2024-10-03 15:42:00 -07:00
sgi
silan
sis
smsc move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
socionext
stmicro net: stmmac: dwmac-tegra: Fix link bring-up sequence 2024-10-15 12:35:17 +02:00
sun net: sunvnet: use ethtool_sprintf/puts 2024-08-12 13:25:38 +01:00
sunplus
synopsys
tehuti netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
ti net: ti: icssg-prueth: Fix race condition for VLAN table access 2024-10-09 12:18:01 +01:00
toshiba netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
tundra
vertexcom net: vertexcom: mse102x: Use ETH_ZLEN 2024-08-29 11:39:35 -07:00
via
wangxun i2c-for-6.12-rc1 2024-09-23 14:34:19 -07:00
wiznet
xilinx net: xilinx: axienet: fix potential memory leak in axienet_start_xmit() 2024-10-15 10:59:23 -07:00
xircom
xscale ixp4xx_eth: Remove setting of RX software timestamp 2024-09-09 17:44:42 -07:00
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c net: ethernet: use ip_hdrlen() instead of bit shift 2024-08-11 04:41:15 +01:00
jme.h
Kconfig net: ethernet: oa_tc6: implement register write operation 2024-09-11 20:53:42 -07:00
korina.c
lantiq_etop.c net: ethernet: lantiq_etop: fix memory disclosure 2024-10-01 10:58:07 +02:00
lantiq_xrx200.c
Makefile net: ethernet: oa_tc6: implement register write operation 2024-09-11 20:53:42 -07:00
oa_tc6.c net: ethernet: oa_tc6: add helper function to enable zero align rx frame 2024-09-11 20:53:45 -07:00