diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-01-09 13:10:42 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-01-09 15:08:21 +0300 |
commit | 4ef8c1c93f848e360754f10eb2e7134c872b6597 (patch) | |
tree | 660da7459953039341b3a597618f7a7e483f6f18 /net/wireless/core.h | |
parent | 9b8e34e211b15af429b72388a8f2b3b1823d172e (diff) | |
download | linux-4ef8c1c93f848e360754f10eb2e7134c872b6597.tar.xz |
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>
Diffstat (limited to 'net/wireless/core.h')
0 files changed, 0 insertions, 0 deletions