cryptodev: prevent speculative load related leak
authorJeetesh Burman <jburman@nvidia.com>
Thu, 15 Feb 2018 07:30:39 +0000 (12:30 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Tue, 3 Apr 2018 17:44:45 +0000 (10:44 -0700)
commit5fea92e18248d450c16c897f95d295e8ecdea000
tree263ac917b2d53a076fbf76e16cf96ab57c34e75f
parent92779c767e5e7c750cdea0c392e3f31befc37921
cryptodev: 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: Id85eb9c91932f358dd999b28dd53d7788b37ea04
Signed-off-by: David Gilhooley <dgilhooley@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1640356
Signed-off-by: James Huang <jamehuang@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1650014
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
(cherry picked from commit 25bd9436b11f41e23048c9515deae97900a46669)
Reviewed-on: https://git-master.nvidia.com/r/1660780
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
drivers/misc/tegra-cryptodev.c