aboutsummaryrefslogtreecommitdiff
path: root/sbin/ipfw
diff options
context:
space:
mode:
authorSai Rajesh Tallamraju <stallamr@netapp.com>2021-02-01 16:13:00 +0000
committerMark Johnston <markj@FreeBSD.org>2021-02-01 16:15:54 +0000
commit38bfc6dee33bedb290e1ea2540f97a86fe3caee0 (patch)
tree658bf78bf8a6a06949001762892a2a635d2c3b01 /sbin/ipfw
parent45ecda8ebf80bb341aa3b4955810518ae6fab158 (diff)
downloadsrc-38bfc6dee33bedb290e1ea2540f97a86fe3caee0.tar.gz
src-38bfc6dee33bedb290e1ea2540f97a86fe3caee0.zip
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
Diffstat (limited to 'sbin/ipfw')
0 files changed, 0 insertions, 0 deletions