Re: [PATCH] Netvsc: Call hv_unmap_memory() in the netvsc_device_remove()

2022-02-08 Thread Tianyu Lan
On 2/3/2022 1:05 AM, Michael Kelley (LINUX) wrote: From: Tianyu Lan Sent: Tuesday, February 1, 2022 8:32 AM 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

RE: [PATCH] Netvsc: Call hv_unmap_memory() in the netvsc_device_remove()

2022-02-02 Thread Michael Kelley (LINUX) via iommu
From: Tianyu Lan Sent: Tuesday, February 1, 2022 8:32 AM > > 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.

RE: [PATCH] Netvsc: Call hv_unmap_memory() in the netvsc_device_remove()

2022-02-01 Thread Haiyang Zhang via iommu
x-ker...@vger.kernel.org; net...@vger.kernel.org > Subject: [PATCH] Netvsc: Call hv_unmap_memory() in the netvsc_device_remove() > > From: Tianyu Lan > > netvsc_device_remove() calls vunmap() inside which should not be > called in the interrupt context. Current code calls hv_

[PATCH] Netvsc: Call hv_unmap_memory() in the netvsc_device_remove()

2022-02-01 Thread Tianyu Lan
From: Tianyu Lan 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