Files
linux/include/scsi
Huacai Chen 35b4bfbda5 scsi: libsas: align sata_device's rps_resp on a cacheline
commit c2e8fbf908 upstream.

The rps_resp buffer in ata_device is a DMA target, but it isn't
explicitly cacheline aligned. Due to this, adjacent fields can be
overwritten with stale data from memory on non-coherent architectures.
As a result, the kernel is sometimes unable to communicate with an SATA
device behind a SAS expander.

Fix this by ensuring that the rps_resp buffer is cacheline aligned.

This issue is similar to that fixed by Commit 84bda12af3 ("libata:
align ap->sector_buf") and Commit 4ee34ea3a1 ("libata: Align
ata_device's id on a cacheline").

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-14 09:28:11 +01:00
..
2016-07-13 22:04:27 -04:00
2012-02-19 08:08:58 -06:00
2016-07-20 19:49:41 -04:00
2016-07-20 19:49:41 -04:00
2016-01-27 20:36:10 +08:00
2015-12-02 16:36:14 -05:00
2016-02-23 21:27:02 -05:00
2016-04-04 12:07:41 -04:00
2015-11-09 17:11:57 -08:00
2014-07-17 22:07:37 +02:00
2015-05-18 13:35:56 -04:00