freebsd-skq/sys
adrian 128603d747 Remove old iv_bss entry from the node table
This may happen on RUN -> SCAN -> RUN -> SCAN state transition:

1. RUN -> SCAN: in ieee80211_sta_join1(): iv_bss will be moved to obss,
   refcnt will be reduced by 2 (default minimum).

Now, if old iv_bss have some extra references (for example, from
unacknowledged probe responses), it will not be freed and will stay
in the node table.

2. SCAN -> RUN.

3. If old iv_bss will not be deleted by the time when the next RUN -> SCAN
   state transition occurs, then sta_leave() will reduce it's reference
   counter once more. As a result, two last users will free it -> this will
   lead to kernel panic.

In this patch old iv_bss entry is explicitly removed from the node table in
ieee80211_sta_join1() (as a result, it will not be processed by sta_leave()).

PR:		kern/199676
Differential Revision:	Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 22:28:42 +00:00
..
amd64 Don't advertise the Intel SMX capability to the guest. 2015-05-02 19:07:49 +00:00
arm Fix the vt(4) framebuffer driver on RPi 2. 2015-05-02 22:48:56 +00:00
arm64 Add pmap_mapbios and pmap_unmapbios. These will be needed to support acpi. 2015-04-29 15:00:43 +00:00
boot Fix the loader for sparc64. 2015-05-01 20:35:09 +00:00
bsm
cam Revert r282227. It is clearly incorrect as it frees an object that is still 2015-04-29 17:18:41 +00:00
cddl Fix misuse of input argument in traverse_visitbp 2015-04-28 22:46:58 +00:00
compat Simplify linux_getcwd(), removing code that was longer used. 2015-04-23 08:41:50 +00:00
conf Fix build by adding ixgbe_x550.c to sys/conf/files for ixgbe. 2015-05-01 03:33:31 +00:00
contrib Move ALTQ from contrib to net/altq. The ALTQ code is for many years 2015-04-16 20:22:40 +00:00
crypto In the version of gcc in the FreeBSD tree, this modification was made to 2015-04-16 17:42:52 +00:00
ddb
dev Add a few local variables to improve readability. 2015-05-03 22:13:55 +00:00
fs Fix the NFS server's handling of a bogus NFSv2 ROOT RPC. 2015-04-25 00:58:24 +00:00
gdb
geom Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
gnu The GNU Amlogic DTS files have some errors (e.g. bad register 2015-04-11 08:17:39 +00:00
i386 Remove support for Xen PV domU kernels. Support for HVM domU kernels 2015-04-30 15:48:48 +00:00
isa
kern nv_malloc can fail in userland. 2015-05-02 18:12:34 +00:00
kgssapi
libkern Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
mips The add_bounce_page() function can be called when loading physical 2015-04-28 06:12:37 +00:00
modules Include makefiles necessary to make ixgbe build with the new code. 2015-04-30 22:56:43 +00:00
net After r281643 an #ifdef IFT_FOO preprocessor directive returns false, 2015-05-02 20:37:40 +00:00
net80211 Remove old iv_bss entry from the node table 2015-05-03 22:28:42 +00:00
netgraph Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
netinet Add a state transition call to show that we have entered TIME_WAIT. 2015-05-01 12:49:03 +00:00
netinet6 Remove #ifdef IFT_FOO. 2015-05-02 20:31:27 +00:00
netipsec Fix the comment. We will not do SPD lookup again, because 2015-04-28 11:03:47 +00:00
netnatm
netpfil Fix KASSERT introduced in r282155. 2015-04-30 21:51:12 +00:00
netsmb
nfs Avoid closing unallocated socket in case socreate fails. 2015-02-28 20:30:29 +00:00
nfsclient Remove some oldnfs remnants. 2015-04-18 16:08:06 +00:00
nfsserver Use M_SIZE() instead of hand-crafted (and mostly correct) NFSMSIZ() macro 2015-01-07 17:22:56 +00:00
nlm
ofed Don't drop the idr lock before verifying that the newly-inserted element 2015-05-02 00:26:38 +00:00
opencrypto Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
pc98 Fix kernel build ${MACHINE} path 2015-04-16 22:34:10 +00:00
powerpc Missed ofw_machdep.c in r282264. 2015-04-30 03:15:07 +00:00
rpc Remove hard limits on number of accepting NFS connections. 2015-04-07 10:25:27 +00:00
security cred: add proc_set_cred helper 2015-03-16 00:10:03 +00:00
sparc64 Update this driver to not save copies of registers that are no longer used 2015-04-24 13:12:04 +00:00
sys Introduce the NV_FLAG_NO_UNIQUE flag. When set, it allows to store 2015-05-02 18:03:47 +00:00
teken mdoc: improvements to SEE ALSO. 2014-12-27 07:07:37 +00:00
tools
ufs Limit the number of cylinder groups that will be searched when 2015-04-24 23:27:50 +00:00
vm Instead of reading, validating and adjusting value of the vm.swap_async_max 2015-05-02 20:27:37 +00:00
x86 Remove support for Xen PV domU kernels. Support for HVM domU kernels 2015-04-30 15:48:48 +00:00
xdr
xen Merge ^/head r279995 through r280029. 2015-03-15 11:58:52 +00:00
Makefile