]> 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)
commite87c2d6464cb5ef37c17029f02073a2534a01e5b
treea0fc7a96e2f90ad33f583bc737066757b16dc028
parent26dd1326c3893151c882d91129d7d770e8e53530
regulatory: add NUL to request alpha2

Similar to the ancient commit 7f02b3559a36 ("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