diff options
author | 2019-06-08 12:23:57 +0300 | |
---|---|---|
committer | 2019-06-11 12:51:51 -0500 | |
commit | 8252562d5270c13e6123a5939d0db1bbf04327a1 (patch) | |
tree | 3b2ecfd1c87f2a7f4425592aea6cd3b12b225a54 /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |
parent | drm/amdgpu: Add CHIP_VEGAM to amdgpu_amdkfd_device_probe (diff) | |
download | wireguard-linux-8252562d5270c13e6123a5939d0db1bbf04327a1.tar.xz wireguard-linux-8252562d5270c13e6123a5939d0db1bbf04327a1.zip |
drm/amdgpu: Fix bounds checking in amdgpu_ras_is_supported()
The "block" variable can be set by the user through debugfs, so it can
be quite large which leads to shift wrapping here. This means we report
a "block" as supported when it's not, and that leads to array overflows
later on.
This bug is not really a security issue in real life, because debugfs is
generally root only.
Fixes: 36ea1bd2d084 ("drm/amdgpu: add debugfs ctrl node")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
0 files changed, 0 insertions, 0 deletions