Files
linux/drivers
Keith Busch 062c4965a1 nvme-pci: Remap CMB SQ entries on every controller reset
commit 815c6704bf upstream.

The controller memory buffer is remapped into a kernel address on each
reset, but the driver was setting the submission queue base address
only on the very first queue creation. The remapped address is likely to
change after a reset, so accessing the old address will hit a kernel bug.

This patch fixes that by setting the queue's CMB base address each time
the queue is created.

Fixes: f63572dff1 ("nvme: unmap CMB and remove sysfs file in reset path")
Reported-by: Christian Black <christian.d.black@intel.com>
Cc: Jon Derrick <jonathan.derrick@intel.com>
Cc: <stable@vger.kernel.org> # 4.9+
Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Scott Bauer <scott.bauer@intel.com>
Reviewed-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-17 11:37:54 +02:00
..
2018-06-26 08:08:05 +08:00
2018-07-11 16:26:43 +02:00
2018-06-16 09:52:35 +02:00
2018-06-16 09:52:33 +02:00
2018-07-17 11:37:53 +02:00
2018-02-25 11:05:55 +01:00
2018-06-13 16:16:42 +02:00
2017-09-09 17:39:41 +02:00
2018-07-11 16:26:43 +02:00