lkml.org 
[lkml]   [2020]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 87/89] net/smc: cancel event worker during device removal
    Date
    From: Karsten Graul <kgraul@linux.ibm.com>

    commit ece0d7bd74615773268475b6b64d6f1ebbd4b4c6 upstream.

    During IB device removal, cancel the event worker before the device
    structure is freed.

    Fixes: a4cf0443c414 ("smc: introduce SMC as an IB-client")
    Reported-by: syzbot+b297c6825752e7a07272@syzkaller.appspotmail.com
    Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
    Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
    Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    net/smc/smc_ib.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/net/smc/smc_ib.c
    +++ b/net/smc/smc_ib.c
    @@ -561,6 +561,7 @@ static void smc_ib_remove_dev(struct ib_
    smc_pnet_remove_by_ibdev(smcibdev);
    smc_ib_cleanup_per_ibdev(smcibdev);
    ib_unregister_event_handler(&smcibdev->event_handler);
    + cancel_work_sync(&smcibdev->port_event_work);
    kfree(smcibdev);
    }


    \
     
     \ /
      Last update: 2020-03-17 12:00    [W:5.924 / U:0.216 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site