summaryrefslogtreecommitdiff
path: root/net/wireless/sysfs.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-11-05 21:18:01 +0400
committerJohannes Berg <johannes.berg@intel.com>2013-11-25 23:51:02 +0400
commite438768ff9b22c83a968e14b79e8c83128e8bfe4 (patch)
tree956366ad035f64af8965c3a737eaa74598d1e1b6 /net/wireless/sysfs.c
parentcc493e4f5296f4da111f25ea4a216bb77270ccc6 (diff)
downloadlinux-e438768ff9b22c83a968e14b79e8c83128e8bfe4.tar.xz
cfg80211: check regulatory request alpha2 early
Currently nl80211 allows userspace to send the kernel a bogus regulatory domain with at most 32 rules set and it won't reject it until after its allocated memory. Let's be smart about it and take advantage that the last_request is now available under RTNL and check if the alpha2 matches an expected request and reject any bogus userspace requests prior to hitting the memory allocator. Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/sysfs.c')
0 files changed, 0 insertions, 0 deletions