Re: [PATCH v2] nvme-pci: fix dbbuf_sq_db point to freed memory

2019-01-06 Thread Lulina (A)
Thanks for replying to my email, my description in the last email was not clear enough, so here's a supplementary note. The NVME device I used support DBBUF, but the nvme_admin_dbbuf request returned a failure that eventually led to the kernel crash. The problem occurs as follows: 1, Device

Re: [PATCH v2] nvme-pci: fix dbbuf_sq_db point to freed memory

2019-01-04 Thread Christoph Hellwig
On Fri, Dec 21, 2018 at 01:07:25AM +, Lulina (A) wrote: > The case is that nvme device support NVME_CTRL_OACS_DBBUF_SUPP, and > return failed when the driver sent nvme_admin_dbbuf. The nvmeq->dbbuf_sq_db > point to freed memory, as nvme_dbbuf_set is called after nvme_dbbuf_init. But we never

[PATCH v2] nvme-pci: fix dbbuf_sq_db point to freed memory

2018-12-20 Thread Lulina (A)
The case is that nvme device support NVME_CTRL_OACS_DBBUF_SUPP, and return failed when the driver sent nvme_admin_dbbuf. The nvmeq->dbbuf_sq_db point to freed memory, as nvme_dbbuf_set is called after nvme_dbbuf_init. Signed-off-by: lulina diff --git a/drivers/nvme/host/pci.c