aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0327-drm-amdgpu-information-leak-in-amdgpu_info_ioctl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0327-drm-amdgpu-information-leak-in-amdgpu_info_ioctl.patch')
-rw-r--r--meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0327-drm-amdgpu-information-leak-in-amdgpu_info_ioctl.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0327-drm-amdgpu-information-leak-in-amdgpu_info_ioctl.patch b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0327-drm-amdgpu-information-leak-in-amdgpu_info_ioctl.patch
new file mode 100644
index 00000000..5fff206d
--- /dev/null
+++ b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0327-drm-amdgpu-information-leak-in-amdgpu_info_ioctl.patch
@@ -0,0 +1,32 @@
+From c193fa91b9182465a4a01665ad4096a6cdb4db2d Mon Sep 17 00:00:00 2001
+From: Dan Carpenter <dan.carpenter@oracle.com>
+Date: Tue, 28 Jul 2015 18:51:29 +0300
+Subject: [PATCH 0327/1050] drm/amdgpu: information leak in amdgpu_info_ioctl()
+
+We recently changed the drm_amdgpu_info_device struct so now there is
+a 4 byte hole at the end. We need to initialize it so we don't disclose
+secret information from the stack.
+
+Fixes: fa92754e9c47 ('drm/amdgpu: add VCE harvesting instance query')
+Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
+index d316bda..9736892 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
+@@ -416,7 +416,7 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file
+ return n ? -EFAULT : 0;
+ }
+ case AMDGPU_INFO_DEV_INFO: {
+- struct drm_amdgpu_info_device dev_info;
++ struct drm_amdgpu_info_device dev_info = {};
+ struct amdgpu_cu_info cu_info;
+
+ dev_info.device_id = dev->pdev->device;
+--
+1.9.1
+