opnsense-src/sys/dev
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
..
aac
aacraid
acpi_support
acpica Add missing newlines. 2021-01-28 18:20:00 -05:00
adb
adlink
ae
age
agp
ahci
aic7xxx
al_eth
alc
ale
alpm
altera
amd_ecc_inject
amdgpio
amdpm
amdsbwd
amdsmb
amdsmn
amdtemp
amr
an
arcmsr
asmc
ata
ath
atkbdc
axgbe axgbe: fix some link related issues 2021-01-23 13:51:29 +00:00
backlight
bce
beri
bfe
bge
bhnd
bnxt
bwi
bwn
bxe
cadence
cardbus
cas
ce
cesa
cfe
cfi
chromebook_platform
ciss
coretemp
cp
cpuctl
cpufreq
cxgb cxgb(4): Remove assumption of physically contiguous mbufs. 2021-01-31 12:55:06 -05:00
cxgbe cxgbe(4): Fixes to tx coalescing. 2021-02-01 03:00:09 -08:00
cyapa
dc
dcons
dme
dpaa
dpms
drm2
dwc
dwwdt
e1000 iflib: Free resources in a consistent order during detach 2021-02-01 11:15:54 -05:00
efidev
ena
esp
et
etherswitch
evdev evdev: Make variable-size ioctls return actual length of copyouted data 2021-01-20 23:10:07 +03:00
exca
extres
fb fb_if: remove unused method 2021-01-22 00:18:39 +01:00
fdc
fdt
ffec
filemon
firewire
flash
ftwd
fxp
gem
glxiic
glxsb
goldfish
gpio Revert "Define PNP info after defining driver modules" 2021-01-23 10:59:41 -05:00
gxemul
hdmi
hid hmt: Allow I2C sampling mode support to be compiled out. 2021-01-20 23:10:07 +03:00
hifn
hpt27xx
hptiop
hptmv
hptnr
hptrr
hwpmc
hyperv
ic
ice
ichiic
ichsmb
ichwd
ida
if_wg
iicbus Revert "Define PNP info after defining driver modules" 2021-01-23 10:59:41 -05:00
iir
imcsmb
intel
intpm
io
ioat
iommu
ipmi
ips
ipw
isci
iscsi Make software iSCSI more configurable. 2021-01-28 16:22:45 -05:00
iscsi_initiator
iser
isl
ismt
isp
ispfw
itwd
iwi
iwm
iwn
ixgbe
ixl iflib: Free resources in a consistent order during detach 2021-02-01 11:15:54 -05:00
jedec_dimm
jme
kbd
kbdmux
ksyms
le
led
lge
liquidio
malo
mbox
md
mdio
mem
mfi
mgb
mge
mii
mlx
mlx4
mlx5 Catch up with 6edfd179c8: mechanically rename IFCAP_NOMAP to IFCAP_MEXTPG. 2021-01-29 11:46:24 -08:00
mlxfw
mly
mmc mmcsd(4): properly set BIO error when partition switching fails 2021-01-22 00:18:40 +01:00
mmcnull
mn
mpr
mps
mpt
mrsas
msk
mthca
mvs
mwl
mxge
my
nctgpio
neta
netfpga10g/nf10bmac
netmap netmap: simplify parameter passing 2021-01-24 21:59:02 +00:00
nfe
nfsmb
nge
nmdm
ntb
null
nvd
nvdimm
nvme
nvram
nvram2env
oce
ocs_fc
ofw
otus
ow Revert "Define PNP info after defining driver modules" 2021-01-23 10:59:41 -05:00
pbio
pccard
pccbb
pcf
pci
pms pms: handle maximum size IO with any alignment 2021-01-20 13:59:49 -08:00
powermac_nvram
ppbus
ppc
proto
psci
pst
pty
puc
pwm Revert "Define PNP info after defining driver modules" 2021-01-23 10:59:41 -05:00
qat qat: Add support for separate AAD and output buffers 2021-01-27 15:30:58 -05:00
qlnx
qlxgb
qlxgbe
qlxge
quicc
ral
random
rccgpio
re
rl
rndtest
rt
rtsx
rtwn
safe
safexcel safexcel: Disallow unsupported buffer layouts 2021-01-27 15:31:10 -05:00
sbni
scc
sdhci
sdio
sec
sfxge
sge
siis
sis
sk
smartpqi
smbus
smc
snp
sound
speaker
spibus
ste
stge
sume
superio
sym sym(4): handle mixed tagged/untagged commands gracefully 2021-01-22 00:18:39 +01:00
syscons
tcp_log
tdfx
terasic
ti
tpm
tsec
twa
twe
tws
uart
usb
veriexec
vge
viapm
viawd
videomode
virtio virtio_mmio: Delete a stale #if 0'ed debug print 2021-01-21 02:14:41 +00:00
vkbd
vmd Add support for some more Intel VMD controllers. Some of the 2021-01-28 15:12:14 -08:00
vmgenc
vmware
vnic
vr
vt vt: panic while changing vt font 2021-01-27 01:07:03 +02:00
vte
watchdog
wbwd
wpi
wtap
xdma
xen
xilinx
xl
xz
zlib