Re: [Xen-devel] [PATCH] xen-blkfront: fix kernel panic with blkfront_remove()

2018-11-09 Thread Greg KH
On Thu, Nov 08, 2018 at 04:58:28PM -0800, Manjunath Patil wrote: > If a hot-attaching device fails inside domU[ex:negotiate_mq() returns > with ENOMEM] we clear the blkfront_info struct in talk_to_blkback() > > When we try to detach the device, blkfront_remove() tries to access > blkfront_info lea

[Xen-devel] [PATCH] xen-blkfront: fix kernel panic with blkfront_remove()

2018-11-08 Thread Manjunath Patil
If a hot-attaching device fails inside domU[ex:negotiate_mq() returns with ENOMEM] we clear the blkfront_info struct in talk_to_blkback() When we try to detach the device, blkfront_remove() tries to access blkfront_info leading to kernel panic. Typical call stack involving panic - #10 page_fault