]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mac80211: fix SSID copy on IBSS JOIN
authorAntonio Quartulli <ordex@autistici.org>
Fri, 26 Oct 2012 16:54:25 +0000 (18:54 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Oct 2012 20:52:18 +0000 (22:52 +0200)
commitbadecb001a310408d3473b1fc2ed5aefd0bc92a9
tree3c39faabf192afce572be53b96bb65ad07ea7183
parentf7fbf70ee9db6da6033ae50d100e017ac1f26555
mac80211: fix SSID copy on IBSS JOIN

The 'ssid' field of the cfg80211_ibss_params is a u8 pointer and
its length is likely to be less than IEEE80211_MAX_SSID_LEN most
of the time.

This patch fixes the ssid copy in ieee80211_ibss_join() by using
the SSID length to prevent it from reading beyond the string.

Cc: stable@vger.kernel.org
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
[rewrapped commit message, small rewording]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c