Files
linux/arch/mips/include/asm
Sinan Kaya e7b720ef94 MIPS: io: Add barrier after register read in readX()
[ Upstream commit a1cc7034e3 ]

While a barrier is present in the writeX() functions before the register
write, a similar barrier is missing in the readX() functions after the
register read. This could allow memory accesses following readX() to
observe stale data.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Reported-by: Arnd Bergmann <arnd@arndb.de>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/19069/
[jhogan@kernel.org: Tidy commit message]
Signed-off-by: James Hogan <jhogan@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-06-21 04:02:41 +09:00
..
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2017-11-03 09:02:30 -07:00
2017-08-29 15:21:50 +02:00
2016-04-03 12:32:09 +02:00
2013-02-01 10:00:22 +01:00
2014-01-22 20:19:02 +01:00
2017-09-06 11:01:52 +02:00
2017-08-29 15:21:50 +02:00
2017-03-28 16:43:25 -04:00
2017-08-29 15:21:51 +02:00
2009-07-03 15:45:29 +01:00
2017-11-03 09:02:30 -07:00
2013-01-24 13:20:09 +01:00
2014-08-26 02:18:56 +02:00
2012-03-28 18:30:02 +01:00
2014-05-24 00:07:01 +02:00
2013-02-01 10:00:22 +01:00
2016-05-28 12:35:06 +02:00
2011-07-26 16:49:47 -07:00
2013-02-01 10:00:22 +01:00
2017-11-03 09:02:30 -07:00
2013-02-01 10:00:22 +01:00
2017-11-03 09:02:30 -07:00
2017-11-03 09:02:30 -07:00
2017-11-03 09:02:30 -07:00
2017-11-03 09:02:30 -07:00
2017-11-03 09:02:30 -07:00
2013-02-01 10:00:22 +01:00
2017-05-18 15:39:19 -05:00
2017-06-08 14:51:58 +02:00
2017-11-03 09:02:30 -07:00
2017-03-28 16:43:25 -04:00
2014-08-02 00:06:38 +02:00
2013-02-01 10:00:22 +01:00
2014-01-22 20:19:02 +01:00
2016-04-03 12:32:09 +02:00
2013-02-01 10:00:22 +01:00
2017-11-03 09:02:30 -07:00
2017-08-29 15:21:50 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2017-07-11 14:13:06 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2017-06-28 12:22:39 +02:00
2017-05-27 15:38:02 -04:00
2013-02-01 10:00:22 +01:00
2016-05-09 12:00:02 +02:00
2017-11-03 09:02:30 -07:00