diff options
| author | Peilin Ye <[email protected]> | 2020-07-28 15:29:24 -0400 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-07-30 15:36:44 -0400 |
| commit | 8e326285924cd13d9d94edc209440ef5b6f85085 (patch) | |
| tree | 3883591994fc50f758ee39a84b56960c880e4c8c /tools/perf/scripts/python/Perf-Trace-Util/lib | |
| parent | 7619517598ad5ba04beb855cde6558e72c73dbb5 (diff) | |
drm/amdgpu: Prevent kernel-infoleak in amdgpu_info_ioctl()
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: [email protected]
Fixes: c193fa91b918 ("drm/amdgpu: information leak in amdgpu_info_ioctl()")
Fixes: d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)")
Suggested-by: Dan Carpenter <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Peilin Ye <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions