[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170824.215937.1021389588491858224.davem@davemloft.net>
Date: Thu, 24 Aug 2017 21:59:37 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: stephen@...workplumber.org
Cc: kys@...rosoft.com, haiyangz@...rosoft.com, sthemmin@...rosoft.com,
netdev@...r.kernel.org
Subject: Re: [PATCH] netvsc: fix deadlock betwen link status and removal
From: Stephen Hemminger <stephen@...workplumber.org>
Date: Thu, 24 Aug 2017 16:49:16 -0700
> There is a deadlock possible when canceling the link status
> delayed work queue. The removal process is run with RTNL held,
> and the link status callback is acquring RTNL.
>
> Resolve the issue by using trylock and rescheduling.
> If cancel is in process, that block it from happening.
>
> Fixes: 122a5f6410f4 ("staging: hv: use delayed_work for netvsc_send_garp()")
> Signed-off-by: Stephen Hemminger <sthemmin@...rosoft.com>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists