Commit badabac3 authored by Johannes Berg's avatar Johannes Berg Committed by Greg Kroah-Hartman
Browse files

wifi: mac80211: check basic rates validity



commit ce04abc3 upstream.

When userspace sets basic rates, it might send us some rates
list that's empty or consists of invalid values only. We're
currently ignoring invalid values and then may end up with a
rates bitmap that's empty, which later results in a warning.

Reject the call if there were no valid rates.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Reported-by: default avatar <syzbot+19013115c9786bfd0c4e@syzkaller.appspotmail.com>
Tested-by: default avatar <syzbot+19013115c9786bfd0c4e@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=19013115c9786bfd0c4e


Signed-off-by: default avatarVincenzo Mezzela <vincenzo.mezzela@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cbf2b2ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment