mac80211: minstrel_ht: fix out-of-bound in minstrel_ht_set_best_prob_rate
authorKonstantin Khlebnikov <koct9i@gmail.com>
Fri, 29 Jan 2016 08:35:12 +0000 (11:35 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 2 Feb 2016 14:54:49 +0000 (15:54 +0100)
commitf84a93726e0c0c53b5b6dbee96623e7e53e06dd8
tree0437b634ee9a92e5393e9d41cd73b9fe813ba29c
parentf39ea2690bd61efec97622c48323f40ed6e16317
mac80211: minstrel_ht: fix out-of-bound in minstrel_ht_set_best_prob_rate

Patch fixes this splat

BUG: KASAN: slab-out-of-bounds in minstrel_ht_update_stats.isra.7+0x6e1/0x9e0
[mac80211] at addr ffff8800cee640f4 Read of size 4 by task swapper/3/0

Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com>
Link: http://lkml.kernel.org/r/CALYGNiNyJhSaVnE35qS6UCGaSb2Dx1_i5HcRavuOX14oTz2P+w@mail.gmail.com
Acked-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c