Skip to content
Commit 054c9939 authored by Johannes Berg's avatar Johannes Berg
Browse files

mac80211: pause TX while changing interface type

syzbot reported a crash that happened when changing the interface
type around a lot, and while it might have been easy to fix just
the symptom there, a little deeper investigation found that really
the reason is that we allowed packets to be transmitted while in
the middle of changing the interface type.

Disallow TX by stopping the queues while changing the type.

Fixes: 34d4bc4d

 ("mac80211: support runtime interface type changes")
Reported-by: default avatar <syzbot+d7a3b15976bf7de2238a@syzkaller.appspotmail.com>
Link: https://lore.kernel.org/r/20210122171115.b321f98f4d4f.I6997841933c17b093535c31d29355be3c0c39628@changeid
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 51225651
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment