lkml.org 
[lkml]   [2018]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.15 006/146] mac80211_hwsim: dont use WQ_MEM_RECLAIM
    Date
    4.15-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Johannes Berg <johannes.berg@intel.com>

    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>

    ---
    drivers/net/wireless/mac80211_hwsim.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/net/wireless/mac80211_hwsim.c
    +++ b/drivers/net/wireless/mac80211_hwsim.c
    @@ -3455,7 +3455,7 @@ static int __init init_mac80211_hwsim(vo

    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;


    \
     
     \ /
      Last update: 2018-03-13 18:06    [W:20.880 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site