kernel_samsung_a53x/net/smc
D. Wythe 1c089c509f net/smc: put sk reference if close work was canceled
[ Upstream commit aa96fbd6d78d9770323b21e2c92bd38821be8852 ]

Note that we always hold a reference to sock when attempting
to submit close_work. Therefore, if we have successfully
canceled close_work from pending, we MUST release that reference
to avoid potential leaks.

Fixes: 42bfba9eaa33 ("net/smc: immediate termination for SMCD link groups")
Signed-off-by: D. Wythe <alibuda@linux.alibaba.com>
Reviewed-by: Dust Li <dust.li@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 11:43:08 +01:00
..
af_smc.c net/smc: fix dangling sock under state SMC_APPFINCLOSEWAIT 2024-11-18 11:43:08 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc.h net/smc: fix dangling sock under state SMC_APPFINCLOSEWAIT 2024-11-18 11:43:08 +01:00
smc_cdc.c net/smc: allow cdc msg send rather than drop it with NULL sndbuf_desc 2024-11-18 11:43:08 +01:00
smc_cdc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_clc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_clc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_close.c net/smc: put sk reference if close work was canceled 2024-11-18 11:43:08 +01:00
smc_close.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_diag.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_ib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_ib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_ism.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_ism.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_llc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_llc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_netns.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_pnet.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_pnet.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_rx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_rx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_tx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_tx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_wr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smc_wr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00