Files
linux/drivers
Keith Busch 2a017ea2ea 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:39:31 +02:00
..
2018-07-08 15:30:52 +02:00
2018-07-03 11:24:56 +02:00
2018-07-11 16:29:14 +02:00
2018-06-16 09:45:18 +02:00
2018-06-16 09:45:14 +02:00
2018-07-17 11:39:30 +02:00
2018-06-11 22:49:19 +02:00
2018-01-17 09:45:27 +01:00