[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180913.103055.374831883600389403.davem@davemloft.net>
Date: Thu, 13 Sep 2018 10:30:55 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: stephen@...workplumber.org
Cc: kys@...rosoft.com, haiyangz@...rosoft.com, netdev@...r.kernel.org,
sthemmin@...rosoft.com
Subject: Re: [PATCH] hv_netvsc: fix schedule in RCU context
From: Stephen Hemminger <stephen@...workplumber.org>
Date: Thu, 13 Sep 2018 08:03:43 -0700
> When netvsc device is removed it can call reschedule in RCU context.
> This happens because canceling the subchannel setup work could (in theory)
> cause a reschedule when manipulating the timer.
>
> To reproduce, run with lockdep enabled kernel and unbind
> a network device from hv_netvsc (via sysfs).
...
> Resolve this by getting RTNL earlier. This is safe because the subchannel
> work queue does trylock on RTNL and will detect the race.
>
> Fixes: 7b2ee50c0cd5 ("hv_netvsc: common detach logic")
> Signed-off-by: Stephen Hemminger <sthemmin@...rosoft.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists