android_kernel_oneplus_msm8998/net/wireless
Johannes Berg 3ebbbf7fdc cfg80211: size various nl80211 messages correctly
Ilan reported that sometimes nl80211 messages weren't working if
the frames being transported got very large, which was really a
problem for userspace-to-kernel messages, but prompted me to look
at the code.

Upon review, I found various places where variable-length data is
transported in an nl80211 message but the message isn't allocated
taking that into account. This shouldn't cause any problems since
the frames aren't really that long, apart in one place where two
(possibly very long frames) might not fit.

Fix all the places (that I found) that get variable length data
from the driver and put it into a message to take the length of
the variable data into account. The 100 there is just a safe
constant for the remaining message overhead (it's usually around
50 for most messages.)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: 4ef8c1c93f848e360754f10eb2e7134c872b6597
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
CRs-Fixed: 2028536
Change-Id: I49c2ae1a33c779baf8a6ac8f34369869945d3538
Signed-off-by: Vidyullatha Kanchanapally <vidyullatha@codeaurora.org>
2017-04-11 04:36:15 -07:00
..
.gitignore
ap.c cfg80211: export interface stopping function 2017-02-05 20:38:22 -08:00
chan.c cfg80211: make wdev_list accessible to drivers 2016-11-18 01:20:15 +02:00
core.c cfg80211: export interface stopping function 2017-02-05 20:38:22 -08:00
core.h cfg80211: Rename SAE_DATA to more generic AUTH_DATA 2017-04-11 03:53:46 -07:00
db.txt msm: wlan: Change EIRP value for country China 2017-03-23 16:02:02 +05:30
debugfs.c mac80211: fix some snprintf misuses 2013-10-01 12:16:51 +02:00
debugfs.h
ethtool.c cfg80211: make ethtool the driver's responsibility 2014-06-23 11:05:33 +02:00
genregdb.awk wireless: fixup genregdb.awk for remove of antenna gain from wireless-regd 2014-07-21 12:24:20 +02:00
ibss.c Lots of updates for net-next; along with the usual flurry 2015-03-31 16:39:04 -04:00
Kconfig cfg80211: reg: make CRDA support optional 2015-10-16 09:15:39 +02:00
lib80211.c lib80211: remove unused print_ssid() 2014-10-14 02:18:27 +02:00
lib80211_crypt_ccmp.c hostap: Don't use create_proc_read_entry() 2013-04-29 15:41:56 -04:00
lib80211_crypt_tkip.c hostap: Don't use create_proc_read_entry() 2013-04-29 15:41:56 -04:00
lib80211_crypt_wep.c hostap: Don't use create_proc_read_entry() 2013-04-29 15:41:56 -04:00
Makefile cfg80211: 802.11p OCB mode handling 2014-11-04 13:18:17 +01:00
mesh.c cfg80211: export interface stopping function 2017-02-05 20:38:22 -08:00
mlme.c cfg80211: Rename SAE_DATA to more generic AUTH_DATA 2017-04-11 03:53:46 -07:00
nl80211.c cfg80211: size various nl80211 messages correctly 2017-04-11 04:36:15 -07:00
nl80211.h cfg80211: Specify the reason for connect timeout 2017-03-06 21:19:16 -08:00
ocb.c cfg80211: 802.11p OCB mode handling 2014-11-04 13:18:17 +01:00
radiotap.c radiotap: fix bitmap-end-finding buffer overrun 2013-12-16 12:06:43 +01:00
rdev-ops.h cfg80211/mac80211: disconnect on suspend 2017-02-05 11:26:29 -08:00
reg.c cfg80211: make wdev_list accessible to drivers 2016-11-18 01:20:15 +02:00
reg.h cfg80211: Stop calling crda if it is not responsive 2015-04-01 11:22:38 +02:00
regdb.h
scan.c Merge tag 'lsk-v4.4-16.12-android' into branch 'msm-4.4' 2017-02-28 17:10:49 -08:00
sme.c Merge tag 'lsk-v4.4-17.02-android' into branch 'msm-4.4' 2017-03-18 08:55:10 -07:00
sysfs.c cfg80211: Do not disconnect on suspend 2017-02-06 10:00:20 +05:30
sysfs.h net: misc: Remove extern from function prototypes 2013-10-19 19:12:11 -04:00
trace.c
trace.h cfg80211: export interface stopping function 2017-02-05 20:38:22 -08:00
util.c cfg80211: Specify the reason for connect timeout 2017-03-06 21:19:16 -08:00
wext-compat.c cfg80211: wext: clear sinfo struct before calling driver 2015-06-09 13:54:58 -07:00
wext-compat.h cfg80211-wext: export symbols only when needed 2015-02-28 21:31:09 +01:00
wext-core.c Revert "wext: Fix 32 bit iwpriv compatibility issue with 64 bit Kernel" 2016-09-24 10:07:41 +02:00
wext-priv.c
wext-proc.c
wext-sme.c wireless: Use eth_<foo>_addr instead of memset 2015-03-03 17:01:38 -05:00
wext-spy.c