From: Johannes Berg Date: Tue, 5 May 2015 14:32:29 +0000 (+0200) Subject: mac80211: validate cipher scheme PN length better X-Git-Tag: omap-for-v4.3/legacy-v2-signed~163^2~345^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3a55b5399d55;p=pandora-kernel.git mac80211: validate cipher scheme PN length better Currently, a cipher scheme can advertise an arbitrarily long sequence counter, but mac80211 only supports up to 16 bytes and the initial value from userspace will be truncated. Fix two things: * don't allow the driver to register anything longer than the 16 bytes that mac80211 reserves space for * require userspace to specify a starting value with the correct length (or none at all) Signed-off-by: Johannes Berg --- Reading git-diff-tree failed