linux/net/wireless
Johannes Berg 9853a55ef1 cfg80211: limit scan results cache size
It's possible to make scanning consume almost arbitrary amounts
of memory, e.g. by sending beacon frames with random BSSIDs at
high rates while somebody is scanning.

Limit the number of BSS table entries we're willing to cache to
1000, limiting maximum memory usage to maybe 4-5MB, but lower
in practice - that would be the case for having both full-sized
beacon and probe response frames for each entry; this seems not
possible in practice, so a limit of 1000 entries will likely be
closer to 0.5 MB.

Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-11-18 08:44:44 +01:00
..
.gitignore
Kconfig
Makefile
ap.c
chan.c cfg80211: add start / stop NAN commands 2016-09-30 13:21:14 +02:00
core.c cfg80211: add add_nan_func / del_nan_func 2016-09-30 13:21:23 +02:00
core.h cfg80211: limit scan results cache size 2016-11-18 08:44:44 +01:00
db.txt
debugfs.c
debugfs.h
ethtool.c
genregdb.awk
ibss.c cfg80211: Add support for static WEP in the driver 2016-09-30 13:19:10 +02:00
lib80211.c
lib80211_crypt_ccmp.c
lib80211_crypt_tkip.c
lib80211_crypt_wep.c
mesh.c
mlme.c cfg80211: add start / stop NAN commands 2016-09-30 13:21:14 +02:00
nl80211.c Merge remote-tracking branch 'net-next/master' into mac80211-next 2016-10-04 09:46:44 +02:00
nl80211.h
ocb.c
radiotap.c
rdev-ops.h cfg80211: allow the user space to change current NAN configuration 2016-09-30 13:21:28 +02:00
reg.c
reg.h
regdb.h
scan.c cfg80211: limit scan results cache size 2016-11-18 08:44:44 +01:00
sme.c cfg80211: Add support for static WEP in the driver 2016-09-30 13:19:10 +02:00
sysfs.c cfg80211: process events caused by suspend before suspending 2016-10-26 07:59:52 +02:00
sysfs.h
trace.c
trace.h cfg80211: allow the user space to change current NAN configuration 2016-09-30 13:21:28 +02:00
util.c cfg80211: add bitrate for 20MHz MCS 9 2016-11-15 14:34:00 +01:00
wext-compat.c cfg80211: Add support for static WEP in the driver 2016-09-30 13:19:10 +02:00
wext-compat.h
wext-core.c
wext-priv.c
wext-proc.c
wext-sme.c cfg80211: Add support for static WEP in the driver 2016-09-30 13:19:10 +02:00
wext-spy.c