Re: [PATCH 4/4] nvme-pci: Remap CMB SQ entries on every controller reset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 13, 2018 at 03:42:38PM +0800, shan.gavin@xxxxxxxxxxxxxxxxx wrote:
> 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.
> 
> Cherry-pick from upstream commit 815c6704bf9f ("nvme-pci: Remap CMB SQ
> entries on every controller reset")
> 
> Fixes: f63572dff1421 ("nvme: unmap CMB and remove sysfs file in reset path")
> Reported-by: Christian Black <christian.d.black@xxxxxxxxx>
> Cc: Jon Derrick <jonathan.derrick@xxxxxxxxx>
> Cc: <stable@xxxxxxxxxxxxxxx> # 4.9+

This one is already in 4.9-stable.



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux