From: Luis R. Rodriguez Date: Tue, 5 Nov 2013 17:18:01 +0000 (-0800) Subject: cfg80211: check regulatory request alpha2 early X-Git-Tag: v3.14-rc1~94^2~334^2^2~137 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e438768ff9b22c83a968e14b79e8c83128e8bfe4;p=pandora-kernel.git 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 Signed-off-by: Johannes Berg --- Reading git-diff-tree failed