platform: nvadsp: prevent speculative load related leak
authorJames Huang <jamehuang@nvidia.com>
Thu, 1 Feb 2018 01:42:30 +0000 (09:42 +0800)
committerMatthew Pedro <mapedro@nvidia.com>
Tue, 10 Apr 2018 05:09:43 +0000 (22:09 -0700)
commitcb657e4c07e1fcc8bec00d2247e9f0546701eac3
treee9ab2051071551cf7cb6ada380321b40f0cdd9ae
parent1b45ede2796aef9c9d12729650ad79cce84830d7
platform: nvadsp: 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: I5a745320b64bf6689cf8ac4b713cf1b32f662a23
Signed-off-by: David Gilhooley <dgilhooley@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1640352
Reviewed-on: https://git-master.nvidia.com/r/1649976
(cherry picked from commit 53deb61791f7227f33f365d3a7f12032dc5af4f2)
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1682712
GVS: Gerrit_Virtual_Submit
Reviewed-by: James Huang <jamehuang@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
drivers/platform/tegra/nvadsp/mailbox.c