linux/drivers/net/ethernet
Dan Carpenter d9c70e93ec octeontx2-pf: Fix potential use after free in otx2_tc_add_flow()
This code calls kfree_rcu(new_node, rcu) and then dereferences "new_node"
and then dereferences it on the next line.  Two lines later, we take
a mutex so I don't think this is an RCU safe region.  Re-order it to do
the dereferences before queuing up the free.

Fixes: 68fbff68db ("octeontx2-pf: Add police action for TC flower")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/aNKCL1jKwK8GRJHh@stanley.mountain
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2025-09-25 11:04:34 +02:00
..
3com
8390
actions
adaptec
adi
aeroflex
agere et131x: Add missing check after DMA map 2025-07-17 19:02:55 -07:00
airoha net: airoha: ppe: Do not invalid PPE entries in case of SW hash collision 2025-08-21 11:25:11 +02:00
alacritech
allwinner
alteon
altera
amazon net: Fix typos 2025-07-25 10:29:07 -07:00
amd A treewide cleanup of struct cycle_counter const annotations: 2025-07-29 14:02:53 -07:00
apm
apple
aquantia
arc
asix
atheros net: Use netif_threaded_enable instead of netif_set_threaded in drivers 2025-07-24 18:34:55 -07:00
broadcom bnxt_en: correct offset handling for IPv6 destination address 2025-09-22 17:56:39 -07:00
brocade
cadence net: macb: Fix tx_ptr_lock locking 2025-09-01 13:11:10 -07:00
calxeda
cavium net: liquidio: fix overflow in octeon_init_instr_queue() 2025-09-18 07:47:17 -07:00
chelsio net: Fix typos 2025-07-25 10:29:07 -07:00
cirrus
cisco
cortina
davicom
dec net: Fix typos 2025-07-25 10:29:07 -07:00
dlink eth: sundance: fix endian issues 2025-09-02 15:49:41 -07:00
emulex benet: fix BUG when creating VFs 2025-08-04 17:17:31 -07:00
engleder
ezchip
faraday net: ftgmac100: fix potential NULL pointer access in ftgmac100_phy_disconnect 2025-08-05 16:00:53 -07:00
freescale dpaa2-switch: fix buffer pool seeding for control traffic 2025-09-11 18:51:25 -07:00
fujitsu
fungible
google gve: prevent ethtool ops after shutdown 2025-08-19 18:04:07 -07:00
hisilicon net: hibmcge: fix the np_link_fail error reporting issue 2025-08-08 11:48:49 -07:00
huawei net: Fix typos 2025-07-25 10:29:07 -07:00
i825xx
ibm ibmveth: Add multi buffers rx replenishment hcall support 2025-07-22 15:08:23 +02:00
intel libie: fix string names for AQ error codes 2025-09-24 16:58:54 -07:00
litex
marvell octeontx2-pf: Fix potential use after free in otx2_tc_add_flow() 2025-09-25 11:04:34 +02:00
mediatek net: ethernet: mtk_eth_soc: fix tx vlan tag for llc packets 2025-09-02 16:27:30 -07:00
mellanox net/mlx5e: Fix missing FEC RS stats for RS_544_514_INTERLEAVED_QUAD 2025-09-23 17:17:30 -07:00
meta fbnic: Move phylink resume out of service_task and into open/close 2025-08-27 18:57:08 -07:00
micrel net: Fix typos 2025-07-25 10:29:07 -07:00
microchip microchip: lan865x: Fix LAN8651 autoloading 2025-08-29 19:42:07 -07:00
microsoft Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-07-24 11:10:46 -07:00
moxa
mscc
myricom
natsemi net: natsemi: fix `rx_dropped` double accounting on `netif_rx()` failure 2025-09-15 19:06:25 -07:00
neterion net: Fix typos 2025-07-25 10:29:07 -07:00
netronome Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
ni
nvidia
nxp
oki-semi
packetengines
pasemi
pensando Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
qlogic qed: Don't collect too many protection override GRC elements 2025-09-14 14:25:03 -07:00
qualcomm net: Fix typos 2025-07-25 10:29:07 -07:00
rdc
realtek rtase: Fix Rx descriptor CRC error bit definition 2025-08-14 17:53:12 -07:00
renesas net: Use netif_threaded_enable instead of netif_set_threaded in drivers 2025-07-24 18:34:55 -07:00
rocker
samsung
seeq
sfc sfc: unfix not-a-typo in comment 2025-08-01 14:16:33 -07:00
sgi
silan
sis
smsc net: Fix typos 2025-07-25 10:29:07 -07:00
socionext
stmicro net: stmmac: Set CIC bit only for TX queues with COE 2025-08-26 18:12:42 -07:00
sun net: Fix typos 2025-07-25 10:29:07 -07:00
sunplus
synopsys
tehuti net: Fix typos 2025-07-25 10:29:07 -07:00
ti hsr: hold rcu and dev lock for hsr_get_port_ndev 2025-09-11 11:49:19 +02:00
toshiba
tundra
vertexcom
via
wangxun net: libwx: fix to enable RSS 2025-09-04 13:34:01 -07:00
wiznet
xilinx net: xilinx: axienet: Add error handling for RX metadata pointer retrieval 2025-09-04 07:13:08 -07:00
xircom xirc2ps_cs: fix register access when enabling FullDuplex 2025-08-29 19:05:11 -07:00
xscale
Kconfig
Makefile
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
korina.c
lantiq_etop.c
lantiq_xrx200.c
oa_tc6.c net: ethernet: oa_tc6: Handle failure of spi_setup 2025-08-29 19:42:07 -07:00