opnsense-src/sys
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
..
amd64 amd64: use compiler intrinsics for bsf* and bsr* 2021-02-01 04:53:23 +00:00
arm Remove obsolete code gated on _ARM_ARCH_* 2021-01-28 10:41:45 +00:00
arm64 arm64: Improve DDB backtrace support 2021-02-01 14:15:57 +00:00
bsm
cam
cddl arm64: Improve DDB backtrace support 2021-02-01 14:15:57 +00:00
compat LinuxKPI: add module dependency on firmware(9) 2021-01-30 17:50:26 +00:00
conf newvers: tweak uname to be more useful 2021-01-28 17:44:56 -07:00
contrib zfs: remove incomplete ifdefs for lockless symlink support 2021-02-01 13:18:27 +01:00
crypto
ddb
dev iflib: Free resources in a consistent order during detach 2021-02-01 11:15:54 -05:00
dts Remove DTS files for arm boards we don't support 2021-01-27 10:02:01 +00:00
fs msdosfs: fix vnode leak with msdosfs_rename() 2021-01-31 21:37:44 +00:00
gdb
geom
gnu
i386 Fix a typo. 2021-01-27 21:52:41 -08:00
isa
kern cache: add delayed degenerate path handling 2021-02-01 04:53:23 +00:00
kgssapi
libkern Reimplement strlen 2021-01-29 23:48:26 +00:00
mips mips: fix NLM platforms breakage caused by e0a0a3ef 2021-01-31 23:56:22 -08:00
modules LinuxKPI: implement devres() framework parts and two examples 2021-01-28 16:32:43 +00:00
net iflib: Free resources in a consistent order during detach 2021-02-01 11:15:54 -05:00
net80211
netgraph netgraph/ng_source: Switch queuing framework 2021-01-29 12:34:53 +01:00
netinet Fix LINT kernel builds after 1a714ff204 . 2021-02-01 14:24:15 +01:00
netinet6 Fix unused-function waring when compiling with FIB_ALGO. 2021-01-30 23:25:56 +00:00
netipsec
netpfil pf: duplicate frames only once when using dup-to pf rule 2021-01-28 16:46:44 +01:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc
riscv riscv: add SBI system reset extension 2021-01-27 19:19:54 -04:00
rpc
security
sys fd: add fget_only_user 2021-01-29 11:23:43 +00:00
teken
tests
tools syscalls.master: Add a new syscall type: RESERVED 2021-01-26 18:27:44 +00:00
ufs Revert 2d4422e799, Eliminate lock order reversal in UFS ffs_unmount(). 2021-01-30 00:03:37 -08:00
vm Rename kern_mmap_req to kern_mmap 2021-01-25 21:50:37 +00:00
x86 x86: use compiler intrinsics for bswap* 2021-02-01 04:53:23 +00:00
xdr
xen
Makefile