gpu: nvgpu: add speculative load barrier (ctrl IOCTLs)
authorJames Huang <jamehuang@nvidia.com>
Thu, 1 Feb 2018 06:58:59 +0000 (14:58 +0800)
committerMatthew Pedro <mapedro@nvidia.com>
Tue, 10 Apr 2018 05:10:02 +0000 (22:10 -0700)
commit743b83f9943cabe9b497fb6b6df8adeb358d9dde
tree309c355ea37b376c1d7aa977542b00066efe6b6e
parentb346931c1fec76a94f0abf6b26630dde73e2d508
gpu: nvgpu: add speculative load barrier (ctrl IOCTLs)

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 a speculation barrier.

bug 2039126
CVE-2017-5753

Change-Id: Ib6c4b2f99b85af3119cce3882fe35ab47509c76f
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1640500
Signed-off-by: James Huang <jamehuang@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1650050
(cherry picked from commit f293fa670fd2f4fbe170f1e372e9aa237283c67a)
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1682715
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
drivers/gpu/nvgpu/gk20a/gr_gk20a.c