freebsd-dev/sys/dev
Navdeep Parhar 017296dbb6 cxgbe/iw_cxgbe: fix various double-close panics with iWARP sockets.
Sockets representing the TCP endpoints for iWARP connections are
allocated by the ibcore module.  Before this revision they were closed
either by the ibcore module or the iw_cxgbe hardware driver depending on
the state transitions during connection teardown.  This is error prone
and there were cases where both iw_cxgbe and ibcore closed the socket
leading to double-free panics.  The fix is to let ibcore close the
sockets it creates and never do it in the driver.

- Use sodisconnect instead of soclose (preceded by solinger = 0) in the
  driver to tear down an RDMA connection abruptly.  This does what's
  intended without releasing the socket's fd reference.

- Close the socket in ibcore when the iWARP iw_cm_id is destroyed.  This
  works for all kinds of sockets: clients that initiate connections,
  listeners, and sockets accepted off of listeners.

Reviewed by:	Steve Wise @ Open Grid Computing, hselasky@
MFC after:	3 days
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D9796
2017-02-28 19:27:41 +00:00
..
aac Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name) 2017-01-04 20:26:42 +00:00
aacraid Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name) 2017-01-04 20:26:42 +00:00
acpi_support Hide unneeded message under bootverbose. 2017-01-27 14:17:48 +00:00
acpica Fix startup race initialising ACPI CM battery structures on MacBookPro. 2017-02-27 08:36:51 +00:00
adb Force the setting of bit 7 in the sysmouse packet byte 1 to be unsigned. 2017-01-30 02:32:33 +00:00
adlink
advansys Remove dead mentions of CAM target mode APIs from drivers. 2017-02-19 17:27:58 +00:00
ae
age
agp sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
aha Remove dead mentions of CAM target mode APIs from drivers. 2017-02-19 17:27:58 +00:00
ahci Remove dead mentions of CAM target mode APIs from drivers. 2017-02-19 17:27:58 +00:00
aic Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
aic7xxx Fix LUN enabling on wildcard target, as done by CTL. 2017-02-26 19:25:33 +00:00
al_eth sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
alc alc: Add Killer E2500 support 2017-01-16 03:03:47 +00:00
ale
alpm
altera Merge enhancements to the ALTERA Avalon bus generic device attachment 2017-01-28 13:25:06 +00:00
amdpm
amdsbwd the rest of changes intended to be committed in r306290 2016-09-24 07:59:54 +00:00
amdsmb
amdtemp Fix the deciKelvin to Celsius conversion in kernel. 2016-05-22 13:58:32 +00:00
amr Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name) 2017-01-04 20:26:42 +00:00
an sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
arcmsr sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
asmc [asmc] Add support for MacBook Pro 11,2 2017-02-17 18:49:18 +00:00
ata Remove dead mentions of CAM target mode APIs from drivers. 2017-02-19 17:27:58 +00:00
ath [ath] sigh, how'd I miss this. 2017-02-10 07:16:56 +00:00
atkbdc [psm] Fix calculation for clickpad softbuttons at the top 2017-02-15 02:52:43 +00:00
auxio Consistently use device_t 2016-08-09 19:32:06 +00:00
axgbe Port the Linux AMX 10G network driver to FreeBSD as axgbe. It is unlikely 2017-02-15 13:56:04 +00:00
bce sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
beri sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
bfe Check m_getcl() return value. 2016-10-25 16:28:30 +00:00
bge bge: Force chipid to 5720 A0 for 5717 C0 in an early place 2016-06-01 05:15:11 +00:00
bhnd - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
bktr bktr(4): double assignment. 2017-02-23 16:18:57 +00:00
bm
bnxt bnxt: propagate RSS hash type to the network stack. 2017-02-28 02:27:51 +00:00
buslogic sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
bvm
bwi net80211 drivers: fix rate setup for EAPOL frames, obtain Tx parameters 2017-02-26 20:49:35 +00:00
bwn net80211 drivers: fix rate setup for EAPOL frames, obtain Tx parameters 2017-02-26 20:49:35 +00:00
bxe 1. state checks in bxe_tx_mq_start_locked() and bxe_tx_mq_start() to sync threads during interface down or detach. 2017-02-27 23:38:51 +00:00
cadence
cardbus
cas
ce dev/ce: double assignment. 2017-02-23 15:30:21 +00:00
cesa Remove remaining ifdefs from CESA header 2017-02-02 06:07:39 +00:00
cfe Sync CFE interface with upstream cfe-1.4.2 release. 2016-08-01 16:26:08 +00:00
cfi
chromebook_platform chromebook_platform: catch up with ig4iic -> ig4iic_pci in r310621 2017-02-25 15:55:46 +00:00
ciss In the same vein as r311350, fix whitespace in handling of XPT_PATH_INQ in 2017-01-05 03:08:57 +00:00
cm sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
cmx
coretemp Fix the deciKelvin to Celsius conversion in kernel. 2016-05-22 13:58:32 +00:00
cp sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
cpuctl Increase the max allowed size of the microcode update blob for x86. 2016-11-11 18:57:41 +00:00
cpufreq Add generic device-tree cpufreq driver. 2016-09-06 20:43:26 +00:00
cs
ctau sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
cx sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
cxgb Use inet_ntoa_r() instead of inet_ntoa() throughout the kernel 2017-02-16 20:47:41 +00:00
cxgbe cxgbe/iw_cxgbe: fix various double-close panics with iWARP sockets. 2017-02-28 19:27:41 +00:00
cy
cyapa add iic interface to ig4 driver, move isl and cyapa to iicbus 2016-10-30 12:15:33 +00:00
dc
dcons
de sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
digi
dme Remove outdated comment. 2016-11-17 14:43:13 +00:00
dpaa Simplify the page tracking for VA<->PA translations. 2016-11-16 05:24:42 +00:00
dpms
dpt Remove EISA support from dpt. Remove known EISA models from 2017-02-16 21:57:13 +00:00
drm
drm2 Really revert 312923 this time 2017-01-28 16:40:51 +00:00
dwc EXTRES: Add OF node as argument to all <foo>_get_by_ofw_<bar>() functions. 2016-07-10 18:28:15 +00:00
e1000 Restore PBA setup for igb(4) class devices. 2017-02-19 05:06:29 +00:00
ed sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
efidev Do not try to create /dev/efi device node before devfs is initialized. 2016-10-16 06:07:43 +00:00
en
ep Remove EISA support for ep driver. Left in place EISA strings that are 2017-02-16 21:56:51 +00:00
esp Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name) 2017-01-04 20:26:42 +00:00
et
etherswitch etherswitch: Fix RT305x vlan group operation 2017-02-20 08:10:41 +00:00
evdev [evdev] Fix build for older versions of clang 2016-12-26 17:48:13 +00:00
ex
exca Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
extres Do not check divider length if we have a div table. 2017-02-23 05:33:20 +00:00
fatm sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
fb Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
fdc Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
fdt - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
fe sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
ffec Add definitions for the IEEE-1588 registers. 2017-02-18 18:27:28 +00:00
filemon Avoid taking PROC_LOCK in syscalls if not being traced. 2016-08-12 16:05:53 +00:00
firewire Remove some locking not needed for modern CAM. 2017-02-28 05:24:06 +00:00
flash [mx25l] add new device id. 2016-07-21 15:48:41 +00:00
fxp
gem
glxiic
glxsb
gpio [gpioths] new driver for temperature/humidity sensor DHT11 2017-01-16 15:36:36 +00:00
gxemul gxemul: 2017-02-06 11:37:20 +00:00
hatm
hdmi Add support for audio on I2S based DesignWare HDMI controllers. 2016-12-29 14:08:24 +00:00
hifn
hme
hpt27xx Clean redundant MIN/MAX declarations in some HighPoint drivers. 2017-02-10 15:18:41 +00:00
hptiop sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
hptmv sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
hptnr Clean redundant MIN/MAX declarations in some HighPoint drivers. 2017-02-10 15:18:41 +00:00
hptrr Clean redundant MIN/MAX declarations in some HighPoint drivers. 2017-02-10 15:18:41 +00:00
hwpmc Fix PMC architecture check to handle later IPAs including Skylake 2017-01-04 02:15:03 +00:00
hyperv hyperv/hn: Simplify RNDIS packet data offset calculation. 2017-02-28 09:50:34 +00:00
ic - Remove i8255.h because it's pc98 device. 2017-01-29 03:34:49 +00:00
ichiic [ig4] Add ACPI platform support for ig4 driver 2016-12-26 22:13:43 +00:00
ichsmb Add some device IDs found in my new laptop. 2016-11-09 08:57:59 +00:00
ichwd
ida Remove support for EISA in the ida driver. Remove references to 2017-02-16 21:56:57 +00:00
if_ndis
iicbus sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
iir Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name) 2017-01-04 20:26:42 +00:00
intel [intelspi] Add SPI driver for Intel BayTrail SoC 2016-12-27 22:37:24 +00:00
intpm intpm: clean up intsmb_bread and intsmb_pcall 2016-11-11 15:08:12 +00:00
io
ioat ioat(4): Compile on i386 2016-12-04 04:04:57 +00:00
ipmi
ips
ipw ipw: switch to ieee80211_add_channel() 2016-05-19 22:19:35 +00:00
isci Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name) 2017-01-04 20:26:42 +00:00
iscsi Freeze CAM SIM when request is postponed due to MaxCmdSN. 2017-02-17 04:34:17 +00:00
iscsi_initiator Use getsock_cap() instead of deprecated fgetsock(). 2017-01-13 18:36:46 +00:00
iser Make the iSCSI parameter negotiation more flexible. 2016-08-25 05:22:53 +00:00
isl add iic interface to ig4 driver, move isl and cyapa to iicbus 2016-10-30 12:15:33 +00:00
ismt
isp Send TERMINATE to firmware when aborting active ATIO. 2017-02-27 08:20:28 +00:00
ispfw
iwi iwi, ral, zyd: fix possible use-after-free. 2017-02-17 23:20:22 +00:00
iwm net80211 drivers: fix rate setup for EAPOL frames, obtain Tx parameters 2017-02-26 20:49:35 +00:00
iwn net80211 drivers: fix rate setup for EAPOL frames, obtain Tx parameters 2017-02-26 20:49:35 +00:00
ixgb Consistently use device_t 2016-08-09 19:32:06 +00:00
ixgbe Fix reference to free memory in ixgbe/if_media.c 2017-01-20 17:16:48 +00:00
ixl ixl(4): Update to 1.7.12-k 2017-02-10 01:04:11 +00:00
jedec_ts jedec_ts: fix slave address check 2017-02-21 12:24:31 +00:00
jme
joy
kbd Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
kbdmux [evdev] Add evdev support to kbdmux(4) driver 2016-11-15 04:12:19 +00:00
ksyms
le sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
led
lge
lmc lmc(4): fix the build without the bpf device 2016-10-01 22:21:10 +00:00
malo
mbox
mc146818
md sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
mdio
mem
mfi Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name) 2017-01-04 20:26:42 +00:00
mge
mii Add preliminary support for the RTL8153. 2016-10-31 05:58:11 +00:00
mk48txx
mlx Remove references to EISA support in mlx. The driver never supported 2017-02-16 21:56:32 +00:00
mlx4 Improve code readability and fix compilation error when using clang 4.x. 2017-02-15 18:31:09 +00:00
mlx5 Make "desc" pointer non-constant inside the mlx5_core_diagnostics_entry 2017-01-30 08:35:15 +00:00
mly In the same vein as r311350, fix whitespace in handling of XPT_PATH_INQ in 2017-01-05 03:08:57 +00:00
mmc Fix some more overly long lines, whitespace and other bugs according to 2017-02-04 19:35:38 +00:00
mn
mpr Initialize a stack variable in mprsas_get_sas_address_for_sata_disk 2017-01-30 19:49:08 +00:00
mps Rework the debug print API. Event printing no longer gets special handling. 2017-01-19 21:47:50 +00:00
mpt "Buses" is the preferred plural of "bus" 2017-01-15 17:54:01 +00:00
mrsas Fix a typo introduced in r306024. 2017-01-23 21:09:27 +00:00
mse Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
msk Remove NULL checks after M_WAITOK allocations from msk(4). 2016-08-09 15:51:11 +00:00
mvs Remove dead mentions of CAM target mode APIs from drivers. 2017-02-19 17:27:58 +00:00
mwl [net80211] RX parameter shuffle in net80211 in preparation for 4x4 NICs and 160MHz channels. 2017-02-20 02:08:08 +00:00
mxge mxge: Setup mbuf flowid before calling tcp_lro_rx(). 2016-05-12 03:36:49 +00:00
my
nand - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
ncr sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
nctgpio
ncv
netfpga10g/nf10bmac
netmap sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
nfe
nfsmb
nge
nmdm
nsp
ntb Pretend we support some IOCTLs to not scary upper layers. 2017-01-11 20:23:45 +00:00
null Add support for encrypted kernel crash dumps. 2016-12-10 16:20:39 +00:00
nvd Report random flash storage as non-rotating to GEOM_DISK. 2017-01-12 08:53:10 +00:00
nvme Remove obsolete comment after prior rev. 2017-02-19 17:38:17 +00:00
nvram
nvram2env [nvram2env] split implementation into generic & MIPS-based code 2016-07-24 08:35:45 +00:00
nxge nxge(4): Remove useless self-assignment. 2016-06-03 15:33:21 +00:00
oce Update oce to version 11.0.50.0 2016-09-22 22:51:11 +00:00
ofw Convert PCIe Hot Plug to using pci_request_feature 2017-02-25 06:11:59 +00:00
otus net80211 drivers: fix rate setup for EAPOL frames, obtain Tx parameters 2017-02-26 20:49:35 +00:00
ow ow_temp: Update the temperature visible via the sysctl atomically, rather 2016-12-22 00:09:53 +00:00
patm sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
pbio
pccard sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
pccbb Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
pcf
pci Convert PCIe Hot Plug to using pci_request_feature 2017-02-25 06:11:59 +00:00
pcn
pdq Remove EISA attachment (fea) from pdq driver. Remove vestiges of 2017-02-16 21:57:08 +00:00
pms sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
powermac_nvram
ppbus sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
ppc sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
proto
psci Add ACPI support to the PSCI driver. This checks the Fixed ACPI Description 2016-12-07 14:24:53 +00:00
pst
pty Provide counter_warning(9) KPI which allows to issue limited number of 2016-07-21 16:34:56 +00:00
puc Fix device delete child function. 2016-10-17 10:20:38 +00:00
qlxgb
qlxgbe add bus_dmamap_unload in ql_free_dmabuf() 2017-02-21 23:32:27 +00:00
qlxge net: Use M_HASHTYPE_OPAQUE_HASH if the mbuf flowid has hash properties 2016-06-07 04:51:50 +00:00
quicc
ral net80211 drivers: fix rate setup for EAPOL frames, obtain Tx parameters 2017-02-26 20:49:35 +00:00
random Revert previous commit, until issue with sparc64 resolved. 2016-06-09 14:44:05 +00:00
rc
rccgpio Fix rcc_gpio_modify_bits(). Obviously (1 << 0) is not the same as 0. 2016-12-31 02:23:15 +00:00
re Disable CLKREQ for ASPM since re(4) doesn't implement link level power saving. 2016-10-27 02:20:13 +00:00
rl Add support for the TP-Link TG-3468 v2. 2016-09-21 14:15:15 +00:00
rndtest
rp
rt rt_attach(): double assignment. 2017-02-23 18:15:04 +00:00
rtwn net80211 drivers: fix rate setup for EAPOL frames, obtain Tx parameters 2017-02-26 20:49:35 +00:00
safe
sbni sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
scc
sdhci Fix typos in bootverbose printfs... display the write-protect pin info, 2017-02-21 21:21:58 +00:00
sec
sf
sfxge sfxge(4): compact the first hot part of RxQ control 2017-01-27 11:59:02 +00:00
sge
siba Switch mips/sentry5 to bhnd(4), and unify with mips/broadcom 2016-06-04 19:53:47 +00:00
siis Remove dead mentions of CAM target mode APIs from drivers. 2017-02-19 17:27:58 +00:00
sio Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
sis
sk
smbus smb: fix SMB_READB, SMB_READW, SMB_PCALL to work as documented 2016-11-11 14:41:02 +00:00
smc
sn sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
snp
sound Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
speaker
spibus [spibus] small code refactoring 2017-01-16 15:23:55 +00:00
ste
stg
stge
sym sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
syscons Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
tdfx
terasic
ti
tl
tpm Consistently use device_t 2016-08-09 19:32:06 +00:00
trm Remove dead mentions of CAM target mode APIs from drivers. 2017-02-19 17:27:58 +00:00
tsec Add support for NXP/Freescale etsec2 ethernet controller 2016-08-30 01:58:49 +00:00
twa In the same vein as r311350, fix whitespace in handling of XPT_PATH_INQ in 2017-01-05 03:08:57 +00:00
twe
tws Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name) 2017-01-04 20:26:42 +00:00
tx
txp
uart Allow setting access-width for UART registers. 2017-02-27 20:08:42 +00:00
ubsec
usb Add compatible string. 2017-02-28 14:42:57 +00:00
utopia
vge
viapm
viawd
videomode
virtio vtnet: don't update VLAN filter when parent is not running 2017-02-13 21:44:29 +00:00
vkbd
vmware/vmxnet3 Spell VMXNET3_LEGACY_TX correctly. 2017-02-18 06:18:14 +00:00
vnic Add the folowing set accessor functions for recently-added members of ifnet 2017-01-31 16:12:31 +00:00
vr
vt Un-break vt(4) for {powerpc,powerpc64,sparc64} LINT kernel builds 2017-02-15 17:33:03 +00:00
vte
vx sys/dev: Replace zero with NULL for pointers. 2017-02-20 03:43:12 +00:00
vxge vxge(4): Yet another (minor) mismatch. 2017-02-23 18:56:31 +00:00
watchdog
wb
wbwd
wi wi: fix a typo. 2016-05-20 08:58:06 +00:00
wpi net80211 drivers: fix rate setup for EAPOL frames, obtain Tx parameters 2017-02-26 20:49:35 +00:00
wtap
xdma Add parenthesis. 2016-12-30 16:26:54 +00:00
xe
xen xen/gntdev: prevent unsynchronized accesses to the map entry 2017-02-27 15:31:15 +00:00
xilinx ofw_spi: Parse property for the SPI mode and CS polarity. 2016-12-18 14:54:20 +00:00
xl