netvsc: add rcu_read locking to netvsc callback
authorstephen hemminger <stephen@networkplumber.org>
Wed, 11 Jan 2017 17:16:32 +0000 (09:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jan 2017 21:13:53 +0000 (16:13 -0500)
commit0719e72ccb801829a3d735d187ca8417f0930459
treea4f718fefcb15433fa59f6d4add44ae220edb806
parent4ecb1d83f6abe8d49163427f4d431ebe98f8bd5f
netvsc: add rcu_read locking to netvsc callback

The receive callback (in tasklet context) is using RCU to get reference
to associated VF network device but this is not safe. RCU read lock
needs to be held. Found by running with full lockdep debugging
enabled.

Fixes: f207c10d9823 ("hv_netvsc: use RCU to protect vf_netdev")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c