linux/drivers/net/ethernet
Vinay Kumar Yadav 8080b462b6 chelsio/chtls: fix memory leaks caused by a race
race between user context and softirq causing memleak,
consider the call sequence scenario

chtls_setkey()         //user context
chtls_peer_close()
chtls_abort_req_rss()
chtls_setkey()         //user context

work request skb queued in chtls_setkey() won't be freed
because resources are already cleaned for this connection,
fix it by not queuing work request while socket is closing.

v1->v2:
- fix W=1 warning.

v2->v3:
- separate it out from another memleak fix.

Fixes: cc35c88ae4 ("crypto : chtls - CPL handler definition")
Signed-off-by: Vinay Kumar Yadav <vinay.yadav@chelsio.com>
Link: https://lore.kernel.org/r/20201102173650.24754-1-vinay.yadav@chelsio.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-11-03 13:49:37 -08:00
..
3com networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
8390
adaptec
aeroflex
agere
alacritech
allwinner
alteon
altera
amazon
amd networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
apm
apple
aquantia net: remove unneeded break 2020-10-20 10:28:21 -07:00
arc
atheros
aurora
broadcom bnxt_en: Send HWRM_FUNC_RESET fw command unconditionally. 2020-10-26 18:26:35 -07:00
brocade net: bna: Use fallthrough pseudo-keyword 2020-10-03 17:33:23 -07:00
cadence cadence: force nonlinear buffers to be cloned 2020-10-31 17:01:10 -07:00
calxeda
cavium net: thunderx: Use struct_size() helper in kmalloc() 2020-10-10 10:34:03 -07:00
chelsio chelsio/chtls: fix memory leaks caused by a race 2020-11-03 13:49:37 -08:00
cirrus
cisco net: remove unneeded break 2020-10-20 10:28:21 -07:00
cortina
davicom
dec
dlink
emulex
ezchip
faraday net: ftgmac100: Fix Aspeed ast2600 TX hang issue 2020-10-16 15:36:34 -07:00
freescale dpaa_eth: fix the RX headroom size alignment 2020-11-02 11:21:31 -08:00
fujitsu
google
hisilicon net: hns3: Clear the CMDQ registers before unmapping BAR region 2020-10-26 20:25:04 -07:00
huawei Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-10-05 18:40:01 -07:00
i825xx
ibm powerpc/vnic: Extend "failover pending" window 2020-11-02 16:54:04 -08:00
intel net: remove unneeded break 2020-10-20 10:28:21 -07:00
marvell pci-v5.10-changes 2020-10-22 12:41:00 -07:00
mediatek net: ethernet: mtk-star-emac: select REGMAP_MMIO 2020-10-21 18:11:17 -07:00
mellanox Networking fixes for 5.10-rc2. 2020-10-29 12:55:02 -07:00
micrel net: ksz884x: Use fallthrough pseudo-keyword 2020-10-03 17:33:23 -07:00
microchip
moxa
mscc net: mscc: ocelot: remove duplicate ocelot_port_dev_check 2020-10-13 17:04:43 -07:00
myricom
natsemi
neterion
netronome
ni
nvidia
nxp
oki-semi
packetengines
pasemi
pensando ionic: fix mem leak in rx_empty 2020-10-23 18:37:23 -07:00
qlogic RDMA 5.10 pull request 2020-10-17 11:18:18 -07:00
qualcomm
rdc
realtek r8169: fix issue with forced threading in combination with shared interrupts 2020-10-29 11:49:04 -07: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
seeq
sfc sfc: move initialisation of efx->filter_sem to efx_init_struct() 2020-10-20 21:22:23 -07:00
sgi
silan
sis
smsc
socionext netsec: ignore 'phy-mode' device property on ACPI systems 2020-10-20 15:59:43 -07:00
stmicro net: stmmac: Fix channel lock initialization 2020-10-30 09:51:40 -07:00
sun networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
synopsys
tehuti
ti net: ethernet: ti: cpsw: disable PTPv1 hw timestamping advertisement 2020-11-02 14:17:51 -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
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig
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
Makefile