]> git.baikalelectronics.ru Git - kernel.git/commit
regulatory: add NUL to request alpha2
authorJohannes Berg <johannes.berg@intel.com>
Thu, 22 Feb 2018 19:55:28 +0000 (20:55 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 22 Feb 2018 19:57:48 +0000 (20:57 +0100)
commit64ca883039a9b8420d12e40fc14c89e1318a5010
treea0fc7a96e2f90ad33f583bc737066757b16dc028
parenta25cb3c86b1a86ea578f3c216cc773c303f0801f
regulatory: add NUL to request alpha2

Similar to the ancient commit 1d94f431eecd ("regulatory: add NUL
to alpha2"), add another byte to alpha2 in the request struct so
that when we use nla_put_string(), we don't overrun anything.

Fixes: a095761f69e2 ("cfg80211: add regulatory netlink multicast group")
Reported-by: Kees Cook <keescook@google.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/regulatory.h