opnsense-src/sys/dev/ixl
Sai Rajesh Tallamraju 38bfc6dee3 iflib: Free resources in a consistent order during detach
Memory and PCI resources are freed with no particular order.  This could
cause use-after-frees when detaching following a failed attach.  For
instance, iflib_tx_structures_free() frees ctx->ifc_txqs[] but
iflib_tqg_detach() attempts to access this array. Similarly, adapter
queues gets freed by IFDI_QUEUES_FREE() but IFDI_DETACH() attempts to
access adapter queues to free PCI resources.

MFC after:	2 weeks
Sponsored by:	NetApp, Inc.
Differential Revision:	https://reviews.freebsd.org/D27634
2021-02-01 11:15:54 -05:00
..
i40e_adminq.c ixl(4): Add FW recovery mode support and other things 2020-06-09 22:42:54 +00:00
i40e_adminq.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_adminq_cmd.h ixl(4): Add support for X710-T*L devices 2020-09-01 23:16:38 +00:00
i40e_alloc.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_common.c ixl(4): Add support for X710-T*L devices 2020-09-01 23:16:38 +00:00
i40e_dcb.c ixl(4): Add FW recovery mode support and other things 2020-06-09 22:42:54 +00:00
i40e_dcb.h ixl(4): Add FW recovery mode support and other things 2020-06-09 22:42:54 +00:00
i40e_devids.h ixl(4): Add support for X710-T*L devices 2020-09-01 23:16:38 +00:00
i40e_hmc.c ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_hmc.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_lan_hmc.c ixl(4): Add FW recovery mode support and other things 2020-06-09 22:42:54 +00:00
i40e_lan_hmc.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_nvm.c ixl(4): Add FW recovery mode support and other things 2020-06-09 22:42:54 +00:00
i40e_osdep.c ixl(4): Add FW recovery mode support and other things 2020-06-09 22:42:54 +00:00
i40e_osdep.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_prototype.h ixl(4): Add support for X710-T*L devices 2020-09-01 23:16:38 +00:00
i40e_register.h ixl(4): Add FW recovery mode support and other things 2020-06-09 22:42:54 +00:00
i40e_status.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_type.h ixl(4): Add support for X710-T*L devices 2020-09-01 23:16:38 +00:00
iavf.h iavf(4): Finish rename/rebrand internally 2018-10-15 17:23:41 +00:00
iavf_vc.c ixl/iavf(4): Update remaining references of "num_queues" to "num_rx_queues" 2018-11-01 17:29:14 +00:00
if_iavf.c iflib: ensure that tx interrupts enabled and cleanups 2021-01-07 14:07:35 -08:00
if_ixl.c iflib: Free resources in a consistent order during detach 2021-02-01 11:15:54 -05:00
ixl.h ixl(4): Add FW recovery mode support and other things 2020-06-09 22:42:54 +00:00
ixl_debug.h iavf(4): Finish rename/rebrand internally 2018-10-15 17:23:41 +00:00
ixl_iw.c - Stop iflib(4) from leaking MSI messages on detachment by calling 2019-01-30 13:21:26 +00:00
ixl_iw.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
ixl_iw_int.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
ixl_pf.h ixl(4): Add support for X710-T*L devices 2020-09-01 23:16:38 +00:00
ixl_pf_i2c.c ixl(4): Add FW recovery mode support and other things 2020-06-09 22:42:54 +00:00
ixl_pf_iflib.c ixl(4): Add FW recovery mode support and other things 2020-06-09 22:42:54 +00:00
ixl_pf_iov.c ixl(4): Add FW recovery mode support and other things 2020-06-09 22:42:54 +00:00
ixl_pf_iov.h ixl/iavf(4): Change ixlv to iavf and update it to use iflib(9) 2018-10-12 22:40:54 +00:00
ixl_pf_main.c ixl: Permit 802.1ad frames to pass though the chip 2021-01-19 16:01:09 +01:00
ixl_pf_qmgr.c ixl/iavf(4): Change ixlv to iavf and update it to use iflib(9) 2018-10-12 22:40:54 +00:00
ixl_pf_qmgr.h ixl/iavf(4): Change ixlv to iavf and update it to use iflib(9) 2018-10-12 22:40:54 +00:00
ixl_txrx.c ixl(4): Add FW recovery mode support and other things 2020-06-09 22:42:54 +00:00
virtchnl.h ixl(4): Add support for X710-T*L devices 2020-09-01 23:16:38 +00:00