kernel_samsung_a53x/drivers/net/ethernet/qlogic/qed
Dinghao Liu 77b785c587 qed: Fix a potential use-after-free in qed_cxt_tables_alloc
[ Upstream commit b65d52ac9c085c0c52dee012a210d4e2f352611b ]

qed_ilt_shadow_alloc() will call qed_ilt_shadow_free() to
free p_hwfn->p_cxt_mngr->ilt_shadow on error. However,
qed_cxt_tables_alloc() accesses the freed pointer on failure
of qed_ilt_shadow_alloc() through calling qed_cxt_mngr_free(),
which may lead to use-after-free. Fix this issue by setting
p_mngr->ilt_shadow to NULL in qed_ilt_shadow_free().

Fixes: fe56b9e6a8d9 ("qed: Add module with basic common support")
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/r/20231210045255.21383-1-dinghao.liu@zju.edu.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:11:49 +01:00
..
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_chain.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_cxt.c qed: Fix a potential use-after-free in qed_cxt_tables_alloc 2024-11-18 12:11:49 +01:00
qed_cxt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_dcbx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_dcbx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_dev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_dev_api.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_devlink.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_devlink.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_fcoe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_fcoe.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_hsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_hw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_hw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_init_fw_funcs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_init_ops.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_init_ops.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_int.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_int.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_iscsi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_iscsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_iwarp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_iwarp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_l2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_l2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_ll2.c qed: fix LL2 RX buffer allocation 2024-11-08 11:26:09 +01:00
qed_ll2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_mcp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_mcp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_mng_tlv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_ooo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_ooo.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_ptp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_ptp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_rdma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_rdma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_reg_addr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_roce.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_roce.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_selftest.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_selftest.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_sp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_sp_commands.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_spq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_sriov.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_sriov.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_vf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qed_vf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00