lkml.org 
[lkml]   [2018]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 013/310] mac80211: bail out from prep_connection() if a reconfig is ongoing
    Date
    4.9-stable review patch.  If anyone has any objections, please let me know.

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

    From: Luca Coelho <luciano.coelho@intel.com>


    [ Upstream commit f8860ce836f2d502b07ef99559707fe55d90f5bc ]

    If ieee80211_hw_restart() is called during authentication, the
    authentication process will continue, causing the driver to be called
    in a wrong state. This ultimately causes an oops in the iwlwifi
    driver (at least).

    This fixes bugzilla 195299 partly.

    Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=195299
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    net/mac80211/mlme.c | 4 ++++
    1 file changed, 4 insertions(+)

    --- a/net/mac80211/mlme.c
    +++ b/net/mac80211/mlme.c
    @@ -4332,6 +4332,10 @@ static int ieee80211_prep_connection(str
    if (WARN_ON(!ifmgd->auth_data && !ifmgd->assoc_data))
    return -EINVAL;

    + /* If a reconfig is happening, bail out */
    + if (local->in_reconfig)
    + return -EBUSY;
    +
    if (assoc) {
    rcu_read_lock();
    have_sta = sta_info_get(sdata, cbss->bssid);

    \
     
     \ /
      Last update: 2018-04-11 22:17    [W:4.264 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site