summaryrefslogtreecommitdiff
path: root/net/wireless/util.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2016-11-15 11:05:11 (GMT)
committerJohannes Berg <johannes.berg@intel.com>2016-11-18 07:44:44 (GMT)
commit9853a55ef1bb66d7411136046060bbfb69c714fa (patch)
treea8efd65d0ba6529fc0e656ae88efa9507ecccb0e /net/wireless/util.c
parent4fb7f8af1f4c14a2a6cee7c9ff0cf999d918c72d (diff)
downloadlinux-9853a55ef1bb66d7411136046060bbfb69c714fa.tar.xz
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>
Diffstat (limited to 'net/wireless/util.c')
0 files changed, 0 insertions, 0 deletions