]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
mac80211_hwsim: don't use WQ_MEM_RECLAIM
authorJohannes Berg <johannes.berg@intel.com>
Wed, 24 Jan 2018 07:40:51 +0000 (08:40 +0100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 15 Mar 2018 21:28:52 +0000 (18:28 -0300)
BugLink: http://bugs.launchpad.net/bugs/1756100
commit ce162bfbc0b601841886965baba14877127c7c7c upstream.

We're obviously not part of a memory reclaim path, so don't set the flag.

This also causes a warning in check_flush_dependency() since we end up
in a code path that flushes a non-reclaim workqueue, and we shouldn't do
that if we were really part of reclaim.

Reported-by: syzbot+41cdaf4232c50e658934@syzkaller.appspotmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/net/wireless/mac80211_hwsim.c

index f6d4a50f1bdb8a441a6d20a2d1fe7d4f25ce6636..829ac22b72fc46e61eb0add7078d1b288b697166 100644 (file)
@@ -3455,7 +3455,7 @@ static int __init init_mac80211_hwsim(void)
 
        spin_lock_init(&hwsim_radio_lock);
 
-       hwsim_wq = alloc_workqueue("hwsim_wq",WQ_MEM_RECLAIM,0);
+       hwsim_wq = alloc_workqueue("hwsim_wq", 0, 0);
        if (!hwsim_wq)
                return -ENOMEM;