media: isc: prevent speculative load related leak
authorJames Huang <jamehuang@nvidia.com>
Thu, 1 Feb 2018 03:53:29 +0000 (11:53 +0800)
committerMatthew Pedro <mapedro@nvidia.com>
Tue, 10 Apr 2018 05:10:31 +0000 (22:10 -0700)
commit8faa8458c98e48d64fb73a9d7aa8b06e68a6cc40
tree7cc123d9221a7ed9327d40d375094c748ae0d998
parent743b83f9943cabe9b497fb6b6df8adeb358d9dde
media: isc: prevent speculative load related leak

Data can be speculatively loaded from memory and stay in cache even
when bound check fails. This can lead to unintended information
disclosure via side-channel analysis.

To mitigate this problem, insert speculation barrier.

bug 2039126
CVE-2017-5753

Change-Id: I3fdea370a0c713ec84dc3fb58fb6b9891880190a
Signed-off-by: David Gilhooley <dgilhooley@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1640354
Signed-off-by: James Huang <jamehuang@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1650059
(cherry picked from commit efac96bc2e7f333211bbcb7950a2ab1559890ff0)
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1682748
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
drivers/media/platform/tegra/auto/isc_mgr.c