linux/drivers/net/ethernet/broadcom/bnxt
Vadim Fedorenko 927069d5c4 bnxt_en: fix module unload sequence
Recent updates to the PTP part of bnxt changed the way PTP FIFO is
cleared, skbs waiting for TX timestamps are now cleared during
ndo_close() call. To do clearing procedure, the ptp structure must
exist and point to a valid address. Module destroy sequence had ptp
clear code running before netdev close causing invalid memory access and
kernel crash. Change the sequence to destroy ptp structure after device
close.

Fixes: 8f7ae5a851 ("bnxt_en: improve TX timestamping FIFO configuration")
Reported-by: Taehee Yoo <ap420073@gmail.com>
Closes: https://lore.kernel.org/netdev/CAMArcTWDe2cd41=ub=zzvYifaYcYv-N-csxfqxUvejy_L0D6UQ@mail.gmail.com/
Signed-off-by: Vadim Fedorenko <vadfed@meta.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Tested-by: Taehee Yoo <ap420073@gmail.com>
Link: https://patch.msgid.link/20250430170343.759126-1-vadfed@meta.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-05-01 06:58:20 -07:00
..
Makefile
bnxt.c bnxt_en: fix module unload sequence 2025-05-01 06:58:20 -07:00
bnxt.h bnxt_en: delay pci_alloc_irq_vectors() in the AER path 2025-04-30 13:03:21 +01:00
bnxt_coredump.c bnxt_en: Fix out-of-bound memcpy() during ethtool -w 2025-04-30 13:03:21 +01:00
bnxt_coredump.h bnxt_en: Add FW trace coredump segments to the coredump 2024-11-18 19:48:55 -08:00
bnxt_dcb.c
bnxt_dcb.h
bnxt_debugfs.c bnxt_en: avoid truncation of per rx run debugfs filename 2024-08-14 20:36:17 -07:00
bnxt_debugfs.h
bnxt_devlink.c bnxt_en: Add devlink support for ENABLE_ROCE nvm parameter 2025-03-18 10:25:22 +01:00
bnxt_devlink.h bnxt_en: Add devlink support for ENABLE_ROCE nvm parameter 2025-03-18 10:25:22 +01:00
bnxt_dim.c
bnxt_ethtool.c bnxt_en: Fix ethtool -d byte order for 32-bit values 2025-04-30 13:03:21 +01:00
bnxt_ethtool.h bnxt_en: ethtool: Support unset l4proto on ip4/ip6 ntuple rules 2024-11-06 17:39:59 -08:00
bnxt_fw_hdr.h
bnxt_hsi.h bnxt_en: Update firmware interface to 1.10.3.97 2025-03-18 10:25:22 +01:00
bnxt_hwmon.c
bnxt_hwmon.h
bnxt_hwrm.c bnxt_en: Adjust logging of firmware messages in case of released token in __hwrm_send() 2024-06-13 08:05:46 -07:00
bnxt_hwrm.h
bnxt_nvm_defs.h
bnxt_ptp.c bnxt_en: improve TX timestamping FIFO configuration 2025-04-25 18:47:16 -07:00
bnxt_ptp.h bnxt_en: improve TX timestamping FIFO configuration 2025-04-25 18:47:16 -07:00
bnxt_sriov.c eth: bnxt: remove most dependencies on RTNL 2025-03-06 12:59:45 -08:00
bnxt_sriov.h
bnxt_tc.c bnxt_en: flower: validate control flags 2024-04-24 19:57:19 -07:00
bnxt_tc.h
bnxt_ulp.c eth: bnxt: remove most dependencies on RTNL 2025-03-06 12:59:45 -08:00
bnxt_ulp.h RDMA v6.14 merge window pull request 2025-01-24 12:21:28 -08:00
bnxt_vfr.c eth: bnxt: remove most dependencies on RTNL 2025-03-06 12:59:45 -08:00
bnxt_vfr.h
bnxt_xdp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-03-26 09:32:10 -07:00
bnxt_xdp.h eth: bnxt: do not update checksum in bnxt_xdp_build_skb() 2025-03-10 13:31:11 -07:00