android_kernel_samsung_msm8976/net/wireless
Johannes Berg 6c9b68b283 cfg80211: limit scan results cache size
commit 9853a55ef1bb66d7411136046060bbfb69c714fa upstream.

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.

Change-Id: I51ccf509d0448254110dbca73bdaaf4595c50878
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2019-07-27 21:42:43 +02:00
..
.gitignore
Kconfig
Makefile
ap.c
chan.c This is the 3.10.67 stable release 2015-04-24 18:04:40 -07:00
core.c
core.h cfg80211: limit scan results cache size 2019-07-27 21:42:43 +02:00
db.txt Import T713XXU2BQD3 kernel source changes 2017-07-01 12:51:07 +02:00
debugfs.c
debugfs.h
ethtool.c cfg80211: export cfg80211_get_drvinfo from ethtool 2014-10-23 16:12:21 +03:00
ethtool.h
genregdb.awk
ibss.c
lib80211.c
lib80211_crypt_ccmp.c
lib80211_crypt_tkip.c
lib80211_crypt_wep.c
mesh.c
mlme.c
nl80211.c nl80211: check for the required netlink attributes presence 2017-10-19 13:01:46 +00:00
nl80211.h
radiotap.c
rdev-ops.h cfg80211: Add support for aborting an ongoing scan 2016-10-07 12:01:24 +05:30
reg.c cfg80211: add helper reg_get_regdomain() function 2015-03-11 13:17:21 -07:00
reg.h
regdb.h
scan.c cfg80211: limit scan results cache size 2019-07-27 21:42:43 +02:00
sme.c cfg80211: Add option to report the bss entry in connect result 2016-09-07 16:07:24 +05:30
sysfs.c
sysfs.h
trace.c
trace.h cfg80211: Add support for aborting an ongoing scan 2016-10-07 12:01:24 +05:30
util.c cfg80211: Add option to report the bss entry in connect result 2016-09-07 16:07:24 +05:30
wext-compat.c cfg80211: wext: clear sinfo struct before calling driver 2015-06-22 16:55:54 -07:00
wext-compat.h
wext-core.c wext: fix message delay/ordering 2016-03-16 08:41:36 -07:00
wext-priv.c
wext-proc.c
wext-sme.c
wext-spy.c