linux/drivers/net/ethernet
Colin Ian King 7648398017 octeontx2-af: Fix access of iter->entry after iter object has been kfree'd
The call to pc_delete_flow can kfree the iter object, so the following
dev_err message that accesses iter->entry can accessmemory that has
just been kfree'd.  Fix this by adding a temporary variable 'entry'
that has a copy of iter->entry and also use this when indexing into
the array mcam->entry2target_pffunc[]. Also print the unsigned value
using the %u format specifier rather than %d.

Addresses-Coverity: ("Read from pointer after free")
Fixes: 55307fcb92 ("octeontx2-af: Add mbox messages to install and delete MCAM rules")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20201118143803.463297-1-colin.king@canonical.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-11-20 11:07:57 -08:00
..
3com networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
8390 ne2k: Fix Typo in RW-Bugfix 2020-10-31 16:17:02 -07:00
adaptec
aeroflex
agere
alacritech
allwinner net: allwinner: remove redundant irqsave and irqrestore in hardIRQ 2020-09-23 17:33:52 -07:00
alteon net: alteon: convert tasklets to use new tasklet_setup() API 2020-09-14 13:02:37 -07:00
altera
amazon drivers/net/ethernet: remove incorrectly formatted doc 2020-09-25 16:29:00 -07:00
amd networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
apm
apple
aquantia net: atlantic: Remove unnecessary conversion to bool 2020-11-10 15:24:49 -08:00
arc drivers/net/ethernet: add some basic kdoc tags 2020-09-25 16:29:00 -07:00
atheros atl1e: fix error return code in atl1e_probe() 2020-11-18 11:02:15 -08:00
aurora
broadcom devlink: move flash end and begin to core devlink 2020-11-19 21:41:02 -08:00
brocade net: bna: Use fallthrough pseudo-keyword 2020-10-03 17:33:23 -07:00
cadence net: macb: Fix passing zero to 'PTR_ERR' 2020-11-14 12:35:33 -08:00
calxeda drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
cavium liquidio: cn68xx: Remove duplicated include 2020-11-02 17:32:13 -08:00
chelsio Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-12 16:54:48 -08:00
cirrus
cisco net: remove unneeded break 2020-10-20 10:28:21 -07:00
cortina drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
davicom drivers: net: davicom Add COMPILE_TEST support 2020-11-02 15:52:22 -08:00
dec drivers: net: tulip: Fix set but not used with W=1 2020-11-02 15:50:04 -08:00
dlink net: sundance: convert tasklets to use new tasklet_setup() API 2020-09-14 13:02:37 -07:00
emulex
ezchip
faraday Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-19 19:08:46 -08:00
freescale enetc: Fix endianness issues for enetc_qos 2020-11-19 22:05:42 -08:00
fujitsu
google gve: Replace zero-length array with flexible-array member 2020-10-30 16:57:41 -05:00
hisilicon net: hns3: rename gl_adapt_enable in struct hns3_enet_coalesce 2020-11-17 11:39:21 -08:00
huawei devlink: move request_firmware out of driver 2020-11-19 21:40:57 -08:00
i825xx lib82596: convert to dma_alloc_noncoherent 2020-09-25 06:20:45 +02:00
ibm Revert ibmvnic merge do_change_param_reset into do_reset 2020-11-06 17:27:50 -08:00
intel devlink: move flash end and begin to core devlink 2020-11-19 21:41:02 -08:00
marvell octeontx2-af: Fix access of iter->entry after iter object has been kfree'd 2020-11-20 11:07:57 -08:00
mediatek net: ethernet: mtk-star-emac: fix error return code in mtk_star_enable() 2020-11-12 17:58:37 -08:00
mellanox net/mlx4_en: Remove unused performance counters 2020-11-20 10:59:39 -08:00
micrel net: ksz884x: Use fallthrough pseudo-keyword 2020-10-03 17:33:23 -07:00
microchip Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-19 19:08:46 -08:00
moxa
mscc net: mscc: ocelot: deny changing the native VLAN from the prepare phase 2020-11-02 17:09:07 -08:00
myricom
natsemi net: natsemi: Replace in_interrupt() usage. 2020-09-29 14:02:54 -07:00
neterion net: neterion: s2io: Replace in_interrupt() for context detection 2020-10-31 09:55:16 -07:00
netronome devlink: move request_firmware out of driver 2020-11-19 21:40:57 -08:00
ni net: nixge: convert tasklets to use new tasklet_setup() API 2020-09-14 13:02:38 -07:00
nvidia forcedeth: fix excluded_middle.cocci warnings 2020-11-03 17:47:04 -08:00
nxp
oki-semi net: pch_gbe: remove unneeded variable retval in __pch_gbe_suspend 2020-11-10 15:26:31 -08:00
packetengines drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
pasemi
pensando devlink: move flash end and begin to core devlink 2020-11-19 21:41:02 -08:00
qlogic qed: fix ILT configuration of SRC block 2020-11-17 16:35:32 -08:00
qualcomm net: qualcomm: rmnet: Fix incorrect receive packet handling during cleanup 2020-11-16 16:34:49 -08:00
rdc
realtek r8169: remove not needed check in rtl8169_start_xmit 2020-11-18 17:26:31 -08:00
renesas ravb: Fix bit fields checking in ravb_hwtstamp_get() 2020-10-27 17:14:33 -07:00
rocker Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-10-05 18:40:01 -07:00
samsung drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
seeq sgiseeq: convert to dma_alloc_noncoherent 2020-09-25 06:20:45 +02:00
sfc sfc: support GRE TSO on EF100 2020-11-13 15:33:30 -08:00
sgi
silan net: silan: convert tasklets to use new tasklet_setup() API 2020-09-14 13:02:38 -07:00
sis drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
smsc drivers: net: smsc: Add COMPILE_TEST support 2020-11-12 14:49:40 -08:00
socionext net: netsec: add xdp tx return bulking support 2020-11-20 09:57:33 -08:00
stmicro Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-19 19:08:46 -08:00
sun networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
synopsys drivers/net/ethernet: clean up unused assignments 2020-09-25 16:29:00 -07:00
tehuti drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
ti Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-19 19:08:46 -08:00
toshiba
tundra
via Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-10-05 18:40:01 -07:00
wiznet
xilinx drivers: net: xilinx_emaclite: Add COMPILE_TEST support 2020-11-12 14:32:31 -08:00
xircom
xscale
Kconfig
Makefile
dnet.c drivers/net/ethernet: clean up unused assignments 2020-09-25 16:29:00 -07:00
dnet.h
ec_bhf.c
ethoc.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
fealnx.c
jme.c net: jme: convert tasklets to use new tasklet_setup() API 2020-09-14 13:02:37 -07:00
jme.h
korina.c net: korina: cast KSEG0 address to pointer in kfree 2020-10-19 17:00:00 -07:00
lantiq_etop.c
lantiq_xrx200.c net: lantiq: Add locking for TX DMA channel 2020-09-23 18:01:03 -07:00