diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-12-13 19:25:46 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-25 17:25:18 -0500 |
commit | 43dbbaaad7b49036a507b7e04af67b766adc41be (patch) | |
tree | 1a52626d5d4a3d80736b0e33f1ac58532f768fab /drivers/gpu/nvgpu/Makefile | |
parent | b46045f3fe71fad703ee7d689657af16925d78ca (diff) |
nvgpu: gpu: Add speculation barrier macro
Provide a macro for preventing CPU speculation.
bug 2039126
CVE-2017-5753
Change-Id: Ifa936c079d9f2a0231d0cf35c4d8bdd18d54b238
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1640497
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/Makefile')
-rw-r--r-- | drivers/gpu/nvgpu/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/Makefile b/drivers/gpu/nvgpu/Makefile index 680a9f4f..d70c44e8 100644 --- a/drivers/gpu/nvgpu/Makefile +++ b/drivers/gpu/nvgpu/Makefile | |||
@@ -14,6 +14,9 @@ ifeq ($(VERSION),4) | |||
14 | ccflags-y += -Wextra -Wno-unused-parameter -Wno-missing-field-initializers | 14 | ccflags-y += -Wextra -Wno-unused-parameter -Wno-missing-field-initializers |
15 | endif | 15 | endif |
16 | 16 | ||
17 | # Turn off when this is fixed upstream, if ever. | ||
18 | ccflags-y += -D__NVGPU_PREVENT_UNTRUSTED_SPECULATION | ||
19 | |||
17 | obj-$(CONFIG_GK20A) := nvgpu.o | 20 | obj-$(CONFIG_GK20A) := nvgpu.o |
18 | 21 | ||
19 | nvgpu-y := \ | 22 | nvgpu-y := \ |