linux-stable/drivers/net/hyperv
Tianyu Lan 23587481ef Netvsc: Call hv_unmap_memory() in the netvsc_device_remove()
[ Upstream commit b539324f6f ]

netvsc_device_remove() calls vunmap() inside which should not be
called in the interrupt context. Current code calls hv_unmap_memory()
in the free_netvsc_device() which is rcu callback and maybe called
in the interrupt context. This will trigger BUG_ON(in_interrupt())
in the vunmap(). Fix it via moving hv_unmap_memory() to netvsc_device_
remove().

Fixes: 846da38de0 ("net: netvsc: Add Isolation VM support for netvsc driver")
Signed-off-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 13:58:05 +02:00
..
hyperv_net.h net: netvsc: Add Isolation VM support for netvsc driver 2021-12-20 18:01:09 +00:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile hv_netvsc: Add XDP support 2020-01-25 10:43:19 +01:00
netvsc.c Netvsc: Call hv_unmap_memory() in the netvsc_device_remove() 2022-04-08 13:58:05 +02:00
netvsc_bpf.c bpf: Let bpf_warn_invalid_xdp_action() report more info 2021-12-13 22:28:27 +01:00
netvsc_drv.c hv_netvsc: Add check for kvmalloc_array 2022-03-15 21:57:53 -07:00
netvsc_trace.c
netvsc_trace.h
rndis_filter.c net: netvsc: Add Isolation VM support for netvsc driver 2021-12-20 18:01:09 +00:00