Files
linux/drivers/gpu/drm/amd/amdgpu
Peilin Ye af2666a3ab drm/amdgpu: Prevent kernel-infoleak in amdgpu_info_ioctl()
commit 543e8669ed upstream.

Compiler leaves a 4-byte hole near the end of `dev_info`, causing
amdgpu_info_ioctl() to copy uninitialized kernel stack memory to userspace
when `size` is greater than 356.

In 2015 we tried to fix this issue by doing `= {};` on `dev_info`, which
unfortunately does not initialize that 4-byte hole. Fix it by using
memset() instead.

Cc: stable@vger.kernel.org
Fixes: c193fa91b9 ("drm/amdgpu: information leak in amdgpu_info_ioctl()")
Fixes: d38ceaf99e ("drm/amdgpu: add core driver (v4)")
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Peilin Ye <yepeilin.cs@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-16 08:43:52 +09:00
..
2015-06-03 21:03:15 -04:00
2015-06-03 21:03:15 -04:00
2016-09-28 12:08:49 +10:00
2015-06-03 21:03:15 -04:00
2015-06-03 21:03:15 -04:00
2015-06-03 21:03:15 -04:00
2015-06-03 21:03:17 -04:00
2016-09-28 12:08:49 +10:00
2016-09-22 10:24:16 -04:00
2018-03-18 11:18:49 +01:00
2016-10-04 11:15:59 -04:00
2015-06-03 21:03:17 -04:00
2015-06-03 21:03:17 -04:00
2016-10-04 11:15:59 -04:00
2016-08-31 15:21:09 -04:00
2016-09-28 12:08:49 +10:00
2016-08-31 15:21:09 -04:00
2016-09-12 18:12:22 -04:00
2023-05-15 14:41:00 +09:00
2016-08-31 12:11:19 -04:00